Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Aug 1998 16:44:58 -0700 (PDT)
From:      dwhite@resnet.uoregon.edu
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   i386/7564: MAKEDEV won't make symlinks for snd >0
Message-ID:  <199808102344.QAA21214@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         7564
>Category:       i386
>Synopsis:       MAKEDEV won't make symlinks for snd >0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 10 16:50:01 PDT 1998
>Last-Modified:
>Originator:     Doug White
>Organization:
UO CS NRL
>Release:        2.2-STABLE
>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. :-)
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808102344.QAA21214>