Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1:/tmp/cvs-serv11620/pci

Modified Files:
        cmipci.c 
Log Message:
[PATCH: cmipci-pci-fix.dif]

- simplify the search for pci device.



Index: cmipci.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/cmipci.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- cmipci.c    7 Jan 2003 10:36:30 -0000       1.39
+++ cmipci.c    7 Jan 2003 12:29:37 -0000       1.40
@@ -2928,19 +2928,10 @@
 
        /* Assume TX and compatible chip set (Autodetection required for VX chip sets) 
*/
        switch (pci->device) {
-               struct pci_dev *cur;
-               int txvx;
        case PCI_DEVICE_ID_CMEDIA_CM8738:
        case PCI_DEVICE_ID_CMEDIA_CM8738B:
-               txvx = 1;
-               pci_for_each_dev(cur) {
-                       if (cur->vendor != 0x8086) /* PCI_VENDOR_ID_INTEL */
-                               continue;
-                       if (cur->device != 0x7030) /* PCI_DEVICE_ID_INTEL_82437VX */
-                               continue;
-                       txvx = 0;
-               }
-               if (txvx)
+               /* PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437VX */
+               if (! pci_find_device(0x8086, 0x7030, NULL))
                        snd_cmipci_set_bit(cm, CM_REG_MISC_CTRL, CM_TXVX);
                break;
        default:



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to