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

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


Index: ad1848_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1848/ad1848_lib.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ad1848_lib.c        29 Oct 2003 09:29:32 -0000      1.30
+++ ad1848_lib.c        13 Jan 2004 17:11:26 -0000      1.31
@@ -952,15 +952,18 @@
        memcpy(&chip->image, &snd_ad1848_original_image, 
sizeof(snd_ad1848_original_image));
        
        if ((chip->res_port = request_region(port, 4, "AD1848")) == NULL) {
+               snd_printk(KERN_ERR "ad1848: can't grab port 0x%lx\n", port);
                snd_ad1848_free(chip);
                return -EBUSY;
        }
        if (request_irq(irq, snd_ad1848_interrupt, SA_INTERRUPT, "AD1848", (void *) 
chip)) {
+               snd_printk(KERN_ERR "ad1848: can't grab IRQ %d\n", irq);
                snd_ad1848_free(chip);
                return -EBUSY;
        }
        chip->irq = irq;
        if (request_dma(dma, "AD1848")) {
+               snd_printk(KERN_ERR "ad1848: can't grab DMA %d\n", dma);
                snd_ad1848_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