]> git.neil.brown.name Git - history.git/commitdiff
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
authorJaroslav Kysela <perex@suse.cz>
Mon, 29 Mar 2004 14:22:43 +0000 (16:22 +0200)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 29 Mar 2004 14:22:43 +0000 (16:22 +0200)
Intel8x0 driver
disable the legacy midi/joystick properly as default.

sound/pci/intel8x0.c

index f45c38a301901e9bd62e47a38dbf43f561e49844..e03f67fed1bbc2241074d8a02c33c6a5e4198fab 100644 (file)
@@ -2742,6 +2742,7 @@ static int __devinit snd_intel8x0_joystick_probe(struct pci_dev *pci,
 
        pci_read_config_word(pci, 0xe6, &val);
 #ifdef SUPPORT_JOYSTICK
+       val &= ~0x100;
        if (joystick[dev]) {
                if (! request_region(ich_gameport.io, 8, "ICH gameport")) {
                        printk(KERN_WARNING "intel8x0: cannot grab gameport 0x%x\n",  ich_gameport.io);
@@ -2754,6 +2755,7 @@ static int __devinit snd_intel8x0_joystick_probe(struct pci_dev *pci,
        }
 #endif
 #ifdef SUPPORT_MIDI
+       val &= ~0x20;
        if (mpu_port[dev] > 0) {
                if (mpu_port[dev] == 0x300 || mpu_port[dev] == 0x330) {
                        u8 b;