Non-virtual channel description denote "play" or "record", so do the
same for virtual ones as well.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential D44839
sound: Be more verbose with virtual channel descriptions christos on Apr 18 2024, 5:31 PM. Authored by Tags None Referenced Files
Subscribers
Details Non-virtual channel description denote "play" or "record", so do the Sponsored by: The FreeBSD Foundation Before: root@freebsd:/mnt/src # cat /dev/sndstat | grep pcm0: pcm0: <Focusrite Scarlett Solo USB> on uaudio0 (1p:1v/1r:1v) default [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010/0x00201000, flags 0x00002100, 0x00000006 pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000 [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010/0x00201000, flags 0x00002100, 0x00000007 pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000 After: root@freebsd:/mnt/src # cat /dev/sndstat | grep pcm0: pcm0: <Focusrite Scarlett Solo USB> on uaudio0 (1p:1v/1r:1v) default [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010/0x00201000, flags 0x00002100, 0x00000006 pcm0:play:dsp0.p0[pcm0:virtual_play:dsp0.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000 [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010/0x00201000, flags 0x00002100, 0x00000007 pcm0:record:dsp0.r0[pcm0:virtual_record:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
Diff Detail
Event TimelineComment Actions I don't object but we already have :record: or :play: (elsewhere) in the description, is there any case where this won't be the case? Comment Actions There are many places where we print the channel name (search for ch->name or c->name) and in this case the strings will only contain :virtual:. |