diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-12-14 22:19:36 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-19 04:34:41 -0500 |
commit | a67ff6a54095e27093ea501fb143fefe51a536c2 (patch) | |
tree | 48cb687a7569a8b6d4051bc9051f565b43803982 /sound/pci | |
parent | 1bba160a0777046967707bbcdc9fb09d334ab2e5 (diff) |
ALSA: module_param: make bool parameters really bool
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
52 files changed, 85 insertions, 85 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index fac51eef2725..9473fca9681d 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -42,7 +42,7 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); | |||
42 | MODULE_DESCRIPTION("Universal interface for Audio Codec '97"); | 42 | MODULE_DESCRIPTION("Universal interface for Audio Codec '97"); |
43 | MODULE_LICENSE("GPL"); | 43 | MODULE_LICENSE("GPL"); |
44 | 44 | ||
45 | static int enable_loopback; | 45 | static bool enable_loopback; |
46 | 46 | ||
47 | module_param(enable_loopback, bool, 0444); | 47 | module_param(enable_loopback, bool, 0444); |
48 | MODULE_PARM_DESC(enable_loopback, "Enable AC97 ADC/DAC Loopback Control"); | 48 | MODULE_PARM_DESC(enable_loopback, "Enable AC97 ADC/DAC Loopback Control"); |
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index 6e311184bb10..9d91d61902b4 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -66,7 +66,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | |||
66 | module_param_array(id, charp, NULL, 0444); | 66 | module_param_array(id, charp, NULL, 0444); |
67 | MODULE_PARM_DESC(id, "ID string for the AD1889 soundcard."); | 67 | MODULE_PARM_DESC(id, "ID string for the AD1889 soundcard."); |
68 | 68 | ||
69 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 69 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
70 | module_param_array(enable, bool, NULL, 0444); | 70 | module_param_array(enable, bool, NULL, 0444); |
71 | MODULE_PARM_DESC(enable, "Enable AD1889 soundcard."); | 71 | MODULE_PARM_DESC(enable, "Enable AD1889 soundcard."); |
72 | 72 | ||
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index ef85ac5d9007..bdd6164e9c7e 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{ALI,M5451,pci},{ALI,M5451}}"); | |||
48 | static int index = SNDRV_DEFAULT_IDX1; /* Index */ | 48 | static int index = SNDRV_DEFAULT_IDX1; /* Index */ |
49 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 49 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
50 | static int pcm_channels = 32; | 50 | static int pcm_channels = 32; |
51 | static int spdif; | 51 | static bool spdif; |
52 | 52 | ||
53 | module_param(index, int, 0444); | 53 | module_param(index, int, 0444); |
54 | MODULE_PARM_DESC(index, "Index value for ALI M5451 PCI Audio."); | 54 | MODULE_PARM_DESC(index, "Index value for ALI M5451 PCI Audio."); |
@@ -60,7 +60,7 @@ module_param(spdif, bool, 0444); | |||
60 | MODULE_PARM_DESC(spdif, "Support SPDIF I/O"); | 60 | MODULE_PARM_DESC(spdif, "Support SPDIF I/O"); |
61 | 61 | ||
62 | /* just for backward compatibility */ | 62 | /* just for backward compatibility */ |
63 | static int enable; | 63 | static bool enable; |
64 | module_param(enable, bool, 0444); | 64 | module_param(enable, bool, 0444); |
65 | 65 | ||
66 | 66 | ||
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index 28ef40e01cc2..3269b8011ea9 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -90,7 +90,7 @@ MODULE_SUPPORTED_DEVICE("{{Avance Logic,ALS4000}}"); | |||
90 | 90 | ||
91 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 91 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
92 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 92 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
93 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 93 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
94 | #ifdef SUPPORT_JOYSTICK | 94 | #ifdef SUPPORT_JOYSTICK |
95 | static int joystick_port[SNDRV_CARDS]; | 95 | static int joystick_port[SNDRV_CARDS]; |
96 | #endif | 96 | #endif |
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index f4b9e2b7ae87..e9de799abd38 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c | |||
@@ -63,8 +63,8 @@ MODULE_DESCRIPTION("AudioScience ALSA ASI5000 ASI6000 ASI87xx ASI89xx"); | |||
63 | 63 | ||
64 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* index 0-MAX */ | 64 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* index 0-MAX */ |
65 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 65 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
66 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 66 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
67 | static int enable_hpi_hwdep = 1; | 67 | static bool enable_hpi_hwdep = 1; |
68 | 68 | ||
69 | module_param_array(index, int, NULL, S_IRUGO); | 69 | module_param_array(index, int, NULL, S_IRUGO); |
70 | MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard."); | 70 | MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard."); |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 15e4e5ee3881..590682f115ef 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -43,7 +43,7 @@ static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ | |||
43 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 43 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
44 | static int ac97_clock = 48000; | 44 | static int ac97_clock = 48000; |
45 | static char *ac97_quirk; | 45 | static char *ac97_quirk; |
46 | static int spdif_aclink = 1; | 46 | static bool spdif_aclink = 1; |
47 | static int ac97_codec = -1; | 47 | static int ac97_codec = -1; |
48 | 48 | ||
49 | module_param(index, int, 0444); | 49 | module_param(index, int, 0444); |
@@ -60,7 +60,7 @@ module_param(spdif_aclink, bool, 0444); | |||
60 | MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); | 60 | MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); |
61 | 61 | ||
62 | /* just for backward compatibility */ | 62 | /* just for backward compatibility */ |
63 | static int enable; | 63 | static bool enable; |
64 | module_param(enable, bool, 0444); | 64 | module_param(enable, bool, 0444); |
65 | 65 | ||
66 | 66 | ||
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 57bf8f4bc7a8..524d35f31232 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -51,7 +51,7 @@ module_param(ac97_clock, int, 0444); | |||
51 | MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); | 51 | MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); |
52 | 52 | ||
53 | /* just for backward compatibility */ | 53 | /* just for backward compatibility */ |
54 | static int enable; | 54 | static bool enable; |
55 | module_param(enable, bool, 0444); | 55 | module_param(enable, bool, 0444); |
56 | 56 | ||
57 | 57 | ||
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index dc326be58c4b..762bb108c51c 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c | |||
@@ -26,7 +26,7 @@ | |||
26 | // module parameters (see "Module Parameters") | 26 | // module parameters (see "Module Parameters") |
27 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 27 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
28 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 28 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
29 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 29 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
30 | static int pcifix[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 255 }; | 30 | static int pcifix[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 255 }; |
31 | 31 | ||
32 | module_param_array(index, int, NULL, 0444); | 32 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 7a581151db0d..1c5231931462 100644 --- a/sound/pci/aw2/aw2-alsa.c +++ b/sound/pci/aw2/aw2-alsa.c | |||
@@ -153,7 +153,7 @@ static int snd_aw2_control_switch_capture_put(struct snd_kcontrol *kcontrol, | |||
153 | ********************************/ | 153 | ********************************/ |
154 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 154 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
155 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 155 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
156 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 156 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
157 | 157 | ||
158 | module_param_array(index, int, NULL, 0444); | 158 | module_param_array(index, int, NULL, 0444); |
159 | MODULE_PARM_DESC(index, "Index value for Audiowerk2 soundcard."); | 159 | MODULE_PARM_DESC(index, "Index value for Audiowerk2 soundcard."); |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index bc1e6830b50d..95ffa6a9db6e 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -301,7 +301,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | |||
301 | module_param_array(id, charp, NULL, 0444); | 301 | module_param_array(id, charp, NULL, 0444); |
302 | MODULE_PARM_DESC(id, "ID string for AZF3328 soundcard."); | 302 | MODULE_PARM_DESC(id, "ID string for AZF3328 soundcard."); |
303 | 303 | ||
304 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 304 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
305 | module_param_array(enable, bool, NULL, 0444); | 305 | module_param_array(enable, bool, NULL, 0444); |
306 | MODULE_PARM_DESC(enable, "Enable AZF3328 soundcard."); | 306 | MODULE_PARM_DESC(enable, "Enable AZF3328 soundcard."); |
307 | 307 | ||
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index c1c2d0c1c7f0..62d6163fc9d9 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -42,9 +42,9 @@ MODULE_SUPPORTED_DEVICE("{{Brooktree,Bt878}," | |||
42 | 42 | ||
43 | static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* Exclude the first card */ | 43 | static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* Exclude the first card */ |
44 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 44 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
45 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 45 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
46 | static int digital_rate[SNDRV_CARDS]; /* digital input rate */ | 46 | static int digital_rate[SNDRV_CARDS]; /* digital input rate */ |
47 | static int load_all; /* allow to load the non-whitelisted cards */ | 47 | static bool load_all; /* allow to load the non-whitelisted cards */ |
48 | 48 | ||
49 | module_param_array(index, int, NULL, 0444); | 49 | module_param_array(index, int, NULL, 0444); |
50 | MODULE_PARM_DESC(index, "Index value for Bt87x soundcard"); | 50 | MODULE_PARM_DESC(index, "Index value for Bt87x soundcard"); |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index fe99fdeaf15f..08d6ebfe5a61 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -156,7 +156,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative,SB CA0106 chip}}"); | |||
156 | // module parameters (see "Module Parameters") | 156 | // module parameters (see "Module Parameters") |
157 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 157 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
158 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 158 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
159 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 159 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
160 | static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */ | 160 | static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */ |
161 | 161 | ||
162 | module_param_array(index, int, NULL, 0444); | 162 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 954c9934748a..19b06269adc2 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -54,10 +54,10 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI8738}," | |||
54 | 54 | ||
55 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 55 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
56 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 56 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
57 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ | 57 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ |
58 | static long mpu_port[SNDRV_CARDS]; | 58 | static long mpu_port[SNDRV_CARDS]; |
59 | static long fm_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1}; | 59 | static long fm_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1}; |
60 | static int soft_ac3[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1}; | 60 | static bool soft_ac3[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1}; |
61 | #ifdef SUPPORT_JOYSTICK | 61 | #ifdef SUPPORT_JOYSTICK |
62 | static int joystick_port[SNDRV_CARDS]; | 62 | static int joystick_port[SNDRV_CARDS]; |
63 | #endif | 63 | #endif |
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index a6c6c5c53af9..a9f368f60df6 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -44,8 +44,8 @@ MODULE_SUPPORTED_DEVICE("{{Cirrus Logic,CS4281}}"); | |||
44 | 44 | ||
45 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 45 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
46 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 46 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
47 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ | 47 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ |
48 | static int dual_codec[SNDRV_CARDS]; /* dual codec */ | 48 | static bool dual_codec[SNDRV_CARDS]; /* dual codec */ |
49 | 49 | ||
50 | module_param_array(index, int, NULL, 0444); | 50 | module_param_array(index, int, NULL, 0444); |
51 | MODULE_PARM_DESC(index, "Index value for CS4281 soundcard."); | 51 | MODULE_PARM_DESC(index, "Index value for CS4281 soundcard."); |
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index a4ecb40f8507..819d79d0586d 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -46,10 +46,10 @@ MODULE_SUPPORTED_DEVICE("{{Cirrus Logic,Sound Fusion (CS4280)}," | |||
46 | 46 | ||
47 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 47 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
48 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 48 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
49 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 49 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
50 | static int external_amp[SNDRV_CARDS]; | 50 | static bool external_amp[SNDRV_CARDS]; |
51 | static int thinkpad[SNDRV_CARDS]; | 51 | static bool thinkpad[SNDRV_CARDS]; |
52 | static int mmap_valid[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; | 52 | static bool mmap_valid[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; |
53 | 53 | ||
54 | module_param_array(index, int, NULL, 0444); | 54 | module_param_array(index, int, NULL, 0444); |
55 | MODULE_PARM_DESC(index, "Index value for the CS46xx soundcard."); | 55 | MODULE_PARM_DESC(index, "Index value for the CS46xx soundcard."); |
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index b8959d2c804b..a2fb2173e980 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -57,7 +57,7 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
57 | 57 | ||
58 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 58 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
59 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 59 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
60 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 60 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
61 | 61 | ||
62 | module_param_array(index, int, NULL, 0444); | 62 | module_param_array(index, int, NULL, 0444); |
63 | MODULE_PARM_DESC(index, "Index value for " DRIVER_NAME); | 63 | MODULE_PARM_DESC(index, "Index value for " DRIVER_NAME); |
diff --git a/sound/pci/ctxfi/cttimer.c b/sound/pci/ctxfi/cttimer.c index 93b0aedc36d4..03fb909085af 100644 --- a/sound/pci/ctxfi/cttimer.c +++ b/sound/pci/ctxfi/cttimer.c | |||
@@ -15,8 +15,8 @@ | |||
15 | #include "cthardware.h" | 15 | #include "cthardware.h" |
16 | #include "cttimer.h" | 16 | #include "cttimer.h" |
17 | 17 | ||
18 | static int use_system_timer; | 18 | static bool use_system_timer; |
19 | MODULE_PARM_DESC(use_system_timer, "Foce to use system-timer"); | 19 | MODULE_PARM_DESC(use_system_timer, "Force to use system-timer"); |
20 | module_param(use_system_timer, bool, S_IRUGO); | 20 | module_param(use_system_timer, bool, S_IRUGO); |
21 | 21 | ||
22 | struct ct_timer_ops { | 22 | struct ct_timer_ops { |
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index 33931ef5e129..15d95d2bacee 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -32,7 +32,7 @@ module_param(multiple, uint, S_IRUGO); | |||
32 | 32 | ||
33 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 33 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
34 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 34 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
35 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 35 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
36 | static unsigned int subsystem[SNDRV_CARDS]; | 36 | static unsigned int subsystem[SNDRV_CARDS]; |
37 | 37 | ||
38 | module_param_array(index, int, NULL, 0444); | 38 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 9fd694c61866..595c11f904bb 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -26,7 +26,7 @@ MODULE_DEVICE_TABLE(pci, snd_echo_ids); | |||
26 | 26 | ||
27 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 27 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
28 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 28 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
29 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 29 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
30 | 30 | ||
31 | module_param_array(index, int, NULL, 0444); | 31 | module_param_array(index, int, NULL, 0444); |
32 | MODULE_PARM_DESC(index, "Index value for " ECHOCARD_NAME " soundcard."); | 32 | MODULE_PARM_DESC(index, "Index value for " ECHOCARD_NAME " soundcard."); |
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index eaa198e122c0..790c65d980c8 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c | |||
@@ -44,13 +44,13 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labs,SB Live!/PCI512/E-mu APS}," | |||
44 | 44 | ||
45 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 45 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
46 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 46 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
47 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 47 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
48 | static int extin[SNDRV_CARDS]; | 48 | static int extin[SNDRV_CARDS]; |
49 | static int extout[SNDRV_CARDS]; | 49 | static int extout[SNDRV_CARDS]; |
50 | static int seq_ports[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; | 50 | static int seq_ports[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; |
51 | static int max_synth_voices[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 64}; | 51 | static int max_synth_voices[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 64}; |
52 | static int max_buffer_size[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 128}; | 52 | static int max_buffer_size[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 128}; |
53 | static int enable_ir[SNDRV_CARDS]; | 53 | static bool enable_ir[SNDRV_CARDS]; |
54 | static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */ | 54 | static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */ |
55 | static uint delay_pcm_irq[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; | 55 | static uint delay_pcm_irq[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; |
56 | 56 | ||
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 2228be9f30e6..47a651cb6e84 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -50,7 +50,7 @@ MODULE_SUPPORTED_DEVICE("{{Dell Creative Labs,SB Live!}"); | |||
50 | // module parameters (see "Module Parameters") | 50 | // module parameters (see "Module Parameters") |
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 | 54 | ||
55 | module_param_array(index, int, NULL, 0444); | 55 | module_param_array(index, int, NULL, 0444); |
56 | MODULE_PARM_DESC(index, "Index value for the EMU10K1X soundcard."); | 56 | MODULE_PARM_DESC(index, "Index value for the EMU10K1X soundcard."); |
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index d085ad03efe8..47a245e84190 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -83,12 +83,12 @@ MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI ES1371/73}," | |||
83 | 83 | ||
84 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 84 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
85 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 85 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
86 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ | 86 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ |
87 | #ifdef SUPPORT_JOYSTICK | 87 | #ifdef SUPPORT_JOYSTICK |
88 | #ifdef CHIP1371 | 88 | #ifdef CHIP1371 |
89 | static int joystick_port[SNDRV_CARDS]; | 89 | static int joystick_port[SNDRV_CARDS]; |
90 | #else | 90 | #else |
91 | static int joystick[SNDRV_CARDS]; | 91 | static bool joystick[SNDRV_CARDS]; |
92 | #endif | 92 | #endif |
93 | #endif | 93 | #endif |
94 | #ifdef CHIP1371 | 94 | #ifdef CHIP1371 |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 04cc21f5d014..53eb76b41108 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -79,7 +79,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1938}," | |||
79 | 79 | ||
80 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 80 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
81 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 81 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
82 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 82 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
83 | 83 | ||
84 | module_param_array(index, int, NULL, 0444); | 84 | module_param_array(index, int, NULL, 0444); |
85 | MODULE_PARM_DESC(index, "Index value for ESS Solo-1 soundcard."); | 85 | MODULE_PARM_DESC(index, "Index value for ESS Solo-1 soundcard."); |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 297a151bdba9..cb557c603a80 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -132,7 +132,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,Maestro 2e}," | |||
132 | 132 | ||
133 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */ | 133 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */ |
134 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 134 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
135 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 135 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
136 | static int total_bufsize[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1024 }; | 136 | static int total_bufsize[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1024 }; |
137 | static int pcm_substreams_p[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4 }; | 137 | static int pcm_substreams_p[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4 }; |
138 | static int pcm_substreams_c[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1 }; | 138 | static int pcm_substreams_c[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1 }; |
@@ -140,7 +140,7 @@ static int clock[SNDRV_CARDS]; | |||
140 | static int use_pm[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; | 140 | static int use_pm[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; |
141 | static int enable_mpu[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; | 141 | static int enable_mpu[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; |
142 | #ifdef SUPPORT_JOYSTICK | 142 | #ifdef SUPPORT_JOYSTICK |
143 | static int joystick[SNDRV_CARDS]; | 143 | static bool joystick[SNDRV_CARDS]; |
144 | #endif | 144 | #endif |
145 | 145 | ||
146 | module_param_array(index, int, NULL, 0444); | 146 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index ec05ef5a5abf..9597ef1eccca 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{ForteMedia,FM801}," | |||
48 | 48 | ||
49 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 49 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
50 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 50 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
51 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 51 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
52 | /* | 52 | /* |
53 | * Enable TEA575x tuner | 53 | * Enable TEA575x tuner |
54 | * 1 = MediaForte 256-PCS | 54 | * 1 = MediaForte 256-PCS |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 7d98240def0b..06fe2c546ee4 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -58,13 +58,13 @@ | |||
58 | 58 | ||
59 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 59 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
60 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 60 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
61 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 61 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
62 | static char *model[SNDRV_CARDS]; | 62 | static char *model[SNDRV_CARDS]; |
63 | static int position_fix[SNDRV_CARDS]; | 63 | static int position_fix[SNDRV_CARDS]; |
64 | static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; | 64 | static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; |
65 | static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; | 65 | static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; |
66 | static int probe_only[SNDRV_CARDS]; | 66 | static int probe_only[SNDRV_CARDS]; |
67 | static int single_cmd; | 67 | static bool single_cmd; |
68 | static int enable_msi = -1; | 68 | static int enable_msi = -1; |
69 | #ifdef CONFIG_SND_HDA_PATCH_LOADER | 69 | #ifdef CONFIG_SND_HDA_PATCH_LOADER |
70 | static char *patch[SNDRV_CARDS]; | 70 | static char *patch[SNDRV_CARDS]; |
@@ -116,12 +116,12 @@ MODULE_PARM_DESC(power_save, "Automatic power-saving timeout " | |||
116 | * this may give more power-saving, but will take longer time to | 116 | * this may give more power-saving, but will take longer time to |
117 | * wake up. | 117 | * wake up. |
118 | */ | 118 | */ |
119 | static int power_save_controller = 1; | 119 | static bool power_save_controller = 1; |
120 | module_param(power_save_controller, bool, 0644); | 120 | module_param(power_save_controller, bool, 0644); |
121 | MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); | 121 | MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | static int align_buffer_size = 1; | 124 | static bool align_buffer_size = 1; |
125 | module_param(align_buffer_size, bool, 0644); | 125 | module_param(align_buffer_size, bool, 0644); |
126 | MODULE_PARM_DESC(align_buffer_size, | 126 | MODULE_PARM_DESC(align_buffer_size, |
127 | "Force buffer and period sizes to be multiple of 128 bytes."); | 127 | "Force buffer and period sizes to be multiple of 128 bytes."); |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 44446f2222d9..132a86e09d07 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -84,9 +84,9 @@ MODULE_SUPPORTED_DEVICE("{" | |||
84 | 84 | ||
85 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 85 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
86 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 86 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
87 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ | 87 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ |
88 | static char *model[SNDRV_CARDS]; | 88 | static char *model[SNDRV_CARDS]; |
89 | static int omni[SNDRV_CARDS]; /* Delta44 & 66 Omni I/O support */ | 89 | static bool omni[SNDRV_CARDS]; /* Delta44 & 66 Omni I/O support */ |
90 | static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transceiver reset timeout value in msec */ | 90 | static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transceiver reset timeout value in msec */ |
91 | static int dxr_enable[SNDRV_CARDS]; /* DXR enable for DMX6FIRE */ | 91 | static int dxr_enable[SNDRV_CARDS]; /* DXR enable for DMX6FIRE */ |
92 | 92 | ||
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 4353e76bf0a6..4dc51246d1ae 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c | |||
@@ -80,7 +80,7 @@ MODULE_SUPPORTED_DEVICE("{" | |||
80 | 80 | ||
81 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 81 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
82 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 82 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
83 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 83 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
84 | static char *model[SNDRV_CARDS]; | 84 | static char *model[SNDRV_CARDS]; |
85 | 85 | ||
86 | module_param_array(index, int, NULL, 0444); | 86 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 11718b49b2e2..40b181bab930 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -79,9 +79,9 @@ static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ | |||
79 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 79 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
80 | static int ac97_clock; | 80 | static int ac97_clock; |
81 | static char *ac97_quirk; | 81 | static char *ac97_quirk; |
82 | static int buggy_semaphore; | 82 | static bool buggy_semaphore; |
83 | static int buggy_irq = -1; /* auto-check */ | 83 | static int buggy_irq = -1; /* auto-check */ |
84 | static int xbox; | 84 | static bool xbox; |
85 | static int spdif_aclink = -1; | 85 | static int spdif_aclink = -1; |
86 | static int inside_vm = -1; | 86 | static int inside_vm = -1; |
87 | 87 | ||
@@ -105,7 +105,7 @@ module_param(inside_vm, bool, 0444); | |||
105 | MODULE_PARM_DESC(inside_vm, "KVM/Parallels optimization."); | 105 | MODULE_PARM_DESC(inside_vm, "KVM/Parallels optimization."); |
106 | 106 | ||
107 | /* just for backward compatibility */ | 107 | /* just for backward compatibility */ |
108 | static int enable; | 108 | static bool enable; |
109 | module_param(enable, bool, 0444); | 109 | module_param(enable, bool, 0444); |
110 | static int joystick; | 110 | static int joystick; |
111 | module_param(joystick, int, 0444); | 111 | module_param(joystick, int, 0444); |
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index 0f7041ec7ddc..d689913a61be 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -68,7 +68,7 @@ module_param(ac97_clock, int, 0444); | |||
68 | MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = auto-detect)."); | 68 | MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = auto-detect)."); |
69 | 69 | ||
70 | /* just for backward compatibility */ | 70 | /* just for backward compatibility */ |
71 | static int enable; | 71 | static bool enable; |
72 | module_param(enable, bool, 0444); | 72 | module_param(enable, bool, 0444); |
73 | 73 | ||
74 | /* | 74 | /* |
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 841864b6b371..8fea45ab5882 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -408,7 +408,7 @@ MODULE_FIRMWARE("korg/k1212.dsp"); | |||
408 | 408 | ||
409 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 409 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
410 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 410 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
411 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ | 411 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ |
412 | 412 | ||
413 | module_param_array(index, int, NULL, 0444); | 413 | module_param_array(index, int, NULL, 0444); |
414 | MODULE_PARM_DESC(index, "Index value for Korg 1212 soundcard."); | 414 | MODULE_PARM_DESC(index, "Index value for Korg 1212 soundcard."); |
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index 924168ef1ed6..375982736858 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -35,7 +35,7 @@ | |||
35 | /* Standard options */ | 35 | /* Standard options */ |
36 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 36 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
37 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 37 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
38 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 38 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
39 | 39 | ||
40 | module_param_array(index, int, NULL, 0444); | 40 | module_param_array(index, int, NULL, 0444); |
41 | MODULE_PARM_DESC(index, "Index value for Digigram Lola driver."); | 41 | MODULE_PARM_DESC(index, "Index value for Digigram Lola driver."); |
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index 04ae84b2a107..d94c0c292bd0 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c | |||
@@ -42,7 +42,7 @@ MODULE_SUPPORTED_DEVICE("{digigram lx6464es{}}"); | |||
42 | 42 | ||
43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
44 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 44 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
45 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 45 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
46 | 46 | ||
47 | module_param_array(index, int, NULL, 0444); | 47 | module_param_array(index, int, NULL, 0444); |
48 | MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface."); | 48 | MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface."); |
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 863c8bdaecd6..78229b0dad2b 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -64,8 +64,8 @@ MODULE_FIRMWARE("ess/maestro3_assp_minisrc.fw"); | |||
64 | 64 | ||
65 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 65 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
66 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 66 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
67 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* all enabled */ | 67 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* all enabled */ |
68 | static int external_amp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; | 68 | static bool external_amp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; |
69 | static int amp_gpio[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -1}; | 69 | static int amp_gpio[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -1}; |
70 | 70 | ||
71 | module_param_array(index, int, NULL, 0444); | 71 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index a0bd1d99793f..487837c01c9f 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -49,7 +49,7 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," CARD_NAME "}}"); | |||
49 | 49 | ||
50 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 50 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
51 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 51 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
52 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 52 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
53 | 53 | ||
54 | module_param_array(index, int, NULL, 0444); | 54 | module_param_array(index, int, NULL, 0444); |
55 | MODULE_PARM_DESC(index, "Index value for Digigram " CARD_NAME " soundcard."); | 55 | MODULE_PARM_DESC(index, "Index value for Digigram " CARD_NAME " soundcard."); |
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index c6c45d979f7a..ade2c64bd606 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -57,12 +57,12 @@ static int index = SNDRV_DEFAULT_IDX1; /* Index */ | |||
57 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 57 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
58 | static int playback_bufsize = 16; | 58 | static int playback_bufsize = 16; |
59 | static int capture_bufsize = 16; | 59 | static int capture_bufsize = 16; |
60 | static int force_ac97; /* disabled as default */ | 60 | static bool force_ac97; /* disabled as default */ |
61 | static int buffer_top; /* not specified */ | 61 | static int buffer_top; /* not specified */ |
62 | static int use_cache; /* disabled */ | 62 | static bool use_cache; /* disabled */ |
63 | static int vaio_hack; /* disabled */ | 63 | static bool vaio_hack; /* disabled */ |
64 | static int reset_workaround; | 64 | static bool reset_workaround; |
65 | static int reset_workaround_2; | 65 | static bool reset_workaround_2; |
66 | 66 | ||
67 | module_param(index, int, 0444); | 67 | module_param(index, int, 0444); |
68 | MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); | 68 | MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); |
@@ -86,7 +86,7 @@ module_param(reset_workaround_2, bool, 0444); | |||
86 | MODULE_PARM_DESC(reset_workaround_2, "Enable extended AC97 RESET workaround for some other laptops."); | 86 | MODULE_PARM_DESC(reset_workaround_2, "Enable extended AC97 RESET workaround for some other laptops."); |
87 | 87 | ||
88 | /* just for backward compatibility */ | 88 | /* just for backward compatibility */ |
89 | static int enable; | 89 | static bool enable; |
90 | module_param(enable, bool, 0444); | 90 | module_param(enable, bool, 0444); |
91 | 91 | ||
92 | 92 | ||
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c index 5f3a13d4369d..eab663eef117 100644 --- a/sound/pci/oxygen/oxygen.c +++ b/sound/pci/oxygen/oxygen.c | |||
@@ -74,7 +74,7 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI8786}" | |||
74 | 74 | ||
75 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 75 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
76 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 76 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
77 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 77 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
78 | 78 | ||
79 | module_param_array(index, int, NULL, 0444); | 79 | module_param_array(index, int, NULL, 0444); |
80 | MODULE_PARM_DESC(index, "card index"); | 80 | MODULE_PARM_DESC(index, "card index"); |
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index 4149a0cb8b73..3fdee4950174 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c | |||
@@ -32,7 +32,7 @@ MODULE_SUPPORTED_DEVICE("{{Asus,AV66},{Asus,AV100},{Asus,AV200}}"); | |||
32 | 32 | ||
33 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 33 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
34 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 34 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
35 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 35 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
36 | 36 | ||
37 | module_param_array(index, int, NULL, 0444); | 37 | module_param_array(index, int, NULL, 0444); |
38 | MODULE_PARM_DESC(index, "card index"); | 38 | MODULE_PARM_DESC(index, "card index"); |
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index 56a52659742d..fd1809ab73b4 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -52,8 +52,8 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," DRIVER_NAME "}}"); | |||
52 | 52 | ||
53 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 53 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
54 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 54 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
55 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ | 55 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ |
56 | static int mono[SNDRV_CARDS]; /* capture mono only */ | 56 | static bool mono[SNDRV_CARDS]; /* capture mono only */ |
57 | 57 | ||
58 | module_param_array(index, int, NULL, 0444); | 58 | module_param_array(index, int, NULL, 0444); |
59 | MODULE_PARM_DESC(index, "Index value for Digigram " DRIVER_NAME " soundcard"); | 59 | MODULE_PARM_DESC(index, "Index value for Digigram " DRIVER_NAME " soundcard"); |
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index dcbedd33a629..0481d94aac9b 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c | |||
@@ -122,7 +122,7 @@ MODULE_FIRMWARE("riptide.hex"); | |||
122 | 122 | ||
123 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 123 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
124 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 124 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
125 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; | 125 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; |
126 | 126 | ||
127 | #ifdef SUPPORT_JOYSTICK | 127 | #ifdef SUPPORT_JOYSTICK |
128 | static int joystick_port[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS - 1)] = 0x200 }; | 128 | static int joystick_port[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS - 1)] = 0x200 }; |
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 21bcb47fab50..b4819d5e41db 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -89,8 +89,8 @@ | |||
89 | 89 | ||
90 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 90 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
91 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 91 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
92 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 92 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
93 | static int fullduplex[SNDRV_CARDS]; // = {[0 ... (SNDRV_CARDS - 1)] = 1}; | 93 | static bool fullduplex[SNDRV_CARDS]; // = {[0 ... (SNDRV_CARDS - 1)] = 1}; |
94 | 94 | ||
95 | module_param_array(index, int, NULL, 0444); | 95 | module_param_array(index, int, NULL, 0444); |
96 | MODULE_PARM_DESC(index, "Index value for RME Digi32 soundcard."); | 96 | MODULE_PARM_DESC(index, "Index value for RME Digi32 soundcard."); |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index 4585c9729fea..ba894158e76c 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -53,7 +53,7 @@ MODULE_SUPPORTED_DEVICE("{{RME,Digi96}," | |||
53 | 53 | ||
54 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 54 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
55 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 55 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
56 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 56 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
57 | 57 | ||
58 | module_param_array(index, int, NULL, 0444); | 58 | module_param_array(index, int, NULL, 0444); |
59 | MODULE_PARM_DESC(index, "Index value for RME Digi96 soundcard."); | 59 | MODULE_PARM_DESC(index, "Index value for RME Digi96 soundcard."); |
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index f2a3758dac52..0111203859b6 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 46 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
47 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 47 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
48 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 48 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
49 | 49 | ||
50 | module_param_array(index, int, NULL, 0444); | 50 | module_param_array(index, int, NULL, 0444); |
51 | MODULE_PARM_DESC(index, "Index value for RME Hammerfall DSP interface."); | 51 | MODULE_PARM_DESC(index, "Index value for RME Hammerfall DSP interface."); |
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 19ee2203cbb5..d623451cbf46 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -61,7 +61,7 @@ | |||
61 | 61 | ||
62 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 62 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
63 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 63 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
64 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ | 64 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ |
65 | 65 | ||
66 | module_param_array(index, int, NULL, 0444); | 66 | module_param_array(index, int, NULL, 0444); |
67 | MODULE_PARM_DESC(index, "Index value for RME HDSPM interface."); | 67 | MODULE_PARM_DESC(index, "Index value for RME HDSPM interface."); |
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index 732c5e837437..b737d1619cc7 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c | |||
@@ -38,8 +38,8 @@ | |||
38 | 38 | ||
39 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 39 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
40 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 40 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
41 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 41 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
42 | static int precise_ptr[SNDRV_CARDS]; /* Enable precise pointer */ | 42 | static bool precise_ptr[SNDRV_CARDS]; /* Enable precise pointer */ |
43 | 43 | ||
44 | module_param_array(index, int, NULL, 0444); | 44 | module_param_array(index, int, NULL, 0444); |
45 | MODULE_PARM_DESC(index, "Index value for RME Digi9652 (Hammerfall) soundcard."); | 45 | MODULE_PARM_DESC(index, "Index value for RME Digi9652 (Hammerfall) soundcard."); |
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index 7331b2d649ca..ff500a87f769 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -40,7 +40,7 @@ MODULE_SUPPORTED_DEVICE("{{SiS,SiS7019 Audio Accelerator}}"); | |||
40 | 40 | ||
41 | static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ | 41 | static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ |
42 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 42 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
43 | static int enable = 1; | 43 | static bool enable = 1; |
44 | static int codecs = 1; | 44 | static int codecs = 1; |
45 | 45 | ||
46 | module_param(index, int, 0444); | 46 | module_param(index, int, 0444); |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 31b6ad3ab1dc..54cc802050f7 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -52,9 +52,9 @@ MODULE_SUPPORTED_DEVICE("{{S3,SonicVibes PCI}}"); | |||
52 | 52 | ||
53 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 53 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
54 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 54 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
55 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 55 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
56 | static int reverb[SNDRV_CARDS]; | 56 | static bool reverb[SNDRV_CARDS]; |
57 | static int mge[SNDRV_CARDS]; | 57 | static bool mge[SNDRV_CARDS]; |
58 | static unsigned int dmaio = 0x7a00; /* DDMA i/o address */ | 58 | static unsigned int dmaio = 0x7a00; /* DDMA i/o address */ |
59 | 59 | ||
60 | module_param_array(index, int, NULL, 0444); | 60 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index deb04b924122..5f1def7f45e5 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -47,7 +47,7 @@ MODULE_SUPPORTED_DEVICE("{{Trident,4DWave DX}," | |||
47 | 47 | ||
48 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 48 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
49 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 49 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
50 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 50 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
51 | static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 32}; | 51 | static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 32}; |
52 | static int wavetable_size[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8192}; | 52 | static int wavetable_size[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8192}; |
53 | 53 | ||
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index ae98d56d05bd..75630408c6db 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -80,7 +80,7 @@ static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ | |||
80 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 80 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
81 | static long mpu_port; | 81 | static long mpu_port; |
82 | #ifdef SUPPORT_JOYSTICK | 82 | #ifdef SUPPORT_JOYSTICK |
83 | static int joystick; | 83 | static bool joystick; |
84 | #endif | 84 | #endif |
85 | static int ac97_clock = 48000; | 85 | static int ac97_clock = 48000; |
86 | static char *ac97_quirk; | 86 | static char *ac97_quirk; |
@@ -110,7 +110,7 @@ module_param(nodelay, int, 0444); | |||
110 | MODULE_PARM_DESC(nodelay, "Disable 500ms init delay"); | 110 | MODULE_PARM_DESC(nodelay, "Disable 500ms init delay"); |
111 | 111 | ||
112 | /* just for backward compatibility */ | 112 | /* just for backward compatibility */ |
113 | static int enable; | 113 | static bool enable; |
114 | module_param(enable, bool, 0444); | 114 | module_param(enable, bool, 0444); |
115 | 115 | ||
116 | 116 | ||
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index 80a9c2bf3301..5efcbcac506a 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -66,7 +66,7 @@ module_param(ac97_clock, int, 0444); | |||
66 | MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); | 66 | MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); |
67 | 67 | ||
68 | /* just for backward compatibility */ | 68 | /* just for backward compatibility */ |
69 | static int enable; | 69 | static bool enable; |
70 | module_param(enable, bool, 0444); | 70 | module_param(enable, bool, 0444); |
71 | 71 | ||
72 | 72 | ||
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index 6765822fb3b7..6a534bfe1274 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c | |||
@@ -37,8 +37,8 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," CARD_NAME "}}"); | |||
37 | 37 | ||
38 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 38 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
39 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 39 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
40 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 40 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
41 | static int mic[SNDRV_CARDS]; /* microphone */ | 41 | static bool mic[SNDRV_CARDS]; /* microphone */ |
42 | static int ibl[SNDRV_CARDS]; /* microphone */ | 42 | static int ibl[SNDRV_CARDS]; /* microphone */ |
43 | 43 | ||
44 | module_param_array(index, int, NULL, 0444); | 44 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index e97ddcac0d37..e57b89e8aa89 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -41,13 +41,13 @@ MODULE_SUPPORTED_DEVICE("{{Yamaha,YMF724}," | |||
41 | 41 | ||
42 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 42 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
43 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 43 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
44 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 44 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
45 | static long fm_port[SNDRV_CARDS]; | 45 | static long fm_port[SNDRV_CARDS]; |
46 | static long mpu_port[SNDRV_CARDS]; | 46 | static long mpu_port[SNDRV_CARDS]; |
47 | #ifdef SUPPORT_JOYSTICK | 47 | #ifdef SUPPORT_JOYSTICK |
48 | static long joystick_port[SNDRV_CARDS]; | 48 | static long joystick_port[SNDRV_CARDS]; |
49 | #endif | 49 | #endif |
50 | static int rear_switch[SNDRV_CARDS]; | 50 | static bool rear_switch[SNDRV_CARDS]; |
51 | 51 | ||
52 | module_param_array(index, int, NULL, 0444); | 52 | module_param_array(index, int, NULL, 0444); |
53 | MODULE_PARM_DESC(index, "Index value for the Yamaha DS-1 PCI soundcard."); | 53 | MODULE_PARM_DESC(index, "Index value for the Yamaha DS-1 PCI soundcard."); |