]> git.hungrycats.org Git - linux/commitdiff
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
authorJaroslav Kysela <perex@suse.cz>
Thu, 5 Feb 2004 15:02:53 +0000 (16:02 +0100)
committerJaroslav Kysela <perex@suse.cz>
Thu, 5 Feb 2004 15:02:53 +0000 (16:02 +0100)
VIA82xx driver
Removed duplicated code

sound/pci/via82xx.c

index dfcfa928fb53719ecef5a6d447bfa7707e737646..b3940692dd339c814a29a549325b01eb2d4a60e2 100644 (file)
@@ -1641,14 +1641,6 @@ static int snd_via686_init_misc(via82xx_t *chip, int dev)
                } else {
                        mpu_port[dev] = pci_resource_start(chip->pci, 2);
                }
-               if (mpu_port[dev] >= 0x200 &&
-                   (chip->mpu_res = request_region(pci_resource_start(chip->pci, 2), 2,
-                                                   "VIA82xx MPU401")) != NULL) {
-                       legacy |= VIA_FUNC_ENABLE_MIDI;
-               } else {
-                       mpu_port[dev] = 0;
-                       legacy &= ~VIA_FUNC_ENABLE_MIDI;
-               }
        } else {
                switch (mpu_port[dev]) {        /* force MIDI */
                case 0x300: