Commit 396fe284 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Jaroslav Kysela <perex@suse.cz>

VIA82xx driver
Removed duplicated code
parent 5af79a33
...@@ -1641,14 +1641,6 @@ static int snd_via686_init_misc(via82xx_t *chip, int dev) ...@@ -1641,14 +1641,6 @@ static int snd_via686_init_misc(via82xx_t *chip, int dev)
} else { } else {
mpu_port[dev] = pci_resource_start(chip->pci, 2); 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 { } else {
switch (mpu_port[dev]) { /* force MIDI */ switch (mpu_port[dev]) { /* force MIDI */
case 0x300: case 0x300:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment