Update of /cvsroot/alsa/alsa-kernel/isa/opti9xx
In directory sc8-pr-cvs1:/tmp/cvs-serv30367/isa/opti9xx
Modified Files:
opti92x-ad1848.c
Log Message:
- added the error messages for resource allocation failures.
Index: opti92x-ad1848.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/opti9xx/opti92x-ad1848.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- opti92x-ad1848.c 31 Oct 2003 16:32:32 -0000 1.35
+++ opti92x-ad1848.c 13 Jan 2004 17:11:26 -0000 1.36
@@ -1305,23 +1305,27 @@
codec->dma2 = -1;
if ((codec->res_port = request_region(chip->wss_base + 4, 4, "OPTI93x CODEC"))
== NULL) {
+ snd_printk(KERN_ERR "opti9xx: can't grab port 0x%lx\n", chip->wss_base
+ 4);
snd_opti93x_free(codec);
return -EBUSY;
}
if (request_dma(dma1, "OPTI93x - 1")) {
+ snd_printk(KERN_ERR "opti9xx: can't grab DMA1 %d\n", dma1);
snd_opti93x_free(codec);
return -EBUSY;
}
codec->dma1 = chip->dma1;
if (request_dma(dma2, "OPTI93x - 2")) {
+ snd_printk(KERN_ERR "opti9xx: can't grab DMA2 %d\n", dma2);
snd_opti93x_free(codec);
return -EBUSY;
}
codec->dma2 = chip->dma2;
if (request_irq(chip->irq, snd_opti93x_interrupt, SA_INTERRUPT, DRIVER_NAME" -
WSS", codec)) {
- snd_opti93x_free(codec);
- return -EBUSY;
+ snd_printk(KERN_ERR "opti9xx: can't grab IRQ %d\n", chip->irq);
+ snd_opti93x_free(codec);
+ return -EBUSY;
}
codec->card = card;
-------------------------------------------------------
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