From nobody  Mon Aug 10 16:44:58 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id QAA21214;
          Mon, 10 Aug 1998 16:44:58 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199808102344.QAA21214@hub.freebsd.org>
Date: Mon, 10 Aug 1998 16:44:58 -0700 (PDT)
From: dwhite@resnet.uoregon.edu
To: freebsd-gnats-submit@freebsd.org
Subject: MAKEDEV won't make symlinks for snd >0
X-Send-Pr-Version: www-1.0

>Number:         7564
>Category:       i386
>Synopsis:       MAKEDEV won't make symlinks for snd >0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 10 16:50:01 PDT 1998
>Closed-Date:    Thu Aug 13 23:21:40 PDT 1998
>Last-Modified:  Thu Aug 13 23:21:53 PDT 1998
>Originator:     Doug White
>Release:        2.2-STABLE
>Organization:
UO CS NRL
>Environment:
FreeBSD gable.nrl.cs.uoregon.edu 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Tue Jun
  2 13:33:32 PDT 1998     dwhite@gable.nrl.cs.uoregon.edu:/usr/src/sys/compile/G
ABLE  i386

>Description:
A long time ago, in a galaxy far, far away, someone made the (bonehead) 
decision to limit the sound driver to one device.  With Luigi's pcm
driver, the unit number for the PnP detected cards is nearly always 1,
and so you can't create the symlinks that will make your sound work.
>How-To-Repeat:
Take a stock 2.2.[67] system with a supported soundcard, compile in 
pcm support, and try to cat a sound file to /dev/audio.  You get 
the message:

pcm0: unit not configured, perhaps you want pcm1 ?

and no sound comes out.  Sometimes you get a message

timeout flushing dbuf_out, chan 1 cnt 0xccb4 flags 0x00000441

>Fix:
Apply patch to src/etc/etc.i386/MAKEDEV

--- /dev/MAKEDEV        Tue Mar 24 17:56:49 1998
+++ MAKEDEV     Mon Aug 10 16:43:06 1998
@@ -972,7 +972,6 @@
        snd_security_hole=0     # XXX
        umask $snd_security_hole
 
-       if [ $unit = "0" ] ; then
                ln -fs mixer$unit mixer
                ln -fs sequencer$unit sequencer
                ln -fs dsp$unit dsp
@@ -980,7 +979,6 @@
                ln -fs dspW$unit dspW
                ln -fs music$unit music
                ln -fs pss$unit pss
-       fi
 
        mknod mixer$unit        c $chr `expr $unit '*' 16 + 0`
        mknod sequencer$unit    c $chr `expr $unit '*' 16 + 1`

I can commit this if you trust me to do it right. :-)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Thu Aug 13 23:21:40 PDT 1998 
State-Changed-Why:  
cmmitted, thanks! 
>Unformatted:
