Update of /cvsroot/alsa/alsa-driver/acore In directory sc8-pr-cvs1:/tmp/cvs-serv1773/acore
Modified Files: pci_compat_22.c Log Message: - added pci_disable_device() wrapper for 2.2 kernels. Index: pci_compat_22.c =================================================================== RCS file: /cvsroot/alsa/alsa-driver/acore/pci_compat_22.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- pci_compat_22.c 11 Aug 2003 12:51:27 -0000 1.4 +++ pci_compat_22.c 17 Nov 2003 18:31:41 -0000 1.5 @@ -262,6 +262,17 @@ return 0; } +void snd_pci_compat_disable_device(struct pci_dev *dev) +{ + u16 pci_command; + + pci_read_config_word(dev, PCI_COMMAND, &pci_command); + if (pci_command & PCI_COMMAND_MASTER) { + pci_command &= ~PCI_COMMAND_MASTER; + pci_write_config_word(dev, PCI_COMMAND, pci_command); + } +} + int snd_pci_compat_find_capability(struct pci_dev *dev, int cap) { u16 status; ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog