diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-12-19 04:32:48 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-19 04:34:44 -0500 |
commit | cde944803d12450f70f0adc4d418afcd8e42db2e (patch) | |
tree | 267515fde73d94c12e9bdb82e69fb016484dd1ae /sound | |
parent | a67ff6a54095e27093ea501fb143fefe51a536c2 (diff) |
ALSA: Add missing module parameters for als300 and cs5530 drivers
These drviers defined only variables but didn't declare as module
parameters. Also fix the enable variable to bool type.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/als300.c | 9 | ||||
-rw-r--r-- | sound/pci/cs5530.c | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index 8dc77a0a5d8b..8196e229b2df 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c | |||
@@ -115,7 +115,14 @@ MODULE_SUPPORTED_DEVICE("{{Avance Logic,ALS300},{Avance Logic,ALS300+}}"); | |||
115 | 115 | ||
116 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 116 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
117 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 117 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
118 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 118 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
119 | |||
120 | module_param_array(index, int, NULL, 0444); | ||
121 | MODULE_PARM_DESC(index, "Index value for ALS300 sound card."); | ||
122 | module_param_array(id, charp, NULL, 0444); | ||
123 | MODULE_PARM_DESC(id, "ID string for ALS300 sound card."); | ||
124 | module_param_array(enable, bool, NULL, 0444); | ||
125 | MODULE_PARM_DESC(enable, "Enable ALS300 sound card."); | ||
119 | 126 | ||
120 | struct snd_als300 { | 127 | struct snd_als300 { |
121 | unsigned long port; | 128 | unsigned long port; |
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c index 958f4949e973..c47cabff2bfa 100644 --- a/sound/pci/cs5530.c +++ b/sound/pci/cs5530.c | |||
@@ -50,7 +50,14 @@ MODULE_LICENSE("GPL"); | |||
50 | 50 | ||
51 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 51 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
52 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 52 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
53 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 53 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
54 | |||
55 | module_param_array(index, int, NULL, 0444); | ||
56 | MODULE_PARM_DESC(index, "Index value for CS5530 Audio driver."); | ||
57 | module_param_array(id, charp, NULL, 0444); | ||
58 | MODULE_PARM_DESC(id, "ID string for CS5530 Audio driver."); | ||
59 | module_param_array(enable, bool, NULL, 0444); | ||
60 | MODULE_PARM_DESC(enable, "Enable CS5530 Audio driver."); | ||
54 | 61 | ||
55 | struct snd_cs5530 { | 62 | struct snd_cs5530 { |
56 | struct snd_card *card; | 63 | struct snd_card *card; |