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

Modified Files:
        cmipci.c via82xx.c 
Log Message:
- fixed the boot parameters with long ints for non-intel architectures.
- added get_option_long() for parsing the parameter.





Index: cmipci.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/cmipci.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- cmipci.c    12 Aug 2003 14:10:12 -0000      1.48
+++ cmipci.c    14 Oct 2003 13:08:19 -0000      1.49
@@ -3225,8 +3225,8 @@
        (void)(get_option(&str,&enable[nr_dev]) == 2 &&
               get_option(&str,&index[nr_dev]) == 2 &&
               get_id(&str,&id[nr_dev]) == 2 &&
-              get_option(&str,(int *)&mpu_port[nr_dev]) == 2 &&
-              get_option(&str,(int *)&fm_port[nr_dev]) == 2);
+              get_option_long(&str,&mpu_port[nr_dev]) == 2 &&
+              get_option_long(&str,&fm_port[nr_dev]) == 2);
        nr_dev++;
        return 1;
 }

Index: via82xx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/via82xx.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- via82xx.c   9 Oct 2003 16:13:13 -0000       1.58
+++ via82xx.c   14 Oct 2003 13:08:20 -0000      1.59
@@ -2160,17 +2160,15 @@
 static int __init alsa_card_via82xx_setup(char *str)
 {
        static unsigned __initdata nr_dev = 0;
-       int port;
 
        if (nr_dev >= SNDRV_CARDS)
                return 0;
        (void)(get_option(&str,&enable[nr_dev]) == 2 &&
               get_option(&str,&index[nr_dev]) == 2 &&
               get_id(&str,&id[nr_dev]) == 2 &&
-              get_option(&str,&port) == 2 &&
+              get_option_long(&str,&mpu_port[nr_dev]) == 2 &&
               get_option(&str,&ac97_clock[nr_dev]) == 2 &&
               get_option(&str,&dxs_support[nr_dev]) == 2);
-       mpu_port[nr_dev] = port;
        nr_dev++;
        return 1;
 }



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to