Dag-Erling Smorgrav wrote:
> "Cameron Grant" <[EMAIL PROTECTED]> writes:
> > would everyone who currently has an issue outstanding with newpcm please
> > report it to me in the next few days directly, please, so i can get an idea
> > of what needs work before release.  i need as much detail as possible.
> 
> My SB128 still doesn't attach:
> 
> root@des ~# pciconf -l | grep none 
> none0@pci0:10:0:        class=0x040100 card=0x13711274 chip=0x13713274 rev=0x
    06 hdr=0x00
> root@des ~# grep 1371 /var/run/dmesg.boot 
> pci0: unknown card (vendor=0x3274, dev=0x1371) at 10.0 irq 5

Hmm.. different vendor id?

peter@overcee[11:16pm]~src/sys/dev/sound/pci-383> grep ES1371_PCI_ID *
es137x.c:#define ES1371_PCI_ID 0x13711274
es137x.c:       } else if (pci_get_devid(dev) == ES1371_PCI_ID) {
es137x.c:       if (pci_get_devid(dev) == ES1371_PCI_ID) {

Does the following hack work?
Index: es137x.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sound/pci/es137x.c,v
retrieving revision 1.10
diff -u -r1.10 es137x.c
--- es137x.c    2000/01/05 02:03:55     1.10
+++ es137x.c    2000/01/11 15:18:52
@@ -70,6 +70,7 @@
 /* PCI IDs of supported chips */
 #define ES1370_PCI_ID 0x50001274
 #define ES1371_PCI_ID 0x13711274
+#define ES1371_PCI_ID2 0x13713274
 
 /* device private data */
 struct es_info;
@@ -703,7 +704,8 @@
        if (pci_get_devid(dev) == ES1370_PCI_ID) {
                device_set_desc(dev, "AudioPCI ES1370");
                return 0;
-       } else if (pci_get_devid(dev) == ES1371_PCI_ID) {
+       } else if (pci_get_devid(dev) == ES1371_PCI_ID ||
+                  pci_get_devid(dev) == ES1371_PCI_ID2) {
                device_set_desc(dev, "AudioPCI ES1371");
                return 0;
        }
@@ -766,7 +768,8 @@
                goto bad;
        }
 
-       if (pci_get_devid(dev) == ES1371_PCI_ID) {
+       if (pci_get_devid(dev) == ES1371_PCI_ID ||
+           pci_get_devid(dev) == ES1371_PCI_ID2) {
                if(-1 == es1371_init(es, pci_get_revid(dev))) {
                        device_printf(dev, "unable to initialize the card\n");
                        goto bad;


Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to