Stefan Esser wrote:
> On 1999-05-27 22:12 +0400, oZZ!!! <o...@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 majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to