Update of /cvsroot/alsa/alsa-kernel/pci/ymfpci
In directory sc8-pr-cvs1:/tmp/cvs-serv4229/pci/ymfpci

Modified Files:
        ymfpci.c 
Log Message:
fixed the auto-detection of joystick port.


Index: ymfpci.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ymfpci.c    24 Oct 2003 13:42:41 -0000      1.30
+++ ymfpci.c    27 Oct 2003 11:30:18 -0000      1.31
@@ -194,17 +194,16 @@
                        }
                        if (joystick_res)
                                joystick_port[dev] = p;
-               } else {
-                       switch (joystick_port[dev]) {
-                       case 0x201: legacy_ctrl2 |= 0 << 6; break;
-                       case 0x202: legacy_ctrl2 |= 1 << 6; break;
-                       case 0x204: legacy_ctrl2 |= 2 << 6; break;
-                       case 0x205: legacy_ctrl2 |= 3 << 6; break;
-                       default: joystick_port[dev] = -1; break;
-                       }
-                       if (joystick_port[dev] > 0)
-                               joystick_res = request_region(joystick_port[dev], 1, 
"YMFPCI gameport");
                }
+               switch (joystick_port[dev]) {
+               case 0x201: legacy_ctrl2 |= 0 << 6; break;
+               case 0x202: legacy_ctrl2 |= 1 << 6; break;
+               case 0x204: legacy_ctrl2 |= 2 << 6; break;
+               case 0x205: legacy_ctrl2 |= 3 << 6; break;
+               default: joystick_port[dev] = -1; break;
+               }
+               if (! joystick_res && joystick_port[dev] > 0)
+                       joystick_res = request_region(joystick_port[dev], 1, "YMFPCI 
gameport");
                if (joystick_res) {
                        legacy_ctrl |= YMFPCI_LEGACY_JPEN;
                } else {



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to