[pulseaudio-tickets] [Bug 89921] New: OSS module doesn't detect some devices

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 6 10:53:17 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89921

            Bug ID: 89921
           Summary: OSS module doesn't detect some devices
           Product: PulseAudio
           Version: unspecified
          Hardware: All
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: modules
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: aaz at q-fu.com
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Here is my OSS configuration on FreeBSD:

$ cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC892 (Rear Analog 7.1/2.0)> (play/rec) default
pcm5: <Realtek ALC892 (Front Analog)> (play/rec)
pcm6: <Realtek ALC892 (Rear Digital)> (play)
pcm7: <Realtek ALC892 (Onboard Digital)> (play)
pcm8: <USB audio> (rec)

PulseAudio doesn't detect any devices after the pcm4 line.

This is because that line is exactly one character too long for the
line[64] buffer in detect_oss(). The newline character from that line
is read in during the next iteration, which detect_oss() interprets as
an empty line that ends the "Installed devices" section.

Note that lines in /dev/sndstat can be significantly longer. On FreeBSD
setting sysctl hw.snd.verbose adds debugging information with lines up
to 109 characters on my system. I suggest increasing the buffer size to
at least 256.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150406/35392d9e/attachment-0001.html>


More information about the pulseaudio-bugs mailing list