Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rusty Russell and committed by
Takashi Iwai
a67ff6a5 1bba160a

+172 -172
+1 -1
Documentation/DocBook/writing-an-alsa-driver.tmpl
··· 404 404 /* SNDRV_CARDS: maximum number of cards supported by this module */ 405 405 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 406 406 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 407 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 407 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 408 408 409 409 /* definition of the chip-specific record */ 410 410 struct mychip {
+1 -1
sound/core/oss/pcm_oss.c
··· 47 47 48 48 static int dsp_map[SNDRV_CARDS]; 49 49 static int adsp_map[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 1}; 50 - static int nonblock_open = 1; 50 + static bool nonblock_open = 1; 51 51 52 52 MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Abramo Bagnara <abramo@alsa-project.org>"); 53 53 MODULE_DESCRIPTION("PCM OSS emulation for ALSA.");
+1 -1
sound/core/seq/seq_dummy.c
··· 65 65 MODULE_ALIAS("snd-seq-client-" __stringify(SNDRV_SEQ_CLIENT_DUMMY)); 66 66 67 67 static int ports = 1; 68 - static int duplex; 68 + static bool duplex; 69 69 70 70 module_param(ports, int, 0444); 71 71 MODULE_PARM_DESC(ports, "number of ports to be created");
+1 -1
sound/drivers/aloop.c
··· 51 51 52 52 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 53 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 55 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; 56 56 static int pcm_notify[SNDRV_CARDS]; 57 57
+3 -3
sound/drivers/dummy.c
··· 60 60 61 61 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 62 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 64 static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = NULL}; 65 65 static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 66 66 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; 67 67 //static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; 68 68 #ifdef CONFIG_HIGH_RES_TIMERS 69 - static int hrtimer = 1; 69 + static bool hrtimer = 1; 70 70 #endif 71 - static int fake_buffer = 1; 71 + static bool fake_buffer = 1; 72 72 73 73 module_param_array(index, int, NULL, 0444); 74 74 MODULE_PARM_DESC(index, "Index value for dummy soundcard.");
+1 -1
sound/drivers/ml403-ac97cr.c
··· 73 73 74 74 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 75 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 78 module_param_array(index, int, NULL, 0444); 79 79 MODULE_PARM_DESC(index, "Index value for ML403 AC97 Controller Reference.");
+3 -3
sound/drivers/mpu401/mpu401.c
··· 35 35 36 36 static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* exclude the first card */ 37 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 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 41 #endif 42 42 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* MPU-401 port number */ 43 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 46 module_param_array(index, int, NULL, 0444); 47 47 MODULE_PARM_DESC(index, "Index value for MPU-401 device.");
+1 -1
sound/drivers/mts64.c
··· 36 36 37 37 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 38 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 41 static struct platform_device *platform_devices[SNDRV_CARDS]; 42 42 static int device_count;
+1 -1
sound/drivers/opl3/opl3_midi.c
··· 27 27 28 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 32 static void snd_opl3_note_off_unsafe(void *p, int note, int vel, 33 33 struct snd_midi_channel *chan);
+1 -1
sound/drivers/opl3/opl3_seq.c
··· 32 32 MODULE_LICENSE("GPL"); 33 33 MODULE_DESCRIPTION("ALSA driver for OPL3 FM synth"); 34 34 35 - int use_internal_drums = 0; 35 + bool use_internal_drums = 0; 36 36 module_param(use_internal_drums, bool, 0444); 37 37 MODULE_PARM_DESC(use_internal_drums, "Enable internal OPL2/3 drums."); 38 38
+2 -2
sound/drivers/pcsp/pcsp.c
··· 25 25 26 26 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 27 27 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 28 - static int enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ 29 - static int nopcm; /* Disable PCM capability of the driver */ 28 + static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ 29 + static bool nopcm; /* Disable PCM capability of the driver */ 30 30 31 31 module_param(index, int, 0444); 32 32 MODULE_PARM_DESC(index, "Index value for pcsp soundcard.");
+1 -1
sound/drivers/pcsp/pcsp_lib.c
··· 14 14 #include <asm/io.h> 15 15 #include "pcsp.h" 16 16 17 - static int nforce_wa; 17 + static bool nforce_wa; 18 18 module_param(nforce_wa, bool, 0444); 19 19 MODULE_PARM_DESC(nforce_wa, "Apply NForce chipset workaround " 20 20 "(expect bad sound)");
+1 -1
sound/drivers/portman2x4.c
··· 55 55 56 56 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 57 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 60 static struct platform_device *platform_devices[SNDRV_CARDS]; 61 61 static int device_count;
+2 -2
sound/drivers/serial-u16550.c
··· 69 69 70 70 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 71 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 73 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x3f8,0x2f8,0x3e8,0x2e8 */ 74 74 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 3,4,5,7,9,10,11,14,15 */ 75 75 static int speed[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 38400}; /* 9600,19200,38400,57600,115200 */ ··· 77 77 static int outs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ 78 78 static int ins[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ 79 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 82 module_param_array(index, int, NULL, 0444); 83 83 MODULE_PARM_DESC(index, "Index value for Serial MIDI.");
+1 -1
sound/drivers/virmidi.c
··· 63 63 64 64 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 65 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 67 static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; 68 68 69 69 module_param_array(index, int, NULL, 0444);
+1 -1
sound/isa/ad1816a/ad1816a.c
··· 44 44 45 45 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */ 46 46 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 47 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 47 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 48 48 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 49 49 static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 50 50 static long fm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */
+2 -2
sound/isa/ad1848/ad1848.c
··· 43 43 44 44 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 45 45 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 46 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 46 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 47 47 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 48 48 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 5,7,9,11,12,15 */ 49 49 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ 50 - static int thinkpad[SNDRV_CARDS]; /* Thinkpad special case */ 50 + static bool thinkpad[SNDRV_CARDS]; /* Thinkpad special case */ 51 51 52 52 module_param_array(index, int, NULL, 0444); 53 53 MODULE_PARM_DESC(index, "Index value for " CRD_NAME " soundcard.");
+1 -1
sound/isa/adlib.c
··· 18 18 19 19 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 20 20 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 21 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; 21 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; 22 22 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; 23 23 24 24 module_param_array(index, int, NULL, 0444);
+1 -1
sound/isa/als100.c
··· 54 54 55 55 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 56 56 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 57 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 57 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 58 58 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 59 59 static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 60 60 static long fm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */
+1 -1
sound/isa/azt2320.c
··· 55 55 56 56 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 57 57 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 58 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 58 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 59 59 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 60 60 static long wss_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 61 61 static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */
+2 -2
sound/isa/cmi8330.c
··· 69 69 70 70 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 71 71 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 72 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; 72 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; 73 73 #ifdef CONFIG_PNP 74 - static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 74 + static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 75 75 #endif 76 76 static long sbport[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; 77 77 static int sbirq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
+1 -1
sound/isa/cs423x/cs4231.c
··· 41 41 42 42 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 43 43 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 44 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 44 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 45 45 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 46 46 static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 47 47 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 5,7,9,11,12,15 */
+2 -2
sound/isa/cs423x/cs4236.c
··· 74 74 75 75 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 76 76 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 77 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 77 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 78 78 #ifdef CONFIG_PNP 79 - static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 79 + static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 80 80 #endif 81 81 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 82 82 static long cport[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */
+2 -2
sound/isa/es1688/es1688.c
··· 51 51 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 52 52 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 53 53 #ifdef CONFIG_PNP 54 - static int isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; 54 + static bool isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; 55 55 #endif 56 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 56 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 57 57 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ 58 58 static long fm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* Usually 0x388 */ 59 59 static long mpu_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -1};
+2 -2
sound/isa/es18xx.c
··· 1964 1964 1965 1965 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 1966 1966 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 1967 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 1967 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 1968 1968 #ifdef CONFIG_PNP 1969 - static int isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; 1969 + static bool isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; 1970 1970 #endif 1971 1971 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260,0x280 */ 1972 1972 #ifndef CONFIG_PNP
+1 -1
sound/isa/galaxy/galaxy.c
··· 35 35 36 36 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 37 37 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 38 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; 38 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; 39 39 40 40 module_param_array(index, int, NULL, 0444); 41 41 MODULE_PARM_DESC(index, "Index value for " CRD_NAME " soundcard.");
+1 -1
sound/isa/gus/gusclassic.c
··· 42 42 43 43 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 44 44 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 45 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 45 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 46 46 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x230,0x240,0x250,0x260 */ 47 47 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 3,5,9,11,12,15 */ 48 48 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */
+1 -1
sound/isa/gus/gusextreme.c
··· 46 46 47 47 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 48 48 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 49 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 49 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 50 50 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ 51 51 static long gf1_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS) - 1] = -1}; /* 0x210,0x220,0x230,0x240,0x250,0x260,0x270 */ 52 52 static long mpu_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS) - 1] = -1}; /* 0x300,0x310,0x320 */
+1 -1
sound/isa/gus/gusmax.c
··· 40 40 41 41 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 42 42 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 43 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 43 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 44 44 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x230,0x240,0x250,0x260 */ 45 45 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 2,3,5,9,11,12,15 */ 46 46 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */
+2 -2
sound/isa/gus/interwave.c
··· 55 55 56 56 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 57 57 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 58 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 58 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 59 59 #ifdef CONFIG_PNP 60 - static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 60 + static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 61 61 #endif 62 62 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x210,0x220,0x230,0x240,0x250,0x260 */ 63 63 #ifdef SNDRV_STB
+1 -1
sound/isa/msnd/msnd_pinnacle.c
··· 785 785 static int calibrate_signal; 786 786 787 787 #ifdef CONFIG_PNP 788 - static int isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 788 + static bool isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 789 789 module_param_array(isapnp, bool, NULL, 0444); 790 790 MODULE_PARM_DESC(isapnp, "ISA PnP detection for specified soundcard."); 791 791 #define has_isapnp(x) isapnp[x]
+2 -2
sound/isa/opl3sa2.c
··· 46 46 47 47 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 48 48 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 49 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 49 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 50 50 #ifdef CONFIG_PNP 51 - static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 51 + static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 52 52 #endif 53 53 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0xf86,0x370,0x100 */ 54 54 static long sb_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */
+1 -1
sound/isa/opti9xx/miro.c
··· 61 61 static int wss; 62 62 static int ide; 63 63 #ifdef CONFIG_PNP 64 - static int isapnp = 1; /* Enable ISA PnP detection */ 64 + static bool isapnp = 1; /* Enable ISA PnP detection */ 65 65 #endif 66 66 67 67 module_param(index, int, 0444);
+1 -1
sound/isa/opti9xx/opti92x-ad1848.c
··· 63 63 64 64 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 65 65 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 66 - //static int enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ 66 + //static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ 67 67 #ifdef CONFIG_PNP 68 68 static int isapnp = 1; /* Enable ISA PnP detection */ 69 69 #endif
+1 -1
sound/isa/sb/jazz16.c
··· 36 36 37 37 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 38 38 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 39 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 39 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 40 40 static unsigned long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; 41 41 static unsigned long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; 42 42 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
+2 -2
sound/isa/sb/sb16.c
··· 68 68 69 69 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 70 70 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 71 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 71 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP; /* Enable this card */ 72 72 #ifdef CONFIG_PNP 73 - static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 73 + static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 74 74 #endif 75 75 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260,0x280 */ 76 76 static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x330,0x300 */
+1 -1
sound/isa/sb/sb8.c
··· 36 36 37 37 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 38 38 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 39 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 39 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 40 40 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ 41 41 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 5,7,9,10 */ 42 42 static int dma8[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3 */
+1 -1
sound/isa/sc6000.c
··· 48 48 49 49 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 50 50 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 51 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 51 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 52 52 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220, 0x240 */ 53 53 static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 5, 7, 9, 10, 11 */ 54 54 static long mss_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x530, 0xe80 */
+3 -3
sound/isa/wavefront/wavefront.c
··· 38 38 39 39 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 40 40 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 41 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 41 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 42 42 #ifdef CONFIG_PNP 43 - static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 43 + static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 44 44 #endif 45 45 static long cs4232_pcm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 46 46 static int cs4232_pcm_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 5,7,9,11,12,15 */ ··· 51 51 static long fm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ 52 52 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ 53 53 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ 54 - static int use_cs4232_midi[SNDRV_CARDS]; 54 + static bool use_cs4232_midi[SNDRV_CARDS]; 55 55 56 56 module_param_array(index, int, NULL, 0444); 57 57 MODULE_PARM_DESC(index, "Index value for WaveFront soundcard.");
+4 -4
sound/oss/ad1848.c
··· 119 119 static struct address_info cfg; 120 120 static int nr_ad1848_devs; 121 121 122 - static int deskpro_xl; 123 - static int deskpro_m; 124 - static int soundpro; 122 + static bool deskpro_xl; 123 + static bool deskpro_m; 124 + static bool soundpro; 125 125 126 126 static volatile signed char irq2dev[17] = { 127 127 -1, -1, -1, -1, -1, -1, -1, -1, ··· 177 177 #ifdef CONFIG_PNP 178 178 static int isapnp = 1; 179 179 static int isapnpjump; 180 - static int reverse; 180 + static bool reverse; 181 181 182 182 static int audio_activated; 183 183 #else
+1 -1
sound/oss/msnd_pinnacle.c
··· 1701 1701 #ifndef CONFIG_MSNDPIN_DIGITAL 1702 1702 # define CONFIG_MSNDPIN_DIGITAL 0 1703 1703 #endif 1704 - static int digital __initdata = CONFIG_MSNDPIN_DIGITAL; 1704 + static bool digital __initdata = CONFIG_MSNDPIN_DIGITAL; 1705 1705 1706 1706 #endif /* MSND_CLASSIC */ 1707 1707
+6 -6
sound/oss/pas2_card.c
··· 41 41 static int pas_sb_base; 42 42 DEFINE_SPINLOCK(pas_lock); 43 43 #ifndef CONFIG_PAS_JOYSTICK 44 - static int joystick; 44 + static bool joystick; 45 45 #else 46 - static int joystick = 1; 46 + static bool joystick = 1; 47 47 #endif 48 48 #ifdef SYMPHONY_PAS 49 - static int symphony = 1; 49 + static bool symphony = 1; 50 50 #else 51 - static int symphony; 51 + static bool symphony; 52 52 #endif 53 53 #ifdef BROKEN_BUS_CLOCK 54 - static int broken_bus_clock = 1; 54 + static bool broken_bus_clock = 1; 55 55 #else 56 - static int broken_bus_clock; 56 + static bool broken_bus_clock; 57 57 #endif 58 58 59 59 static struct address_info cfg;
+5 -5
sound/oss/pss.c
··· 117 117 118 118 /* If compiled into kernel, it enable or disable pss mixer */ 119 119 #ifdef CONFIG_PSS_MIXER 120 - static int pss_mixer = 1; 120 + static bool pss_mixer = 1; 121 121 #else 122 - static int pss_mixer; 122 + static bool pss_mixer; 123 123 #endif 124 124 125 125 ··· 147 147 static int pss_initialized; 148 148 static int nonstandard_microcode; 149 149 static int pss_cdrom_port = -1; /* Parameter for the PSS cdrom port */ 150 - static int pss_enable_joystick; /* Parameter for enabling the joystick */ 150 + static bool pss_enable_joystick; /* Parameter for enabling the joystick */ 151 151 static coproc_operations pss_coproc_operations; 152 152 153 153 static void pss_write(pss_confdata *devc, int data) ··· 1133 1133 static int mss_dma __initdata = -1; 1134 1134 static int mpu_io __initdata = -1; 1135 1135 static int mpu_irq __initdata = -1; 1136 - static int pss_no_sound = 0; /* Just configure non-sound components */ 1137 - static int pss_keep_settings = 1; /* Keep hardware settings at module exit */ 1136 + static bool pss_no_sound = 0; /* Just configure non-sound components */ 1137 + static bool pss_keep_settings = 1; /* Keep hardware settings at module exit */ 1138 1138 static char *pss_firmware = "/etc/sound/pss_synth"; 1139 1139 1140 1140 module_param(pss_io, int, 0);
+1 -1
sound/oss/trix.c
··· 31 31 32 32 static int mpu; 33 33 34 - static int joystick; 34 + static bool joystick; 35 35 36 36 static unsigned char trix_read(int addr) 37 37 {
+1 -1
sound/pci/ac97/ac97_codec.c
··· 42 42 MODULE_DESCRIPTION("Universal interface for Audio Codec '97"); 43 43 MODULE_LICENSE("GPL"); 44 44 45 - static int enable_loopback; 45 + static bool enable_loopback; 46 46 47 47 module_param(enable_loopback, bool, 0444); 48 48 MODULE_PARM_DESC(enable_loopback, "Enable AC97 ADC/DAC Loopback Control");
+1 -1
sound/pci/ad1889.c
··· 66 66 module_param_array(id, charp, NULL, 0444); 67 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 70 module_param_array(enable, bool, NULL, 0444); 71 71 MODULE_PARM_DESC(enable, "Enable AD1889 soundcard."); 72 72
+2 -2
sound/pci/ali5451/ali5451.c
··· 48 48 static int index = SNDRV_DEFAULT_IDX1; /* Index */ 49 49 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 50 50 static int pcm_channels = 32; 51 - static int spdif; 51 + static bool spdif; 52 52 53 53 module_param(index, int, 0444); 54 54 MODULE_PARM_DESC(index, "Index value for ALI M5451 PCI Audio."); ··· 60 60 MODULE_PARM_DESC(spdif, "Support SPDIF I/O"); 61 61 62 62 /* just for backward compatibility */ 63 - static int enable; 63 + static bool enable; 64 64 module_param(enable, bool, 0444); 65 65 66 66
+1 -1
sound/pci/als4000.c
··· 90 90 91 91 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 92 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 94 #ifdef SUPPORT_JOYSTICK 95 95 static int joystick_port[SNDRV_CARDS]; 96 96 #endif
+2 -2
sound/pci/asihpi/asihpi.c
··· 63 63 64 64 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* index 0-MAX */ 65 65 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 66 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 67 - static int enable_hpi_hwdep = 1; 66 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 67 + static bool enable_hpi_hwdep = 1; 68 68 69 69 module_param_array(index, int, NULL, S_IRUGO); 70 70 MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard.");
+2 -2
sound/pci/atiixp.c
··· 43 43 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 44 44 static int ac97_clock = 48000; 45 45 static char *ac97_quirk; 46 - static int spdif_aclink = 1; 46 + static bool spdif_aclink = 1; 47 47 static int ac97_codec = -1; 48 48 49 49 module_param(index, int, 0444); ··· 60 60 MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); 61 61 62 62 /* just for backward compatibility */ 63 - static int enable; 63 + static bool enable; 64 64 module_param(enable, bool, 0444); 65 65 66 66
+1 -1
sound/pci/atiixp_modem.c
··· 51 51 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); 52 52 53 53 /* just for backward compatibility */ 54 - static int enable; 54 + static bool enable; 55 55 module_param(enable, bool, 0444); 56 56 57 57
+1 -1
sound/pci/au88x0/au88x0.c
··· 26 26 // module parameters (see "Module Parameters") 27 27 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 28 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 static int pcifix[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 255 }; 31 31 32 32 module_param_array(index, int, NULL, 0444);
+1 -1
sound/pci/aw2/aw2-alsa.c
··· 153 153 ********************************/ 154 154 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 155 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 158 module_param_array(index, int, NULL, 0444); 159 159 MODULE_PARM_DESC(index, "Index value for Audiowerk2 soundcard.");
+1 -1
sound/pci/azt3328.c
··· 301 301 module_param_array(id, charp, NULL, 0444); 302 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 305 module_param_array(enable, bool, NULL, 0444); 306 306 MODULE_PARM_DESC(enable, "Enable AZF3328 soundcard."); 307 307
+2 -2
sound/pci/bt87x.c
··· 42 42 43 43 static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* Exclude the first card */ 44 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 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 49 module_param_array(index, int, NULL, 0444); 50 50 MODULE_PARM_DESC(index, "Index value for Bt87x soundcard");
+1 -1
sound/pci/ca0106/ca0106_main.c
··· 156 156 // module parameters (see "Module Parameters") 157 157 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 158 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 160 static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */ 161 161 162 162 module_param_array(index, int, NULL, 0444);
+2 -2
sound/pci/cmipci.c
··· 54 54 55 55 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 56 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 58 static long mpu_port[SNDRV_CARDS]; 59 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 61 #ifdef SUPPORT_JOYSTICK 62 62 static int joystick_port[SNDRV_CARDS]; 63 63 #endif
+2 -2
sound/pci/cs4281.c
··· 44 44 45 45 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 46 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 */ 48 - static int dual_codec[SNDRV_CARDS]; /* dual codec */ 47 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ 48 + static bool dual_codec[SNDRV_CARDS]; /* dual codec */ 49 49 50 50 module_param_array(index, int, NULL, 0444); 51 51 MODULE_PARM_DESC(index, "Index value for CS4281 soundcard.");
+4 -4
sound/pci/cs46xx/cs46xx.c
··· 46 46 47 47 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 48 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 */ 50 - static int external_amp[SNDRV_CARDS]; 51 - static int thinkpad[SNDRV_CARDS]; 52 - static int mmap_valid[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 49 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 50 + static bool external_amp[SNDRV_CARDS]; 51 + static bool thinkpad[SNDRV_CARDS]; 52 + static bool mmap_valid[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 53 53 54 54 module_param_array(index, int, NULL, 0444); 55 55 MODULE_PARM_DESC(index, "Index value for the CS46xx soundcard.");
+1 -1
sound/pci/cs5535audio/cs5535audio.c
··· 57 57 58 58 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 59 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 62 module_param_array(index, int, NULL, 0444); 63 63 MODULE_PARM_DESC(index, "Index value for " DRIVER_NAME);
+2 -2
sound/pci/ctxfi/cttimer.c
··· 15 15 #include "cthardware.h" 16 16 #include "cttimer.h" 17 17 18 - static int use_system_timer; 19 - MODULE_PARM_DESC(use_system_timer, "Foce to use system-timer"); 18 + static bool use_system_timer; 19 + MODULE_PARM_DESC(use_system_timer, "Force to use system-timer"); 20 20 module_param(use_system_timer, bool, S_IRUGO); 21 21 22 22 struct ct_timer_ops {
+1 -1
sound/pci/ctxfi/xfi.c
··· 32 32 33 33 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 34 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 static unsigned int subsystem[SNDRV_CARDS]; 37 37 38 38 module_param_array(index, int, NULL, 0444);
+1 -1
sound/pci/echoaudio/echoaudio.c
··· 26 26 27 27 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 28 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 31 module_param_array(index, int, NULL, 0444); 32 32 MODULE_PARM_DESC(index, "Index value for " ECHOCARD_NAME " soundcard.");
+2 -2
sound/pci/emu10k1/emu10k1.c
··· 44 44 45 45 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 46 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 48 static int extin[SNDRV_CARDS]; 49 49 static int extout[SNDRV_CARDS]; 50 50 static int seq_ports[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; 51 51 static int max_synth_voices[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 64}; 52 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 54 static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */ 55 55 static uint delay_pcm_irq[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; 56 56
+1 -1
sound/pci/emu10k1/emu10k1x.c
··· 50 50 // module parameters (see "Module Parameters") 51 51 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 52 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 55 module_param_array(index, int, NULL, 0444); 56 56 MODULE_PARM_DESC(index, "Index value for the EMU10K1X soundcard.");
+2 -2
sound/pci/ens1370.c
··· 83 83 84 84 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 85 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 87 #ifdef SUPPORT_JOYSTICK 88 88 #ifdef CHIP1371 89 89 static int joystick_port[SNDRV_CARDS]; 90 90 #else 91 - static int joystick[SNDRV_CARDS]; 91 + static bool joystick[SNDRV_CARDS]; 92 92 #endif 93 93 #endif 94 94 #ifdef CHIP1371
+1 -1
sound/pci/es1938.c
··· 79 79 80 80 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 81 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 84 module_param_array(index, int, NULL, 0444); 85 85 MODULE_PARM_DESC(index, "Index value for ESS Solo-1 soundcard.");
+2 -2
sound/pci/es1968.c
··· 132 132 133 133 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */ 134 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 136 static int total_bufsize[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1024 }; 137 137 static int pcm_substreams_p[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4 }; 138 138 static int pcm_substreams_c[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1 }; ··· 140 140 static int use_pm[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; 141 141 static int enable_mpu[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; 142 142 #ifdef SUPPORT_JOYSTICK 143 - static int joystick[SNDRV_CARDS]; 143 + static bool joystick[SNDRV_CARDS]; 144 144 #endif 145 145 146 146 module_param_array(index, int, NULL, 0444);
+1 -1
sound/pci/fm801.c
··· 48 48 49 49 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 50 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 53 * Enable TEA575x tuner 54 54 * 1 = MediaForte 256-PCS
+4 -4
sound/pci/hda/hda_intel.c
··· 58 58 59 59 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 60 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 62 static char *model[SNDRV_CARDS]; 63 63 static int position_fix[SNDRV_CARDS]; 64 64 static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; 65 65 static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; 66 66 static int probe_only[SNDRV_CARDS]; 67 - static int single_cmd; 67 + static bool single_cmd; 68 68 static int enable_msi = -1; 69 69 #ifdef CONFIG_SND_HDA_PATCH_LOADER 70 70 static char *patch[SNDRV_CARDS]; ··· 116 116 * this may give more power-saving, but will take longer time to 117 117 * wake up. 118 118 */ 119 - static int power_save_controller = 1; 119 + static bool power_save_controller = 1; 120 120 module_param(power_save_controller, bool, 0644); 121 121 MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); 122 122 #endif 123 123 124 - static int align_buffer_size = 1; 124 + static bool align_buffer_size = 1; 125 125 module_param(align_buffer_size, bool, 0644); 126 126 MODULE_PARM_DESC(align_buffer_size, 127 127 "Force buffer and period sizes to be multiple of 128 bytes.");
+2 -2
sound/pci/ice1712/ice1712.c
··· 84 84 85 85 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 86 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 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 90 static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transceiver reset timeout value in msec */ 91 91 static int dxr_enable[SNDRV_CARDS]; /* DXR enable for DMX6FIRE */ 92 92
+1 -1
sound/pci/ice1712/ice1724.c
··· 80 80 81 81 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 82 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 84 static char *model[SNDRV_CARDS]; 85 85 86 86 module_param_array(index, int, NULL, 0444);
+3 -3
sound/pci/intel8x0.c
··· 79 79 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 80 80 static int ac97_clock; 81 81 static char *ac97_quirk; 82 - static int buggy_semaphore; 82 + static bool buggy_semaphore; 83 83 static int buggy_irq = -1; /* auto-check */ 84 - static int xbox; 84 + static bool xbox; 85 85 static int spdif_aclink = -1; 86 86 static int inside_vm = -1; 87 87 ··· 105 105 MODULE_PARM_DESC(inside_vm, "KVM/Parallels optimization."); 106 106 107 107 /* just for backward compatibility */ 108 - static int enable; 108 + static bool enable; 109 109 module_param(enable, bool, 0444); 110 110 static int joystick; 111 111 module_param(joystick, int, 0444);
+1 -1
sound/pci/intel8x0m.c
··· 68 68 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = auto-detect)."); 69 69 70 70 /* just for backward compatibility */ 71 - static int enable; 71 + static bool enable; 72 72 module_param(enable, bool, 0444); 73 73 74 74 /*
+1 -1
sound/pci/korg1212/korg1212.c
··· 408 408 409 409 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 410 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 413 module_param_array(index, int, NULL, 0444); 414 414 MODULE_PARM_DESC(index, "Index value for Korg 1212 soundcard.");
+1 -1
sound/pci/lola/lola.c
··· 35 35 /* Standard options */ 36 36 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 37 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 40 module_param_array(index, int, NULL, 0444); 41 41 MODULE_PARM_DESC(index, "Index value for Digigram Lola driver.");
+1 -1
sound/pci/lx6464es/lx6464es.c
··· 42 42 43 43 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 44 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 47 module_param_array(index, int, NULL, 0444); 48 48 MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface.");
+2 -2
sound/pci/maestro3.c
··· 64 64 65 65 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 66 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 */ 68 - static int external_amp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 67 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* all enabled */ 68 + static bool external_amp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 69 69 static int amp_gpio[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -1}; 70 70 71 71 module_param_array(index, int, NULL, 0444);
+1 -1
sound/pci/mixart/mixart.c
··· 49 49 50 50 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 51 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 54 module_param_array(index, int, NULL, 0444); 55 55 MODULE_PARM_DESC(index, "Index value for Digigram " CARD_NAME " soundcard.");
+6 -6
sound/pci/nm256/nm256.c
··· 57 57 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 58 58 static int playback_bufsize = 16; 59 59 static int capture_bufsize = 16; 60 - static int force_ac97; /* disabled as default */ 60 + static bool force_ac97; /* disabled as default */ 61 61 static int buffer_top; /* not specified */ 62 - static int use_cache; /* disabled */ 63 - static int vaio_hack; /* disabled */ 64 - static int reset_workaround; 65 - static int reset_workaround_2; 62 + static bool use_cache; /* disabled */ 63 + static bool vaio_hack; /* disabled */ 64 + static bool reset_workaround; 65 + static bool reset_workaround_2; 66 66 67 67 module_param(index, int, 0444); 68 68 MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); ··· 86 86 MODULE_PARM_DESC(reset_workaround_2, "Enable extended AC97 RESET workaround for some other laptops."); 87 87 88 88 /* just for backward compatibility */ 89 - static int enable; 89 + static bool enable; 90 90 module_param(enable, bool, 0444); 91 91 92 92
+1 -1
sound/pci/oxygen/oxygen.c
··· 74 74 75 75 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 76 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 79 module_param_array(index, int, NULL, 0444); 80 80 MODULE_PARM_DESC(index, "card index");
+1 -1
sound/pci/oxygen/virtuoso.c
··· 32 32 33 33 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 34 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 37 module_param_array(index, int, NULL, 0444); 38 38 MODULE_PARM_DESC(index, "card index");
+2 -2
sound/pci/pcxhr/pcxhr.c
··· 52 52 53 53 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 54 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 */ 56 - static int mono[SNDRV_CARDS]; /* capture mono only */ 55 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ 56 + static bool mono[SNDRV_CARDS]; /* capture mono only */ 57 57 58 58 module_param_array(index, int, NULL, 0444); 59 59 MODULE_PARM_DESC(index, "Index value for Digigram " DRIVER_NAME " soundcard");
+1 -1
sound/pci/riptide/riptide.c
··· 122 122 123 123 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 124 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 127 #ifdef SUPPORT_JOYSTICK 128 128 static int joystick_port[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS - 1)] = 0x200 };
+2 -2
sound/pci/rme32.c
··· 89 89 90 90 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 91 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 */ 93 - static int fullduplex[SNDRV_CARDS]; // = {[0 ... (SNDRV_CARDS - 1)] = 1}; 92 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 93 + static bool fullduplex[SNDRV_CARDS]; // = {[0 ... (SNDRV_CARDS - 1)] = 1}; 94 94 95 95 module_param_array(index, int, NULL, 0444); 96 96 MODULE_PARM_DESC(index, "Index value for RME Digi32 soundcard.");
+1 -1
sound/pci/rme96.c
··· 53 53 54 54 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 55 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 58 module_param_array(index, int, NULL, 0444); 59 59 MODULE_PARM_DESC(index, "Index value for RME Digi96 soundcard.");
+1 -1
sound/pci/rme9652/hdsp.c
··· 45 45 46 46 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 47 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 50 module_param_array(index, int, NULL, 0444); 51 51 MODULE_PARM_DESC(index, "Index value for RME Hammerfall DSP interface.");
+1 -1
sound/pci/rme9652/hdspm.c
··· 61 61 62 62 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 63 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 66 module_param_array(index, int, NULL, 0444); 67 67 MODULE_PARM_DESC(index, "Index value for RME HDSPM interface.");
+2 -2
sound/pci/rme9652/rme9652.c
··· 38 38 39 39 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 40 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 */ 42 - static int precise_ptr[SNDRV_CARDS]; /* Enable precise pointer */ 41 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 42 + static bool precise_ptr[SNDRV_CARDS]; /* Enable precise pointer */ 43 43 44 44 module_param_array(index, int, NULL, 0444); 45 45 MODULE_PARM_DESC(index, "Index value for RME Digi9652 (Hammerfall) soundcard.");
+1 -1
sound/pci/sis7019.c
··· 40 40 41 41 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 42 42 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 43 - static int enable = 1; 43 + static bool enable = 1; 44 44 static int codecs = 1; 45 45 46 46 module_param(index, int, 0444);
+3 -3
sound/pci/sonicvibes.c
··· 52 52 53 53 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 54 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 */ 56 - static int reverb[SNDRV_CARDS]; 57 - static int mge[SNDRV_CARDS]; 55 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 56 + static bool reverb[SNDRV_CARDS]; 57 + static bool mge[SNDRV_CARDS]; 58 58 static unsigned int dmaio = 0x7a00; /* DDMA i/o address */ 59 59 60 60 module_param_array(index, int, NULL, 0444);
+1 -1
sound/pci/trident/trident.c
··· 47 47 48 48 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 49 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 51 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 32}; 52 52 static int wavetable_size[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8192}; 53 53
+2 -2
sound/pci/via82xx.c
··· 80 80 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 81 81 static long mpu_port; 82 82 #ifdef SUPPORT_JOYSTICK 83 - static int joystick; 83 + static bool joystick; 84 84 #endif 85 85 static int ac97_clock = 48000; 86 86 static char *ac97_quirk; ··· 110 110 MODULE_PARM_DESC(nodelay, "Disable 500ms init delay"); 111 111 112 112 /* just for backward compatibility */ 113 - static int enable; 113 + static bool enable; 114 114 module_param(enable, bool, 0444); 115 115 116 116
+1 -1
sound/pci/via82xx_modem.c
··· 66 66 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); 67 67 68 68 /* just for backward compatibility */ 69 - static int enable; 69 + static bool enable; 70 70 module_param(enable, bool, 0444); 71 71 72 72
+2 -2
sound/pci/vx222/vx222.c
··· 37 37 38 38 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 39 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 */ 41 - static int mic[SNDRV_CARDS]; /* microphone */ 40 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 41 + static bool mic[SNDRV_CARDS]; /* microphone */ 42 42 static int ibl[SNDRV_CARDS]; /* microphone */ 43 43 44 44 module_param_array(index, int, NULL, 0444);
+2 -2
sound/pci/ymfpci/ymfpci.c
··· 41 41 42 42 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 43 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 45 static long fm_port[SNDRV_CARDS]; 46 46 static long mpu_port[SNDRV_CARDS]; 47 47 #ifdef SUPPORT_JOYSTICK 48 48 static long joystick_port[SNDRV_CARDS]; 49 49 #endif 50 - static int rear_switch[SNDRV_CARDS]; 50 + static bool rear_switch[SNDRV_CARDS]; 51 51 52 52 module_param_array(index, int, NULL, 0444); 53 53 MODULE_PARM_DESC(index, "Index value for the Yamaha DS-1 PCI soundcard.");
+1 -1
sound/pcmcia/pdaudiocf/pdaudiocf.c
··· 39 39 40 40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 41 41 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 42 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ 42 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ 43 43 44 44 module_param_array(index, int, NULL, 0444); 45 45 MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard.");
+1 -1
sound/pcmcia/vx/vxpocket.c
··· 39 39 40 40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 41 41 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 42 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ 42 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */ 43 43 static int ibl[SNDRV_CARDS]; 44 44 45 45 module_param_array(index, int, NULL, 0444);
+1 -1
sound/ppc/powermac.c
··· 36 36 37 37 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 38 38 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */ 39 - static int enable_beep = 1; 39 + static bool enable_beep = 1; 40 40 41 41 module_param(index, int, 0444); 42 42 MODULE_PARM_DESC(index, "Index value for " CHIP_NAME " soundchip.");
+1 -1
sound/sh/aica.c
··· 55 55 #define CARD_NAME "AICA" 56 56 static int index = -1; 57 57 static char *id; 58 - static int enable = 1; 58 + static bool enable = 1; 59 59 module_param(index, int, 0444); 60 60 MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); 61 61 module_param(id, charp, 0444);
+1 -1
sound/sparc/amd7930.c
··· 50 50 51 51 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 52 52 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 53 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 53 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 54 54 55 55 module_param_array(index, int, NULL, 0444); 56 56 MODULE_PARM_DESC(index, "Index value for Sun AMD7930 soundcard.");
+1 -1
sound/sparc/cs4231.c
··· 40 40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 41 41 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 42 42 /* Enable this card */ 43 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 43 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 44 44 45 45 module_param_array(index, int, NULL, 0444); 46 46 MODULE_PARM_DESC(index, "Index value for Sun CS4231 soundcard.");
+1 -1
sound/sparc/dbri.c
··· 80 80 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 81 81 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 82 82 /* Enable this card */ 83 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 83 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 84 84 85 85 module_param_array(index, int, NULL, 0444); 86 86 MODULE_PARM_DESC(index, "Index value for Sun DBRI soundcard.");
+1 -1
sound/usb/6fire/chip.c
··· 35 35 36 36 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 37 37 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for card */ 38 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable card */ 38 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable card */ 39 39 static struct sfire_chip *chips[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 40 40 static struct usb_device *devices[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 41 41
+1 -1
sound/usb/caiaq/device.c
··· 55 55 56 56 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 57 57 static char* id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for this card */ 58 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 58 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 59 59 static int snd_card_used[SNDRV_CARDS]; 60 60 61 61 module_param_array(index, int, NULL, 0444);
+3 -3
sound/usb/card.c
··· 78 78 79 79 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 80 80 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 81 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ 81 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ 82 82 /* Vendor/product IDs for this card */ 83 83 static int vid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; 84 84 static int pid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; 85 85 static int nrpacks = 8; /* max. number of packets per urb */ 86 - static int async_unlink = 1; 86 + static bool async_unlink = 1; 87 87 static int device_setup[SNDRV_CARDS]; /* device parameter for this card */ 88 - static int ignore_ctl_error; 88 + static bool ignore_ctl_error; 89 89 90 90 module_param_array(index, int, NULL, 0444); 91 91 MODULE_PARM_DESC(index, "Index value for the USB audio adapter.");
+1 -1
sound/usb/misc/ua101.c
··· 52 52 53 53 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 54 54 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 55 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 55 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 56 56 static unsigned int queue_length = 21; 57 57 58 58 module_param_array(index, int, NULL, 0444);
+1 -1
sound/usb/usx2y/us122l.c
··· 37 37 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 38 38 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for this card */ 39 39 /* Enable this card */ 40 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 40 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 41 41 42 42 module_param_array(index, int, NULL, 0444); 43 43 MODULE_PARM_DESC(index, "Index value for "NAME_ALLCAPS".");
+1 -1
sound/usb/usx2y/usbusx2y.c
··· 154 154 155 155 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 156 156 static char* id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for this card */ 157 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 157 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 158 158 159 159 module_param_array(index, int, NULL, 0444); 160 160 MODULE_PARM_DESC(index, "Index value for "NAME_ALLCAPS".");