[Bug 245156] audio/pulseaudio: parse /dev/sndstat correctly to get device name

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 29 16:32:50 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245156

Henry Hu <henry.hu.sh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #212817|0                           |1
        is obsolete|                            |

--- Comment #1 from Henry Hu <henry.hu.sh at gmail.com> ---
Created attachment 212838
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212838&action=edit
2nd versin of the patch

This is the second version of the patch. Instead of just using the card name,
the new version prepends "pcmN: " to the device name.
This allows people to distinguish between devices with the same name. For
example, my sndstat is:

Installed devices:
pcm0: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm4: <Realtek (0x1168) (Rear Analog 5.1/2.0)> (play/rec) default
pcm5: <Realtek (0x1168) (Front Analog)> (play/rec)
pcm6: <Realtek (0x1168) (Rear Digital)> (play)
No devices installed from userspace.

The previous format cannot distinguish between pcm0-pcm3. The new version of
device names look like "pcm3: NVIDIA (0x0083) (HDMI/DP 8ch)", so people can
distinguish between them.

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


More information about the freebsd-gnome mailing list