patch-2.3.43 linux/drivers/sound/dev_table.c
Next file: linux/drivers/sound/dev_table.h
Previous file: linux/drivers/sound/cmpci.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Thu Feb 10 12:32:03 2000
- Orig file:
v2.3.42/linux/drivers/sound/dev_table.c
- Orig date:
Tue May 11 23:40:50 1999
diff -u --recursive --new-file v2.3.42/linux/drivers/sound/dev_table.c linux/drivers/sound/dev_table.c
@@ -13,6 +13,7 @@
*/
#include <linux/config.h>
+#include <linux/init.h>
#define _DEV_TABLE_C_
@@ -313,9 +314,12 @@
return 0;
}
-void sound_setup(char *str, int *ints)
+static int __init sound_setup(char *str)
{
int i, n = num_sound_cards;
+ int ints[32];
+
+ str = get_options(str, ARRAY_SIZE(ints), ints);
/*
* First disable all drivers
@@ -325,7 +329,7 @@
snd_installed_cards[i].enabled = 0;
if (ints[0] == 0 || ints[1] == 0)
- return;
+ return 1;
/*
* Then enable them one by time
*/
@@ -343,7 +347,7 @@
/*
* Add any future extensions here
*/
- return;
+ return 1;
}
ioaddr = (val & 0x000fff00) >> 8;
irq = (val & 0x000000f0) >> 4;
@@ -376,7 +380,11 @@
snd_installed_cards[ptr].config.card_subtype = 0;
}
}
+
+ return 1;
}
+
+__setup("sound=", sound_setup);
struct address_info * sound_getconf(int card_type)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)