Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 1998 18:11:09 +0100 (CET)
From:      Joachim Kuebart <joki@kuebart.stuttgart.netsurf.de>
To:        van.woerkom@netcologne.de
Cc:        luigi@iet.unipi.it, lindgren@informatik.uni-freiburg.de
Subject:   Re: ES1370 Treiber
Message-ID:  <199811231927.UAA00933@yacht.domestic.de>
In-Reply-To: <199811221813.TAA00819@oranje.my.domain> from Marc van Woerkom at "Nov 22, 98 07:13:36 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Marc van Woerkom wrote:
> marc@oranje$ cat /dev/sndstat
> cat: /dev/sndstat: Device not configured
> marc@oranje$ 

The following patch (to be added to my other patches) removes the bug
that the cdevsw entry was not added when there was no ISA card
attached:

--- sound.c.orig	Mon Nov 23 18:07:35 1998
+++ sound.c	Mon Nov 23 18:06:04 1998
@@ -239,7 +239,6 @@
     snddev_info *d = NULL ;
     struct isa_device *dvp;
     int stat = 0;
-    dev_t isadev;
 
     dev->id_ointr = pcmintr;
 
@@ -284,9 +283,6 @@
     if (FULL_DUPLEX(d))
 	isa_dma_acquire(d->dbuf_in.chan);
 
-    isadev = makedev(CDEV_MAJOR, 0);
-    cdevsw_add(&isadev, &snd_cdevsw, NULL);
-
     /*
      * should try and find a suitable value for id_id, otherwise
      * the interrupt is not registered and dispatched properly.
@@ -331,6 +327,10 @@
 pcminit(snddev_info *d, int unit)
 {
     void *cookie;
+    dev_t dev;
+
+    dev = makedev(CDEV_MAJOR, 0);
+    cdevsw_add(&dev, &snd_cdevsw, NULL);
 
     /*
      * initialize standard parameters for the device. This can be

cu Jo

---------------------------------------------------------------------
Pray that there's intelligent life                    Joachim Kuebart
Somewhere up in space                              Stuttgart, Germany
'Cause there's bugger all down here on earth.
                              --- Monty Python


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



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