Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 2020 16:32:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 245156] audio/pulseaudio: parse /dev/sndstat correctly to get device name
Message-ID:  <bug-245156-6497-S9OprRMq5G@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-245156-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-245156-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245156

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

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

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

This is the second version of the patch. Instead of just using the card nam=
e,
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245156-6497-S9OprRMq5G>