diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-05-26 12:35:27 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-26 12:35:27 -0400 |
commit | aae80dc24aeddec4e2b6e182a43491942f8667d3 (patch) | |
tree | b585fc78537b5064aacd05e58f13817bb205ef8b /sound/pci/ctxfi | |
parent | 3e3ee6dc949d25423f72bb5ee5f58dfa79ac85c7 (diff) |
ALSA: ctxfi - Add missing module parameter definitions
Added missing module_param*() and MODULE_PARM*().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi')
-rw-r--r-- | sound/pci/ctxfi/xfi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index 19310ed26e88..e31e29e4ec7e 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -23,13 +23,22 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labs, Sound Blaster X-Fi}"); | |||
23 | 23 | ||
24 | static unsigned int reference_rate = 48000; | 24 | static unsigned int reference_rate = 48000; |
25 | static unsigned int multiple = 2; | 25 | static unsigned int multiple = 2; |
26 | MODULE_PARM_DESC(reference_rate, "Reference rate (default=48000)"); | ||
26 | module_param(reference_rate, uint, S_IRUGO); | 27 | module_param(reference_rate, uint, S_IRUGO); |
28 | MODULE_PARM_DESC(multiple, "Rate multiplier (default=2)"); | ||
27 | module_param(multiple, uint, S_IRUGO); | 29 | module_param(multiple, uint, S_IRUGO); |
28 | 30 | ||
29 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 31 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
30 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 32 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
31 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 33 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
32 | 34 | ||
35 | module_param_array(index, int, NULL, 0444); | ||
36 | MODULE_PARM_DESC(index, "Index value for Creative X-Fi driver"); | ||
37 | module_param_array(id, charp, NULL, 0444); | ||
38 | MODULE_PARM_DESC(id, "ID string for Creative X-Fi driver"); | ||
39 | module_param_array(enable, bool, NULL, 0444); | ||
40 | MODULE_PARM_DESC(enable, "Enable Creative X-Fi driver"); | ||
41 | |||
33 | static struct pci_device_id ct_pci_dev_ids[] = { | 42 | static struct pci_device_id ct_pci_dev_ids[] = { |
34 | /* only X-Fi is supported, so... */ | 43 | /* only X-Fi is supported, so... */ |
35 | { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K1) }, | 44 | { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K1) }, |