From owner-freebsd-multimedia Mon Nov 23 11:27:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA04936 for freebsd-multimedia-outgoing; Mon, 23 Nov 1998 11:27:07 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from shire.domestic.de (kuebart.stuttgart.netsurf.de [194.233.216.182]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA04923; Mon, 23 Nov 1998 11:26:52 -0800 (PST) (envelope-from joki@kuebart.stuttgart.netsurf.de) Received: from yacht.domestic.de (yacht.domestic.de [192.168.1.4]) by shire.domestic.de (8.8.8/8.8.7) with ESMTP id UAA21187; Mon, 23 Nov 1998 20:27:32 +0100 (CET) (envelope-from joki@shire.domestic.de) From: Joachim Kuebart Received: (from joki@localhost) by yacht.domestic.de (8.9.1/8.8.7) id UAA00933; Mon, 23 Nov 1998 20:27:47 +0100 (CET) (envelope-from joki@shire.domestic.de) Message-Id: <199811231927.UAA00933@yacht.domestic.de> Subject: Re: ES1370 Treiber In-Reply-To: <199811221813.TAA00819@oranje.my.domain> from Marc van Woerkom at "Nov 22, 98 07:13:36 pm" To: van.woerkom@netcologne.de Date: Mon, 23 Nov 1998 18:11:09 +0100 (CET) Cc: luigi@iet.unipi.it, lindgren@informatik.uni-freiburg.de X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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-multimedia" in the body of the message