Update of /cvsroot/linux-mips/linux/drivers/sound
In directory usw-pr-cvs1:/tmp/cvs-serv342
Modified Files:
au1000.c
Log Message:
changed some variable names and added some convenience variables.
Index: au1000.c
===================================================================
RCS file: /cvsroot/linux-mips/linux/drivers/sound/au1000.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- au1000.c 2001/10/19 21:19:39 1.4
+++ au1000.c 2001/10/22 22:39:58 1.5
@@ -92,63 +92,69 @@
#define AC97_EXT_DACS (AC97_EXTID_SDAC | AC97_EXTID_CDAC | AC97_EXTID_LDAC)
/* Boot options */
-static int vra = 0; // 0 = no VRA, 1 = use VRA if codec supports it
+static int vra = 0; // 0 = no VRA, 1 = use VRA if codec supports it
+MODULE_PARM(vra, "i");
+MODULE_PARM_DESC(vra, "if 1 use VRA if codec supports it");
/* --------------------------------------------------------------------- */
[...2244 lines suppressed...]
{
- char *this_opt;
+ char* this_opt;
if (!options || !*options)
return 0;
- for (this_opt = strtok(options, ","); this_opt;
- this_opt = strtok(NULL, ",")) {
+ for(this_opt=strtok(options, ",");
+ this_opt; this_opt=strtok(NULL, ",")) {
if (!strncmp(this_opt, "vra", 3)) {
vra = 1;
}
}
-
+
return 1;
}
|