Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2001 16:53:19 -0800
From:      "Kris Anderson" <animotions@attbi.com>
To:        <doc@FreeBSD.org>
Subject:   Creating and Testing sound
Message-ID:  <000901c17acb$bc5150c0$6464a8c0@mouse>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Where in this document does it tell me how to test the device nodes? Not even in the troubleshooting section.
Hope to see a fix to the docs.
Thanks.
14.4 Creating and Testing the Device Nodes
After you reboot, log in and run dmesg | grep pcm as shown below:

    # dmesg | grep pcm
    pcm0: <SB16 DSP 4.11> on sbc0

The output from your system may look different. If no pcm devices show up, something went wrong earlier. If that happens, go through your kernel configuration file again and make sure you chose the correct device. Consult the troubleshooting section for additional options.

If the previous command returned pcm0, you will have to run the following as root:

    # cd /dev
    # sh MAKEDEV snd0

If the command returned pcm1, follow the same steps as shown above, replacing snd0 with snd1.

  Note: The above commands will not create a /dev/snd device!

MAKEDEV will create a group of device nodes, including:

      Device Description 
      /dev/audio SPARC-compatible audio device 
      /dev/dsp Digitized voice device 
      /dev/dspW Like /dev/dsp, but 16 bits per sample 
      /dev/midi Raw midi access device 
      /dev/mixer Control port mixer device 
      /dev/music Level 2 sequencer interface 
      /dev/sequencer Sequencer device 
      /dev/pss Programmable device interface 

If all goes well, you should now have a functioning sound card. If you do not, read the next section.


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV class=SECT1>
<H1 class=SECT1><FONT size=1>Where in this document does it tell me how to test 
the device nodes? Not even in the troubleshooting section.</FONT></H1>
<DIV class=SECT1>Hope to see a fix to the docs.</DIV>
<DIV class=SECT1>Thanks.</DIV>
<H1 class=SECT1><A name=AEN14406>14.4 Creating and Testing the Device 
Nodes</A></H1>
<P>After you reboot, log in and run <TT class=COMMAND>dmesg | grep pcm</TT> as 
shown below:</P><PRE class=SCREEN>    <TT class=PROMPT>#</TT> dmesg | grep pcm
    pcm0: &lt;SB16 DSP 4.11&gt; on sbc0
</PRE>
<P>The output from your system may look different. If no <TT 
class=DEVICENAME>pcm</TT> devices show up, something went wrong earlier. If that 
happens, go through your kernel configuration file again and make sure you chose 
the correct device. Consult the troubleshooting section for additional 
options.</P>
<P>If the previous command returned <TT class=DEVICENAME>pcm0</TT>, you will 
have to run the following as root:</P><PRE class=SCREEN>    <TT class=PROMPT>#</TT> cd /dev
    <TT class=PROMPT>#</TT> sh MAKEDEV snd0
</PRE>
<P>If the command returned <TT class=DEVICENAME>pcm1</TT>, follow the same steps 
as shown above, replacing <TT class=DEVICENAME>snd0</TT> with <TT 
class=DEVICENAME>snd1</TT>.</P>
<DIV class=NOTE>
<BLOCKQUOTE class=NOTE>
  <P><B>Note:</B> The above commands will <I class=EMPHASIS>not</I> create a <TT 
  class=DEVICENAME>/dev/snd</TT> device!</P></BLOCKQUOTE></DIV>
<P><TT class=COMMAND>MAKEDEV</TT> will create a group of device nodes, 
including:</P>
<DIV class=INFORMALTABLE><A name=AEN14431></A>
<TABLE class=CALSTABLE border=0>
  <THEAD>
  <TR>
    <TH vAlign=top align=left>Device</TH>
    <TH vAlign=top align=left>Description</TH></TR></THEAD>
  <TBODY>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/audio</TT></TD>
    <TD vAlign=top align=left>SPARC-compatible audio device</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/dsp</TT></TD>
    <TD vAlign=top align=left>Digitized voice device</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/dspW</TT></TD>
    <TD vAlign=top align=left>Like <TT class=DEVICENAME>/dev/dsp</TT>, but 16 
      bits per sample</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/midi</TT></TD>
    <TD vAlign=top align=left>Raw midi access device</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/mixer</TT></TD>
    <TD vAlign=top align=left>Control port mixer device</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/music</TT></TD>
    <TD vAlign=top align=left>Level 2 sequencer interface</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/sequencer</TT></TD>
    <TD vAlign=top align=left>Sequencer device</TD></TR>
  <TR>
    <TD vAlign=top align=left><TT class=DEVICENAME>/dev/pss</TT></TD>
    <TD vAlign=top align=left>Programmable device 
interface</TD></TR></TBODY></TABLE></DIV>
<P>If all goes well, you should now have a functioning sound card. If you do 
not, read the next section.</P></DIV></FONT></DIV></BODY></HTML>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901c17acb$bc5150c0$6464a8c0>