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/drivers | |
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/drivers')
-rw-r--r-- | sound/drivers/aloop.c | 2 | ||||
-rw-r--r-- | sound/drivers/dummy.c | 6 | ||||
-rw-r--r-- | sound/drivers/ml403-ac97cr.c | 2 | ||||
-rw-r--r-- | sound/drivers/mpu401/mpu401.c | 6 | ||||
-rw-r--r-- | sound/drivers/mts64.c | 2 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_midi.c | 2 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_seq.c | 2 | ||||
-rw-r--r-- | sound/drivers/pcsp/pcsp.c | 4 | ||||
-rw-r--r-- | sound/drivers/pcsp/pcsp_lib.c | 2 | ||||
-rw-r--r-- | sound/drivers/portman2x4.c | 2 | ||||
-rw-r--r-- | sound/drivers/serial-u16550.c | 4 | ||||
-rw-r--r-- | sound/drivers/virmidi.c | 2 |
12 files changed, 18 insertions, 18 deletions
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index d83bafc5d8b5..ad079b63b8ba 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c | |||
@@ -51,7 +51,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Loopback soundcard}}"); | |||
51 | 51 | ||
52 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 52 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
53 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 53 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
54 | static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; | 54 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; |
55 | static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; | 55 | static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; |
56 | static int pcm_notify[SNDRV_CARDS]; | 56 | static int pcm_notify[SNDRV_CARDS]; |
57 | 57 | ||
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 97f1f93ed275..ad9434fd6370 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -60,15 +60,15 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Dummy soundcard}}"); | |||
60 | 60 | ||
61 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 61 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
62 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 62 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
63 | static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; | 63 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; |
64 | static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = NULL}; | 64 | static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = NULL}; |
65 | static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; | 65 | static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; |
66 | static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; | 66 | static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; |
67 | //static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; | 67 | //static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; |
68 | #ifdef CONFIG_HIGH_RES_TIMERS | 68 | #ifdef CONFIG_HIGH_RES_TIMERS |
69 | static int hrtimer = 1; | 69 | static bool hrtimer = 1; |
70 | #endif | 70 | #endif |
71 | static int fake_buffer = 1; | 71 | static bool fake_buffer = 1; |
72 | 72 | ||
73 | module_param_array(index, int, NULL, 0444); | 73 | module_param_array(index, int, NULL, 0444); |
74 | MODULE_PARM_DESC(index, "Index value for dummy soundcard."); | 74 | MODULE_PARM_DESC(index, "Index value for dummy soundcard."); |
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c index 07ede97bafda..6c83b1aed288 100644 --- a/sound/drivers/ml403-ac97cr.c +++ b/sound/drivers/ml403-ac97cr.c | |||
@@ -73,7 +73,7 @@ MODULE_SUPPORTED_DEVICE("{{Xilinx,ML403 AC97 Controller Reference}}"); | |||
73 | 73 | ||
74 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 74 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
75 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 75 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
76 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; | 76 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; |
77 | 77 | ||
78 | module_param_array(index, int, NULL, 0444); | 78 | module_param_array(index, int, NULL, 0444); |
79 | MODULE_PARM_DESC(index, "Index value for ML403 AC97 Controller Reference."); | 79 | MODULE_PARM_DESC(index, "Index value for ML403 AC97 Controller Reference."); |
diff --git a/sound/drivers/mpu401/mpu401.c b/sound/drivers/mpu401/mpu401.c index 257569014f23..86f5fbc2da72 100644 --- a/sound/drivers/mpu401/mpu401.c +++ b/sound/drivers/mpu401/mpu401.c | |||
@@ -35,13 +35,13 @@ MODULE_LICENSE("GPL"); | |||
35 | 35 | ||
36 | static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* exclude the first card */ | 36 | static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* exclude the first card */ |
37 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 37 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
38 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ | 38 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ |
39 | #ifdef CONFIG_PNP | 39 | #ifdef CONFIG_PNP |
40 | static int pnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; | 40 | static bool pnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; |
41 | #endif | 41 | #endif |
42 | static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* MPU-401 port number */ | 42 | static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* MPU-401 port number */ |
43 | static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* MPU-401 IRQ */ | 43 | static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* MPU-401 IRQ */ |
44 | static int uart_enter[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; | 44 | static bool uart_enter[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; |
45 | 45 | ||
46 | module_param_array(index, int, NULL, 0444); | 46 | module_param_array(index, int, NULL, 0444); |
47 | MODULE_PARM_DESC(index, "Index value for MPU-401 device."); | 47 | MODULE_PARM_DESC(index, "Index value for MPU-401 device."); |
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c index f24bf9a06cff..621e60e2029f 100644 --- a/sound/drivers/mts64.c +++ b/sound/drivers/mts64.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 37 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
38 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 38 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
39 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 39 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
40 | 40 | ||
41 | static struct platform_device *platform_devices[SNDRV_CARDS]; | 41 | static struct platform_device *platform_devices[SNDRV_CARDS]; |
42 | static int device_count; | 42 | static int device_count; |
diff --git a/sound/drivers/opl3/opl3_midi.c b/sound/drivers/opl3/opl3_midi.c index 7d722a025d0d..2bfe4bcb7a7d 100644 --- a/sound/drivers/opl3/opl3_midi.c +++ b/sound/drivers/opl3/opl3_midi.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | extern char snd_opl3_regmap[MAX_OPL2_VOICES][4]; | 28 | extern char snd_opl3_regmap[MAX_OPL2_VOICES][4]; |
29 | 29 | ||
30 | extern int use_internal_drums; | 30 | extern bool use_internal_drums; |
31 | 31 | ||
32 | static void snd_opl3_note_off_unsafe(void *p, int note, int vel, | 32 | static void snd_opl3_note_off_unsafe(void *p, int note, int vel, |
33 | struct snd_midi_channel *chan); | 33 | struct snd_midi_channel *chan); |
diff --git a/sound/drivers/opl3/opl3_seq.c b/sound/drivers/opl3/opl3_seq.c index 723562e34fcc..68399538e435 100644 --- a/sound/drivers/opl3/opl3_seq.c +++ b/sound/drivers/opl3/opl3_seq.c | |||
@@ -32,7 +32,7 @@ MODULE_AUTHOR("Uros Bizjak <uros@kss-loka.si>"); | |||
32 | MODULE_LICENSE("GPL"); | 32 | MODULE_LICENSE("GPL"); |
33 | MODULE_DESCRIPTION("ALSA driver for OPL3 FM synth"); | 33 | MODULE_DESCRIPTION("ALSA driver for OPL3 FM synth"); |
34 | 34 | ||
35 | int use_internal_drums = 0; | 35 | bool use_internal_drums = 0; |
36 | module_param(use_internal_drums, bool, 0444); | 36 | module_param(use_internal_drums, bool, 0444); |
37 | MODULE_PARM_DESC(use_internal_drums, "Enable internal OPL2/3 drums."); | 37 | MODULE_PARM_DESC(use_internal_drums, "Enable internal OPL2/3 drums."); |
38 | 38 | ||
diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index 946a0cb996a9..99704e6a2e26 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c | |||
@@ -25,8 +25,8 @@ MODULE_ALIAS("platform:pcspkr"); | |||
25 | 25 | ||
26 | static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ | 26 | static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ |
27 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ | 27 | static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ |
28 | static int enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ | 28 | static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ |
29 | static int nopcm; /* Disable PCM capability of the driver */ | 29 | static bool nopcm; /* Disable PCM capability of the driver */ |
30 | 30 | ||
31 | module_param(index, int, 0444); | 31 | module_param(index, int, 0444); |
32 | MODULE_PARM_DESC(index, "Index value for pcsp soundcard."); | 32 | MODULE_PARM_DESC(index, "Index value for pcsp soundcard."); |
diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c index ce9e7d170c0d..434981dd4a61 100644 --- a/sound/drivers/pcsp/pcsp_lib.c +++ b/sound/drivers/pcsp/pcsp_lib.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <asm/io.h> | 14 | #include <asm/io.h> |
15 | #include "pcsp.h" | 15 | #include "pcsp.h" |
16 | 16 | ||
17 | static int nforce_wa; | 17 | static bool nforce_wa; |
18 | module_param(nforce_wa, bool, 0444); | 18 | module_param(nforce_wa, bool, 0444); |
19 | MODULE_PARM_DESC(nforce_wa, "Apply NForce chipset workaround " | 19 | MODULE_PARM_DESC(nforce_wa, "Apply NForce chipset workaround " |
20 | "(expect bad sound)"); | 20 | "(expect bad sound)"); |
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index f664823a9635..3e32bd3d95d9 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c | |||
@@ -55,7 +55,7 @@ | |||
55 | 55 | ||
56 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 56 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
57 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 57 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
58 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 58 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
59 | 59 | ||
60 | static struct platform_device *platform_devices[SNDRV_CARDS]; | 60 | static struct platform_device *platform_devices[SNDRV_CARDS]; |
61 | static int device_count; | 61 | static int device_count; |
diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index 85aad43f0b1e..b2d0e8e49bed 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c | |||
@@ -69,7 +69,7 @@ static char *adaptor_names[] = { | |||
69 | 69 | ||
70 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 70 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
71 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 71 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
72 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ | 72 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ |
73 | static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x3f8,0x2f8,0x3e8,0x2e8 */ | 73 | static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x3f8,0x2f8,0x3e8,0x2e8 */ |
74 | static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 3,4,5,7,9,10,11,14,15 */ | 74 | static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 3,4,5,7,9,10,11,14,15 */ |
75 | static int speed[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 38400}; /* 9600,19200,38400,57600,115200 */ | 75 | static int speed[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 38400}; /* 9600,19200,38400,57600,115200 */ |
@@ -77,7 +77,7 @@ static int base[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 115200}; /* baud bas | |||
77 | static int outs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ | 77 | static int outs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ |
78 | static int ins[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ | 78 | static int ins[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ |
79 | static int adaptor[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = SNDRV_SERIAL_SOUNDCANVAS}; | 79 | static int adaptor[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = SNDRV_SERIAL_SOUNDCANVAS}; |
80 | static int droponfull[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS -1)] = SNDRV_SERIAL_NORMALBUFF }; | 80 | static bool droponfull[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS -1)] = SNDRV_SERIAL_NORMALBUFF }; |
81 | 81 | ||
82 | module_param_array(index, int, NULL, 0444); | 82 | module_param_array(index, int, NULL, 0444); |
83 | MODULE_PARM_DESC(index, "Index value for Serial MIDI."); | 83 | MODULE_PARM_DESC(index, "Index value for Serial MIDI."); |
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index d79d6edc0f52..9d97478a18b3 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -63,7 +63,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Virtual rawmidi device}}"); | |||
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] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; | 66 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; |
67 | static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; | 67 | static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; |
68 | 68 | ||
69 | module_param_array(index, int, NULL, 0444); | 69 | module_param_array(index, int, NULL, 0444); |