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

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


Index: opl3_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/opl3/opl3_lib.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- opl3_lib.c  14 Aug 2003 11:05:38 -0000      1.18
+++ opl3_lib.c  13 Jan 2004 17:11:25 -0000      1.19
@@ -387,11 +387,13 @@
                goto __step1; /* ports are already reserved */
 
        if ((opl3->res_l_port = request_region(l_port, 2, "OPL2/3 (left)")) == NULL) {
+               snd_printk(KERN_ERR "opl3: can't grab left port 0x%lx\n", l_port);
                snd_opl3_free(opl3);
                return -EBUSY;
        }
        if (r_port != 0 &&
            (opl3->res_r_port = request_region(r_port, 2, "OPL2/3 (right)")) == NULL) {
+               snd_printk(KERN_ERR "opl3: can't grab right port 0x%lx\n", r_port);
                snd_opl3_free(opl3);
                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