Commit e4bb3f2b authored by Jaroslav Kysela's avatar Jaroslav Kysela

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

Generic drivers
Clean the 'AUTO' checking
parent 8f2ac0c2
......@@ -342,7 +342,7 @@ static int __init snd_uart16550_detect(snd_uart16550_t *uart)
unsigned char c;
/* Do some vague tests for the presence of the uart */
if (io_base == 0) {
if (io_base == 0 || io_base == SNDRV_AUTO_PORT) {
return -ENODEV; /* Not configured */
}
......@@ -804,10 +804,9 @@ static int __init snd_uart16550_create(snd_card_t * card,
return err;
}
if (irq >= 0) {
if (irq >= 0 && irq != SNDRV_AUTO_IRQ) {
if (request_irq(irq, snd_uart16550_interrupt,
SA_INTERRUPT, "Serial MIDI", (void *) uart)) {
uart->irq = -1;
snd_printk("irq %d busy. Using Polling.\n", irq);
} else {
uart->irq = irq;
......
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