<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - OSS module doesn't detect some devices"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89921">89921</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>OSS module doesn't detect some devices
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>modules
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aaz@q-fu.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>