Update of /cvsroot/alsa/alsa-kernel/drivers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3092
Modified Files:
serial-u16550.c
Log Message:
Clean the 'AUTO' checking
Index: serial-u16550.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/serial-u16550.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- serial-u16550.c 13 Jan 2004 17:11:25 -0000 1.24
+++ serial-u16550.c 15 Mar 2004 16:19:57 -0000 1.25
@@ -342,7 +342,7 @@
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 @@
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;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog