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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Oct 2021 13:19:33 UTC

Trenton Schulz <trueos@norwegianrockcat.com> changed:

           What    |Removed                     |Added
                 CC|                            |trueos@norwegianrockcat.com

--- Comment #23 from Trenton Schulz <trueos@norwegianrockcat.com> ---
I like the idea behind this patch, and it was nice it was committed. But, it
seems to remove the microphone I plugged into /dev/dsp10 from the mixer and
dropdown list. Instead, it seems to get collapsed into /dev/dsp0 (at least from
the description list in Firefox or the Mixer).

I can still access the microphone directly with OSS, so I know it still works.
I can also still see it with pacmd list-sources, but I can't choose it as a
source in any applications using pulse (e.g., Firefox and Chrome built with
Pulse support).

If I omit this patch from the port, I get the microphone back (and worse names
of course).

I need to use the microphone from pulse applications, so this is currently a
regression for me. I can try to fix the patch, but it will probably be a while.
I can probably test patches fairly quickly, though.

What my /dev/sndstat looks like in case that is necessary:

Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <ATI R6xx (HDMI)> (play)
pcm2: <ATI R6xx (HDMI)> (play)
pcm3: <ATI R6xx (HDMI)> (play)
pcm4: <ATI R6xx (HDMI)> (play)
pcm5: <ATI R6xx (HDMI)> (play)
pcm6: <Realtek ALC1220 (Analog 5.1+HP/2.0)> (play/rec) default
pcm7: <Realtek ALC1220 (Rear Digital)> (play)
pcm8: <Realtek ALC1220 (Front Analog Mic)> (rec)
pcm9: <USB audio> (rec)
pcm10: <USB audio> (play/rec)
No devices installed from userspace.

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