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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 11 Oct 2021 18:03:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245156

--- Comment #30 from lightside <lightside@gmx.com> ---
(In reply to lightside from comment #28)
> I replied about this in comment #15, attachment #213025 [details], but if there are no devices with ">" character in device's name, then it may be fine.
or the output maybe a little cropped, e.g. for "pcm4: <Realtek (0x1168) <#>
(Rear Analog 5.1/2.0)> (play/rec) default" line:
"4: Realtek (0x1168) <#"
instead of
"4: Realtek (0x1168) <#> (Rear Analog 5.1/2.0)"

(In reply to Tomasz "CeDeROM" CEDRO from comment #29)
> Would that be possible to also attach device name to "USB Adudio" please?
The algorithm in the patch just parses /dev/sndstat output for "pcm*: <#>"
line(s) and outputs "*: #", it don't change the "#" part. I guess, possible to
differ based on "*" number, if there are devices with the same name.

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