[Bug 268136] [snd_uaudio] Distorted audio from MOTU M4 USB interface

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 12 Dec 2022 21:45:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268136

--- Comment #18 from mburetorp <markus.buretorp@gmail.com> ---
(In reply to Florian Walpen from comment #15)

With YouTube in Firefox playing in the background. First output is when
distorting, second output after pulseaudio fix.

# cat /dev/sndstat
...
pcm4: <USB audio> at ? kld snd_uaudio (1p:1v/1r:1v) default
        snddev flags=0x2e6<AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
        [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010/0x00401000, flags
0x00002108, 0x00000046
        interrupts 1129, underruns 0, feed 2256, ready 0
[b:12288/6144/2|bs:4096/2048/2]
        channel flags=0x2108<TRIGGERED,BUSY,HAS_VCHAN>
        {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 ->
0x00201000) -> feeder_matrix(2.0 -> 4.0) -> {hardware}
        pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 48000, fmt 0x00200010,
flags 0x1000114c, 0x00000021, pid 1766 (firefox)
        interrupts 0, underruns 0, feed 2256, ready 12436
[b:0/0/0|bs:16384/8192/2]
        channel flags=0x1000114c<RUNNING,TRIGGERED,NBIO,BUSY,HAS_SIZE,VIRTUAL>
        {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) ->
{hardware}
        [pcm4:record:dsp4.r0]: spd 48000, fmt 0x00200010/0x00401000, flags
0x00002100, 0x00000047
        interrupts 0, overruns 0, feed 0, hfree 12288, sfree 4096
[b:12288/6144/2|bs:4096/2048/2]
        channel flags=0x2100<BUSY,HAS_VCHAN>
        {hardware} -> feeder_root(0x00401000) -> feeder_format(0x00401000 ->
0x00400010) -> feeder_matrix(4.0 -> 2.0) -> feeder_mixer(0x00200010) ->
{userland}
        pcm4:record:dsp4.r0[pcm4:virtual:dsp4.vr0]: spd 8000, fmt 0x00100008,
flags 0x10000000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
        channel flags=0x10000000<VIRTUAL>
        {hardware} -> feeder_root(0x00000000) -> {userland}
No devices installed from userspace.

# pulseaudio -D
# pulseaudio -k
# cat /dev/sndstat
...
pcm4: <USB audio> at ? kld snd_uaudio (1p:2v/1r:1v) default
        snddev
flags=0x200002e6<AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC,PRIO_WR>
        [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010/0x00401000, flags
0x00002108, 0x00000046
        interrupts 3832, underruns 0, feed 7662, ready 0
[b:12288/6144/2|bs:4096/2048/2]
        channel flags=0x2108<TRIGGERED,BUSY,HAS_VCHAN>
        {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 ->
0x00201000) -> feeder_matrix(2.0 -> 4.0) -> {hardware}
        pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 48000, fmt 0x00200010,
flags 0x1000114c, 0x00000021, pid 1766 (firefox)
        interrupts 0, underruns 0, feed 7662, ready 14208
[b:0/0/0|bs:16384/8192/2]
        channel flags=0x1000114c<RUNNING,TRIGGERED,NBIO,BUSY,HAS_SIZE,VIRTUAL>
        {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) ->
{hardware}
        pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp1]: spd 44100/48000, fmt
0x00200010, flags 0x10000000, 0x00000029
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) ->
feeder_rate(0x00200010 q:1 44100 -> 48000) -> {hardware}
        [pcm4:record:dsp4.r0]: spd 48000, fmt 0x00200010/0x00401000, flags
0x00002100, 0x00000047
        interrupts 609, overruns 0, feed 3641, hfree 12288, sfree 4096
[b:12288/6144/2|bs:4096/2048/2]
        channel flags=0x2100<BUSY,HAS_VCHAN>
        {hardware} -> feeder_root(0x00401000) -> feeder_format(0x00401000 ->
0x00400010) -> feeder_matrix(4.0 -> 2.0) -> feeder_mixer(0x00200010) ->
{userland}
        pcm4:record:dsp4.r0[pcm4:virtual:dsp4.vr0]: spd 44100/48000, fmt
0x00200010, flags 0x10000000, 0x00000029
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 32768
[b:0/0/0|bs:32768/256/128]
        channel flags=0x10000000<VIRTUAL>
        {hardware} -> feeder_root(0x00200010) -> feeder_rate(0x00200010 q:1
48000 -> 44100) -> feeder_volume(0x00200010) -> {userland}
No devices installed from userspace.

-- 
You are receiving this mail because:
You are the assignee for the bug.