Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 1999 23:52:56 +0200 (MET DST)
From:      kuebart@mathematik.uni-ulm.de (Joachim Kuebart)
To:        se@FreeBSD.ORG
Cc:        osa@etrust.ru, dwhite@resnet.uoregon.edu, green@unixhelp.org, wghicks@bellsouth.net, van.woerkom@netcologne.de, hodeleri@seattleu.edu, obrien@NUXI.com, freebsd-current@FreeBSD.ORG, wghicks@wghicks.bellsouth.net, se@FreeBSD.ORG
Subject:   Re: No sound (Ensoniq Audio PCI 1370)
Message-ID:  <9906012152.AA10689@turing.mathematik.uni-ulm.de>
In-Reply-To: <19990531215007.A650@dialup124.mi.uni-koeln.de> from Stefan Esser at "May 31, 99 09:50:07 pm"

index | next in thread | previous in thread | raw e-mail

Stefan Esser wrote:
> On 1999-05-27 22:12 +0400, oZZ!!! <osa@etrust.ru> wrote:
> > 
> > wmsound with my card too can't work correct.
> > SB 128 PCI its a PCI-device & (as i known) it must be detect as es0 + pcm1
> > (not pcm0), because pcm0 reserved for ISA-device (right?). Kernel at
> > boot-time detect my SB 128 PCI as es0 + pcm0...
> 
> What's going on ?
> 
> I guess that after the PCI attach of es0/pcm0, the ISA probe tries to 
> attach an ISA card as pcm0, too, and stomps over the values filled into
> the device structure for the PCI card ...

That's right, and it's because the implementation is broken: the PCI driver
part in /sys/pci/es1370.c uses the name "es" instead of "pcm". I.e. if it
used "pcm", different unit numbers would get assigned to ISA and PCI
devices and no clashes would result.

Sorry I didn't make this a PR before, but I'm working on the driver and
it's in no condition to be released. This was my fault, so here's the fix:

Index: es1370.c
===================================================================
RCS file: /usr/CVS-Repository/src/sys/pci/es1370.c,v
retrieving revision 1.4
diff -u -r1.4 es1370.c
--- es1370.c    1999/05/09 17:06:45     1.4
+++ es1370.c    1999/06/01 21:51:37
@@ -147,7 +147,7 @@
  */
 
 static struct pci_device es_pci_driver = {
-	"es",
+	"pcm",
 	es_pci_probe,
 	es_pci_attach,
 	&nsnd,


cu Jo

---------------------------------------------------------------------
PGP Key is at <http://www.mathematik.uni-ulm.de/~kuebart/kuebart.asc>;
What am I doing here? God, these people drinking milk!
But the clothes they wear look rather cool to me.     Joachim Kuebart
I wear the same -- what am I doing here?                 Ulm, Germany
                              --- Banana Fishbones


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



help

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