Update of /cvsroot/alsa/alsa-kernel/isa/ad1816a
In directory sc8-pr-cvs1:/tmp/cvs-serv30367/isa/ad1816a

Modified Files:
        ad1816a_lib.c 
Log Message:
- added the error messages for resource allocation failures.


Index: ad1816a_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1816a/ad1816a_lib.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ad1816a_lib.c       23 Apr 2003 10:01:35 -0000      1.18
+++ ad1816a_lib.c       13 Jan 2004 17:11:26 -0000      1.19
@@ -593,20 +593,24 @@
        chip->dma2 = -1;
 
        if ((chip->res_port = request_region(port, 16, "AD1816A")) == NULL) {
+               snd_printk(KERN_ERR "ad1816a: can't grab port 0x%lx\n", port);
                snd_ad1816a_free(chip);
                return -EBUSY;
        }
        if (request_irq(irq, snd_ad1816a_interrupt, SA_INTERRUPT, "AD1816A", (void *) 
chip)) {
+               snd_printk(KERN_ERR "ad1816a: can't grab IRQ %d\n", irq);
                snd_ad1816a_free(chip);
                return -EBUSY;
        }
        chip->irq = irq;
        if (request_dma(dma1, "AD1816A - 1")) {
+               snd_printk(KERN_ERR "ad1816a: can't grab DMA1 %d\n", dma1);
                snd_ad1816a_free(chip);
                return -EBUSY;
        }
        chip->dma1 = dma1;
        if (request_dma(dma2, "AD1816A - 2")) {
+               snd_printk(KERN_ERR "ad1816a: can't grab DMA2 %d\n", dma2);
                snd_ad1816a_free(chip);
                return -EBUSY;
        }



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to