module_param: make bool parameters really bool (sound)
Subsystems (9)
PATCH 13/15 module_param: make bool parameters really bool (sound)
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.
--- Documentation/DocBook/writing-an-alsa-driver.tmpl | 2 +- sound/core/oss/pcm_oss.c | 2 +- sound/core/seq/seq_dummy.c | 2 +- sound/drivers/aloop.c | 2 +- sound/drivers/dummy.c | 6 +++--- sound/drivers/ml403-ac97cr.c | 2 +- sound/drivers/mpu401/mpu401.c | 6 +++--- sound/drivers/mts64.c | 2 +- sound/drivers/opl3/opl3_midi.c | 2 +- sound/drivers/opl3/opl3_seq.c | 2 +- sound/drivers/pcsp/pcsp.c | 4 ++-- sound/drivers/pcsp/pcsp_lib.c | 2 +- sound/drivers/portman2x4.c | 2 +- sound/drivers/serial-u16550.c | 4 ++-- sound/drivers/virmidi.c | 2 +- sound/isa/ad1816a/ad1816a.c | 2 +- sound/isa/ad1848/ad1848.c | 4 ++-- sound/isa/adlib.c | 2 +- sound/isa/als100.c | 2 +- sound/isa/azt2320.c | 2 +- sound/isa/cmi8330.c | 4 ++-- sound/isa/cs423x/cs4231.c | 2 +- sound/isa/cs423x/cs4236.c | 4 ++-- sound/isa/es1688/es1688.c | 4 ++-- sound/isa/es18xx.c | 4 ++-- sound/isa/galaxy/galaxy.c | 2 +- sound/isa/gus/gusclassic.c | 2 +- sound/isa/gus/gusextreme.c | 2 +- sound/isa/gus/gusmax.c | 2 +- sound/isa/gus/interwave.c | 4 ++-- sound/isa/msnd/msnd_pinnacle.c | 2 +- sound/isa/opl3sa2.c | 4 ++-- sound/isa/opti9xx/miro.c | 2 +- sound/isa/opti9xx/opti92x-ad1848.c | 2 +- sound/isa/sb/jazz16.c | 2 +- sound/isa/sb/sb16.c | 4 ++-- sound/isa/sb/sb8.c | 2 +- sound/isa/sc6000.c | 2 +- sound/isa/wavefront/wavefront.c | 6 +++--- sound/oss/ad1848.c | 8 ++++---- sound/oss/msnd_pinnacle.c | 2 +- sound/oss/pas2_card.c | 12 ++++++------ sound/oss/pss.c | 10 +++++----- sound/oss/trix.c | 2 +- sound/pci/ac97/ac97_codec.c | 2 +- sound/pci/ad1889.c | 2 +- sound/pci/ali5451/ali5451.c | 4 ++-- sound/pci/als4000.c | 2 +- sound/pci/asihpi/asihpi.c | 4 ++-- sound/pci/atiixp.c | 4 ++-- sound/pci/atiixp_modem.c | 2 +- sound/pci/au88x0/au88x0.c | 2 +- sound/pci/aw2/aw2-alsa.c | 2 +- sound/pci/azt3328.c | 2 +- sound/pci/bt87x.c | 4 ++-- sound/pci/ca0106/ca0106_main.c | 2 +- sound/pci/cmipci.c | 4 ++-- sound/pci/cs4281.c | 4 ++-- sound/pci/cs46xx/cs46xx.c | 8 ++++---- sound/pci/cs5535audio/cs5535audio.c | 2 +- sound/pci/ctxfi/cttimer.c | 4 ++-- sound/pci/ctxfi/xfi.c | 2 +- sound/pci/echoaudio/echoaudio.c | 2 +- sound/pci/emu10k1/emu10k1.c | 4 ++-- sound/pci/emu10k1/emu10k1x.c | 2 +- sound/pci/ens1370.c | 4 ++-- sound/pci/es1938.c | 2 +- sound/pci/es1968.c | 4 ++-- sound/pci/fm801.c | 2 +- sound/pci/hda/hda_intel.c | 8 ++++---- sound/pci/ice1712/ice1712.c | 4 ++-- sound/pci/ice1712/ice1724.c | 2 +- sound/pci/intel8x0.c | 6 +++--- sound/pci/intel8x0m.c | 2 +- sound/pci/korg1212/korg1212.c | 2 +- sound/pci/lola/lola.c | 2 +- sound/pci/lx6464es/lx6464es.c | 2 +- sound/pci/maestro3.c | 4 ++-- sound/pci/mixart/mixart.c | 2 +- sound/pci/nm256/nm256.c | 12 ++++++------ sound/pci/oxygen/oxygen.c | 2 +- sound/pci/oxygen/virtuoso.c | 2 +- sound/pci/pcxhr/pcxhr.c | 4 ++-- sound/pci/riptide/riptide.c | 2 +- sound/pci/rme32.c | 4 ++-- sound/pci/rme96.c | 2 +- sound/pci/rme9652/hdsp.c | 2 +- sound/pci/rme9652/hdspm.c | 2 +- sound/pci/rme9652/rme9652.c | 4 ++-- sound/pci/sis7019.c | 2 +- sound/pci/sonicvibes.c | 6 +++--- sound/pci/trident/trident.c | 2 +- sound/pci/via82xx.c | 4 ++-- sound/pci/via82xx_modem.c | 2 +- sound/pci/vx222/vx222.c | 4 ++-- sound/pci/ymfpci/ymfpci.c | 4 ++-- sound/pcmcia/pdaudiocf/pdaudiocf.c | 2 +- sound/pcmcia/vx/vxpocket.c | 2 +- sound/ppc/powermac.c | 2 +- sound/sh/aica.c | 2 +- sound/sparc/amd7930.c | 2 +- sound/sparc/cs4231.c | 2 +- sound/sparc/dbri.c | 2 +- sound/usb/6fire/chip.c | 2 +- sound/usb/caiaq/device.c | 2 +- sound/usb/card.c | 6 +++--- sound/usb/misc/ua101.c | 2 +- sound/usb/usx2y/us122l.c | 2 +- sound/usb/usx2y/usbusx2y.c | 2 +- 109 files changed, 172 insertions(+), 172 deletions(-)
Documentation/DocBook/writing-an-alsa-driver.tmpl +1 -1
@@ -404,7 +404,7 @@ /* SNDRV_CARDS: maximum number of cards supported by this module */ static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* definition of the chip-specific record */ struct mychip {
sound/core/oss/pcm_oss.c +1 -1
@@ -47,7 +47,7 @@static int dsp_map[SNDRV_CARDS ];static int adsp_map[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; -static int nonblock_open =1 ; +static bool nonblock_open =1 ;MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>, Abramo Bagnara <[email protected]>" );MODULE_DESCRIPTION ("PCM OSS emulation for ALSA." );
sound/core/seq/seq_dummy.c +1 -1
@@ -65,7 +65,7 @@ MODULE_LICENSE("GPL");MODULE_ALIAS ("snd-seq-client-" __stringify(SNDRV_SEQ_CLIENT_DUMMY ));static int ports =1 ; -static int duplex; +static bool duplex;module_param (ports, int,0444 );MODULE_PARM_DESC (ports,"number of ports to be created" );
sound/drivers/aloop.c +1 -1
@@ -51,7 +51,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Loopbackstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 }; +static bool enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 };static int pcm_substreams[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =8 };static int pcm_notify[SNDRV_CARDS ];
sound/drivers/dummy.c +3 -3
@@ -60,15 +60,15 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Dummy sostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 }; +static bool enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 };static char *model[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =NULL };static int pcm_devs[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };static int pcm_substreams[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =8 };//static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; #ifdef CONFIG_HIGH_RES_TIMERS -static int hrtimer =1 ; +static bool hrtimer =1 ;#endif -static int fake_buffer =1 ; +static bool fake_buffer =1 ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for dummy soundcard." );
sound/drivers/ml403-ac97cr.c +1 -1
@@ -73,7 +73,7 @@ MODULE_SUPPORTED_DEVICE("{{Xilinx,ML403static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for ML403 AC97 Controller Reference." );
sound/drivers/mpu401/mpu401.c +3 -3
@@ -35,13 +35,13 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-2 };/* exclude the first card */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ #ifdef CONFIG_PNP -static int pnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool pnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* MPU-401 port number */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* MPU-401 IRQ */ -static int uart_enter[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool uart_enter[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for MPU-401 device." );
sound/drivers/mts64.c +1 -1
@@ -36,7 +36,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static struct platform_device *platform_devices[SNDRV_CARDS ];static int device_count;
sound/drivers/opl3/opl3_midi.c +1 -1
@@ -27,7 +27,7 @@extern char snd_opl3_regmap[MAX_OPL2_VOICES ][4 ]; -extern int use_internal_drums; +extern bool use_internal_drums;static void snd_opl3_note_off_unsafe (void *p,int note,int vel,struct snd_midi_channel *chan);
sound/drivers/opl3/opl3_seq.c +1 -1
@@ -32,7 +32,7 @@ MODULE_AUTHOR("Uros Bizjak <uros@kss-lokMODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("ALSA driver for OPL3 FM synth" ); -int use_internal_drums =0 ; +bool use_internal_drums =0 ;module_param (use_internal_drums, bool,0444 );MODULE_PARM_DESC (use_internal_drums,"Enable internal OPL2/3 drums." );
sound/drivers/pcsp/pcsp.c +2 -2
@@ -25,8 +25,8 @@ MODULE_ALIAS("platform:pcspkr");static int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -static int enable =SNDRV_DEFAULT_ENABLE1 ;/* Enable this card */ -static int nopcm;/* Disable PCM capability of the driver */ +static bool enable =SNDRV_DEFAULT_ENABLE1 ;/* Enable this card */ +static bool nopcm;/* Disable PCM capability of the driver */ module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for pcsp soundcard." );
sound/drivers/pcsp/pcsp_lib.c +1 -1
@@ -14,7 +14,7 @@#include <asm/io.h> #include "pcsp.h" -static int nforce_wa; +static bool nforce_wa;module_param (nforce_wa, bool,0444 );MODULE_PARM_DESC (nforce_wa,"Apply NForce chipset workaround " "(expect bad sound)" );
sound/drivers/portman2x4.c +1 -1
@@ -55,7 +55,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static struct platform_device *platform_devices[SNDRV_CARDS ];static int device_count;
sound/drivers/serial-u16550.c +2 -2
@@ -69,7 +69,7 @@ static char *adaptor_names[] = {static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x3f8,0x2f8,0x3e8,0x2e8 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 3,4,5,7,9,10,11,14,15 */ 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 ... (static int outs[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };/* 1 to 16 */ static int ins[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };/* 1 to 16 */ static int adaptor[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =SNDRV_SERIAL_SOUNDCANVAS }; -static int droponfull[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =SNDRV_SERIAL_NORMALBUFF }; +static bool droponfull[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =SNDRV_SERIAL_NORMALBUFF };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Serial MIDI." );
sound/drivers/virmidi.c +1 -1
@@ -63,7 +63,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Virtualstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 }; +static bool enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 };static int midi_devs[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =4 };module_param_array (index, int,NULL ,0444 );
sound/isa/ad1816a/ad1816a.c +1 -1
@@ -44,7 +44,7 @@ MODULE_SUPPORTED_DEVICE("{{Highscreen,Sostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 1-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */
sound/isa/ad1848/ad1848.c +2 -2
@@ -43,11 +43,11 @@ MODULE_SUPPORTED_DEVICE("{{Analog Devicestatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,11,12,15 */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0,1,3,5,6,7 */ -static int thinkpad[SNDRV_CARDS ];/* Thinkpad special case */ +static bool thinkpad[SNDRV_CARDS ];/* Thinkpad special case */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CRD_NAME " soundcard." );
sound/isa/adlib.c +1 -1
@@ -18,7 +18,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;module_param_array (index, int,NULL ,0444 );
sound/isa/als100.c +1 -1
@@ -54,7 +54,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */
sound/isa/azt2320.c +1 -1
@@ -55,7 +55,7 @@ MODULE_SUPPORTED_DEVICE("{{Aztech Systemstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long wss_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */
sound/isa/cmi8330.c +2 -2
@@ -69,9 +69,9 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI83static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;#ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long sbport[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;static int sbirq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;
sound/isa/cs423x/cs4231.c +1 -1
@@ -41,7 +41,7 @@ MODULE_SUPPORTED_DEVICE("{{Crystal Semicstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,11,12,15 */
sound/isa/cs423x/cs4236.c +2 -2
@@ -74,9 +74,9 @@ MODULE_ALIAS("snd_cs4232");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long cport[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */
sound/isa/es1688/es1688.c +2 -2
@@ -51,9 +51,9 @@ MODULE_ALIAS("snd_es968");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ; +static bool isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;#endif -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ static long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* Usually 0x388 */ static long mpu_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };
sound/isa/es18xx.c +2 -2
@@ -1964,9 +1964,9 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1868 Pnstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ; +static bool isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260,0x280 */ #ifndef CONFIG_PNP
sound/isa/galaxy/galaxy.c +1 -1
@@ -35,7 +35,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CRD_NAME " soundcard." );
sound/isa/gus/gusclassic.c +1 -1
@@ -42,7 +42,7 @@ MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x230,0x240,0x250,0x260 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 3,5,9,11,12,15 */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 1,3,5,6,7 */
sound/isa/gus/gusextreme.c +1 -1
@@ -46,7 +46,7 @@ MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ static long gf1_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS ) -1 ] =-1 };/* 0x210,0x220,0x230,0x240,0x250,0x260,0x270 */ static long mpu_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS ) -1 ] =-1 };/* 0x300,0x310,0x320 */
sound/isa/gus/gusmax.c +1 -1
@@ -40,7 +40,7 @@ MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x230,0x240,0x250,0x260 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 2,3,5,9,11,12,15 */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 1,3,5,6,7 */
sound/isa/gus/interwave.c +2 -2
@@ -55,9 +55,9 @@ MODULE_SUPPORTED_DEVICE("{{AMD,InterWavestatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x210,0x220,0x230,0x240,0x250,0x260 */ #ifdef SNDRV_STB
sound/isa/msnd/msnd_pinnacle.c +1 -1
@@ -785,7 +785,7 @@ static int write_ndelay[SNDRV_CARDS] = {static int calibrate_signal;#ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (isapnp, bool,NULL ,0444 );MODULE_PARM_DESC (isapnp,"ISA PnP detection for specified soundcard." );#define has_isapnp (x) isapnp[x]
sound/isa/opl3sa2.c +2 -2
@@ -46,9 +46,9 @@ MODULE_SUPPORTED_DEVICE("{{Yamaha,YMF719static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0xf86,0x370,0x100 */ static long sb_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */
sound/isa/opti9xx/miro.c +1 -1
@@ -61,7 +61,7 @@ static int dma2 = SNDRV_DEFAULT_DMA1; /static int wss;static int ide;#ifdef CONFIG_PNP -static int isapnp =1 ;/* Enable ISA PnP detection */ +static bool isapnp =1 ;/* Enable ISA PnP detection */ #endif module_param (index, int,0444 );
sound/isa/opti9xx/opti92x-ad1848.c +1 -1
@@ -63,7 +63,7 @@ MODULE_SUPPORTED_DEVICE("{{OPTi,82C924 (static int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -//static int enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ +//static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ #ifdef CONFIG_PNP static int isapnp =1 ;/* Enable ISA PnP detection */ #endif
sound/isa/sb/jazz16.c +1 -1
@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static unsigned long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;static unsigned long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;
sound/isa/sb/sb16.c +2 -2
@@ -68,9 +68,9 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labsstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260,0x280 */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x330,0x300 */
sound/isa/sb/sb8.c +1 -1
@@ -36,7 +36,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labsstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,10 */ static int dma8[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 1,3 */
sound/isa/sc6000.c +1 -1
@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{Gallant, SC-6static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220, 0x240 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5, 7, 9, 10, 11 */ static long mss_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x530, 0xe80 */
sound/isa/wavefront/wavefront.c +3 -3
@@ -38,9 +38,9 @@ MODULE_SUPPORTED_DEVICE("{{Turtle Beach,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long cs4232_pcm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int cs4232_pcm_irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,11,12,15 */
@@ -51,7 +51,7 @@ static int ics2115_irq[SNDRV_CARDS] = SNstatic long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0,1,3,5,6,7 */ static int dma2[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0,1,3,5,6,7 */ -static int use_cs4232_midi[SNDRV_CARDS ]; +static bool use_cs4232_midi[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for WaveFront soundcard." );
sound/oss/ad1848.c +4 -4
@@ -119,9 +119,9 @@ ad1848_port_info;static struct address_info cfg;static int nr_ad1848_devs; -static int deskpro_xl; -static int deskpro_m; -static int soundpro; +static bool deskpro_xl; +static bool deskpro_m; +static bool soundpro;static volatile signed char irq2dev[17 ] = {-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,
@@ -177,7 +177,7 @@ static struct {#ifdef CONFIG_PNP static int isapnp =1 ;static int isapnpjump; -static int reverse; +static bool reverse;static int audio_activated;#else
sound/oss/msnd_pinnacle.c +1 -1
@@ -1701,7 +1701,7 @@ static int joystick_io __initdata = CONF#ifndef CONFIG_MSNDPIN_DIGITAL # define CONFIG_MSNDPIN_DIGITAL 0#endif -static int digital__initdata =CONFIG_MSNDPIN_DIGITAL ; +static bool digital__initdata =CONFIG_MSNDPIN_DIGITAL ;#endif /* MSND_CLASSIC */
sound/oss/pas2_card.c +6 -6
@@ -41,19 +41,19 @@ static int pas_irq;static int pas_sb_base;DEFINE_SPINLOCK (pas_lock);#ifndef CONFIG_PAS_JOYSTICK -static int joystick; +static bool joystick;#else -static int joystick =1 ; +static bool joystick =1 ;#endif #ifdef SYMPHONY_PAS -static int symphony =1 ; +static bool symphony =1 ;#else -static int symphony; +static bool symphony;#endif #ifdef BROKEN_BUS_CLOCK -static int broken_bus_clock =1 ; +static bool broken_bus_clock =1 ;#else -static int broken_bus_clock; +static bool broken_bus_clock;#endif static struct address_info cfg;
sound/oss/pss.c +5 -5
@@ -117,9 +117,9 @@/* If compiled into kernel, it enable or disable pss mixer */ #ifdef CONFIG_PSS_MIXER -static int pss_mixer =1 ; +static bool pss_mixer =1 ;#else -static int pss_mixer; +static bool pss_mixer;#endif
@@ -147,7 +147,7 @@ static DEFINE_SPINLOCK(lock);static int pss_initialized;static int nonstandard_microcode;static int pss_cdrom_port =-1 ;/* Parameter for the PSS cdrom port */ -static int pss_enable_joystick;/* Parameter for enabling the joystick */ +static bool pss_enable_joystick;/* Parameter for enabling the joystick */ static coproc_operations pss_coproc_operations;static void pss_write (pss_confdata *devc,int data)
@@ -1133,8 +1133,8 @@ static int mss_irq __initdata = -1;static int mss_dma__initdata =-1 ;static int mpu_io__initdata =-1 ;static int mpu_irq__initdata =-1 ; -static int pss_no_sound =0 ;/* Just configure non-sound components */ -static int pss_keep_settings =1 ;/* Keep hardware settings at module exit */ +static bool pss_no_sound =0 ;/* Just configure non-sound components */ +static bool pss_keep_settings =1 ;/* Keep hardware settings at module exit */ static char *pss_firmware ="/etc/sound/pss_synth" ;module_param (pss_io, int,0 );
sound/oss/trix.c +1 -1
@@ -31,7 +31,7 @@static int mpu; -static int joystick; +static bool joystick;static unsigned char trix_read (int addr) {
sound/pci/ac97/ac97_codec.c +1 -1
@@ -42,7 +42,7 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@peMODULE_DESCRIPTION ("Universal interface for Audio Codec '97" );MODULE_LICENSE ("GPL" ); -static int enable_loopback; +static bool enable_loopback;module_param (enable_loopback, bool,0444 );MODULE_PARM_DESC (enable_loopback,"Enable AC97 ADC/DAC Loopback Control" );
sound/pci/ad1889.c +1 -1
@@ -66,7 +66,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFmodule_param_array (id, charp,NULL ,0444 );MODULE_PARM_DESC (id,"ID string for the AD1889 soundcard." ); -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (enable, bool,NULL ,0444 );MODULE_PARM_DESC (enable,"Enable AD1889 soundcard." );
sound/pci/ali5451/ali5451.c +2 -2
@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{ALI,M5451,pcistatic int index =SNDRV_DEFAULT_IDX1 ;/* Index */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int pcm_channels =32 ; -static int spdif; +static bool spdif;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for ALI M5451 PCI Audio." );
@@ -60,7 +60,7 @@ module_param(spdif, bool, 0444);MODULE_PARM_DESC (spdif,"Support SPDIF I/O" );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );
sound/pci/als4000.c +1 -1
@@ -90,7 +90,7 @@ MODULE_SUPPORTED_DEVICE("{{Avance Logic,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ #ifdef SUPPORT_JOYSTICK static int joystick_port[SNDRV_CARDS ];#endif
sound/pci/asihpi/asihpi.c +2 -2
@@ -63,8 +63,8 @@ MODULE_DESCRIPTION("AudioScience ALSA ASstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; -static int enable_hpi_hwdep =1 ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable_hpi_hwdep =1 ;module_param_array (index, int,NULL ,S_IRUGO );MODULE_PARM_DESC (index,"ALSA index value for AudioScience soundcard." );
sound/pci/atiixp.c +2 -2
@@ -43,7 +43,7 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int ac97_clock =48000 ;static char *ac97_quirk; -static int spdif_aclink =1 ; +static bool spdif_aclink =1 ;static int ac97_codec =-1 ;module_param (index, int,0444 );
@@ -60,7 +60,7 @@ module_param(spdif_aclink, bool, 0444);MODULE_PARM_DESC (spdif_aclink,"S/PDIF over AC-link." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );
sound/pci/atiixp_modem.c +1 -1
@@ -51,7 +51,7 @@ module_param(ac97_clock, int, 0444);MODULE_PARM_DESC (ac97_clock,"AC'97 codec clock (default 48000Hz)." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );
sound/pci/au88x0/au88x0.c +1 -1
@@ -26,7 +26,7 @@// module parameters (see "Module Parameters") static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static int pcifix[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =255 };module_param_array (index, int,NULL ,0444 );
sound/pci/aw2/aw2-alsa.c +1 -1
@@ -153,7 +153,7 @@ static int snd_aw2_control_switch_captur********************************/ static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Audiowerk2 soundcard." );
sound/pci/azt3328.c +1 -1
@@ -301,7 +301,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFmodule_param_array (id, charp,NULL ,0444 );MODULE_PARM_DESC (id,"ID string for AZF3328 soundcard." ); -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (enable, bool,NULL ,0444 );MODULE_PARM_DESC (enable,"Enable AZF3328 soundcard." );
sound/pci/bt87x.c +2 -2
@@ -42,9 +42,9 @@ MODULE_SUPPORTED_DEVICE("{{Brooktree,Bt8static int index[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-2 };/* Exclude the first card */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int digital_rate[SNDRV_CARDS ];/* digital input rate */ -static int load_all;/* allow to load the non-whitelisted cards */ +static bool load_all;/* allow to load the non-whitelisted cards */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Bt87x soundcard" );
sound/pci/ca0106/ca0106_main.c +1 -1
@@ -156,7 +156,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative,SB C// module parameters (see "Module Parameters") static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static uint subsystem[SNDRV_CARDS ];/* Force card subsystem model */ module_param_array (index, int,NULL ,0444 );
sound/pci/cmipci.c +2 -2
@@ -54,10 +54,10 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI87static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ static long mpu_port[SNDRV_CARDS ];static long fm_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )]=1 }; -static int soft_ac3[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )]=1 }; +static bool soft_ac3[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )]=1 };#ifdef SUPPORT_JOYSTICK static int joystick_port[SNDRV_CARDS ];#endif
sound/pci/cs4281.c +2 -2
@@ -44,8 +44,8 @@ MODULE_SUPPORTED_DEVICE("{{Cirrus Logic,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ -static int dual_codec[SNDRV_CARDS ];/* dual codec */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool dual_codec[SNDRV_CARDS ];/* dual codec */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for CS4281 soundcard." );
sound/pci/cs46xx/cs46xx.c +4 -4
@@ -46,10 +46,10 @@ MODULE_SUPPORTED_DEVICE("{{Cirrus Logic,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int external_amp[SNDRV_CARDS ]; -static int thinkpad[SNDRV_CARDS ]; -static int mmap_valid[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool external_amp[SNDRV_CARDS ]; +static bool thinkpad[SNDRV_CARDS ]; +static bool mmap_valid[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the CS46xx soundcard." );
sound/pci/cs5535audio/cs5535audio.c +1 -1
@@ -57,7 +57,7 @@ static struct ac97_quirk ac97_quirks[] _static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " DRIVER_NAME );
sound/pci/ctxfi/cttimer.c +2 -2
@@ -15,8 +15,8 @@#include "cthardware.h" #include "cttimer.h" -static int use_system_timer; -MODULE_PARM_DESC (use_system_timer,"Foce to use system-timer" ); +static bool use_system_timer; +MODULE_PARM_DESC (use_system_timer,"Force to use system-timer" );module_param (use_system_timer, bool,S_IRUGO );struct ct_timer_ops {
sound/pci/ctxfi/xfi.c +1 -1
@@ -32,7 +32,7 @@ module_param(multiple, uint, S_IRUGO);static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static unsigned int subsystem[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );
sound/pci/echoaudio/echoaudio.c +1 -1
@@ -26,7 +26,7 @@ MODULE_DEVICE_TABLE(pci, snd_echo_ids);static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " ECHOCARD_NAME " soundcard." );
sound/pci/emu10k1/emu10k1.c +2 -2
@@ -44,13 +44,13 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labsstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int extin[SNDRV_CARDS ];static int extout[SNDRV_CARDS ];static int seq_ports[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =4 };static int max_synth_voices[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =64 };static int max_buffer_size[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =128 }; -static int enable_ir[SNDRV_CARDS ]; +static bool enable_ir[SNDRV_CARDS ];static uint subsystem[SNDRV_CARDS ];/* Force card subsystem model */ static uint delay_pcm_irq[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };
sound/pci/emu10k1/emu10k1x.c +1 -1
@@ -50,7 +50,7 @@ MODULE_SUPPORTED_DEVICE("{{Dell Creative// module parameters (see "Module Parameters") static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the EMU10K1X soundcard." );
sound/pci/ens1370.c +2 -2
@@ -83,12 +83,12 @@ MODULE_SUPPORTED_DEVICE("{{Ensoniq,Audiostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ #ifdef SUPPORT_JOYSTICK #ifdef CHIP1371 static int joystick_port[SNDRV_CARDS ];#else -static int joystick[SNDRV_CARDS ]; +static bool joystick[SNDRV_CARDS ];#endif #endif #ifdef CHIP1371
sound/pci/es1938.c +1 -1
@@ -79,7 +79,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1938},"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for ESS Solo-1 soundcard." );
sound/pci/es1968.c +2 -2
@@ -132,7 +132,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,Maestro 2static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 1-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int total_bufsize[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1024 };static int pcm_substreams_p[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =4 };static int pcm_substreams_c[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };
@@ -140,7 +140,7 @@ static int clock[SNDRV_CARDS];static int use_pm[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };static int enable_mpu[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };#ifdef SUPPORT_JOYSTICK -static int joystick[SNDRV_CARDS ]; +static bool joystick[SNDRV_CARDS ];#endif module_param_array (index, int,NULL ,0444 );
sound/pci/fm801.c +1 -1
@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{ForteMedia,FMstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ /* * Enable TEA575x tuner * 1 = MediaForte 256-PCS
sound/pci/hda/hda_intel.c +4 -4
@@ -58,13 +58,13 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static char *model[SNDRV_CARDS ];static int position_fix[SNDRV_CARDS ];static int bdl_pos_adj[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };static int probe_mask[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };static int probe_only[SNDRV_CARDS ]; -static int single_cmd; +static bool single_cmd;static int enable_msi =-1 ;#ifdef CONFIG_SND_HDA_PATCH_LOADER static char *patch[SNDRV_CARDS ];
@@ -116,12 +116,12 @@ MODULE_PARM_DESC(power_save, "Automatic* this may give more power-saving, but will take longer time to * wake up. */ -static int power_save_controller =1 ; +static bool power_save_controller =1 ;module_param (power_save_controller, bool,0644 );MODULE_PARM_DESC (power_save_controller,"Reset controller in power save mode." );#endif -static int align_buffer_size =1 ; +static bool align_buffer_size =1 ;module_param (align_buffer_size, bool,0644 );MODULE_PARM_DESC (align_buffer_size,"Force buffer and period sizes to be multiple of 128 bytes." );
sound/pci/ice1712/ice1712.c +2 -2
@@ -84,9 +84,9 @@ MODULE_SUPPORTED_DEVICE("{"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static char *model[SNDRV_CARDS ]; -static int omni[SNDRV_CARDS ];/* Delta44 & 66 Omni I/O support */ +static bool omni[SNDRV_CARDS ];/* Delta44 & 66 Omni I/O support */ static int cs8427_timeout[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =500 };/* CS8427 S/PDIF transceiver reset timeout value in msec */ static int dxr_enable[SNDRV_CARDS ];/* DXR enable for DMX6FIRE */
sound/pci/ice1712/ice1724.c +1 -1
@@ -80,7 +80,7 @@ MODULE_SUPPORTED_DEVICE("{"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static char *model[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );
sound/pci/intel8x0.c +3 -3
@@ -79,9 +79,9 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int ac97_clock;static char *ac97_quirk; -static int buggy_semaphore; +static bool buggy_semaphore;static int buggy_irq =-1 ;/* auto-check */ -static int xbox; +static bool xbox;static int spdif_aclink =-1 ;static int inside_vm =-1 ;
@@ -105,7 +105,7 @@ module_param(inside_vm, bint, 0444);MODULE_PARM_DESC (inside_vm,"KVM/Parallels optimization." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );static int joystick;module_param (joystick, int,0444 );
sound/pci/intel8x0m.c +1 -1
@@ -68,7 +68,7 @@ module_param(ac97_clock, int, 0444);MODULE_PARM_DESC (ac97_clock,"AC'97 codec clock (0 = auto-detect)." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );/*
sound/pci/korg1212/korg1212.c +1 -1
@@ -408,7 +408,7 @@ MODULE_FIRMWARE("korg/k1212.dsp");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Korg 1212 soundcard." );
sound/pci/lola/lola.c +1 -1
@@ -35,7 +35,7 @@/* Standard options */ static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram Lola driver." );
sound/pci/lx6464es/lx6464es.c +1 -1
@@ -42,7 +42,7 @@ MODULE_SUPPORTED_DEVICE("{digigram lx646static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram LX6464ES interface." );
sound/pci/maestro3.c +2 -2
@@ -64,8 +64,8 @@ MODULE_FIRMWARE("ess/maestro3_assp_minisstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* all enabled */ -static int external_amp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* all enabled */ +static bool external_amp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };static int amp_gpio[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };module_param_array (index, int,NULL ,0444 );
sound/pci/mixart/mixart.c +1 -1
@@ -49,7 +49,7 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," CAstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram " CARD_NAME " soundcard." );
sound/pci/nm256/nm256.c +6 -6
@@ -57,12 +57,12 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int playback_bufsize =16 ;static int capture_bufsize =16 ; -static int force_ac97;/* disabled as default */ +static bool force_ac97;/* disabled as default */ static int buffer_top;/* not specified */ -static int use_cache;/* disabled */ -static int vaio_hack;/* disabled */ -static int reset_workaround; -static int reset_workaround_2; +static bool use_cache;/* disabled */ +static bool vaio_hack;/* disabled */ +static bool reset_workaround; +static bool reset_workaround_2;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );
@@ -86,7 +86,7 @@ module_param(reset_workaround_2, bool, 0MODULE_PARM_DESC (reset_workaround_2,"Enable extended AC97 RESET workaround for some other laptops." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );
sound/pci/oxygen/oxygen.c +1 -1
@@ -74,7 +74,7 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI87static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"card index" );
sound/pci/oxygen/virtuoso.c +1 -1
@@ -32,7 +32,7 @@ MODULE_SUPPORTED_DEVICE("{{Asus,AV66},{Astatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"card index" );
sound/pci/pcxhr/pcxhr.c +2 -2
@@ -52,8 +52,8 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," DRstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int mono[SNDRV_CARDS ];/* capture mono only */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool mono[SNDRV_CARDS ];/* capture mono only */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram " DRIVER_NAME " soundcard" );
sound/pci/riptide/riptide.c +1 -1
@@ -122,7 +122,7 @@ MODULE_FIRMWARE("riptide.hex");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;#ifdef SUPPORT_JOYSTICK static int joystick_port[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] =0x200 };
sound/pci/rme32.c +2 -2
@@ -89,8 +89,8 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int fullduplex[SNDRV_CARDS ];// = {[0 ... (SNDRV_CARDS - 1)] = 1}; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool fullduplex[SNDRV_CARDS ];// = {[0 ... (SNDRV_CARDS - 1)] = 1}; module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Digi32 soundcard." );
sound/pci/rme96.c +1 -1
@@ -53,7 +53,7 @@ MODULE_SUPPORTED_DEVICE("{{RME,Digi96},"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Digi96 soundcard." );
sound/pci/rme9652/hdsp.c +1 -1
@@ -45,7 +45,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Hammerfall DSP interface." );
sound/pci/rme9652/hdspm.c +1 -1
@@ -61,7 +61,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME HDSPM interface." );
sound/pci/rme9652/rme9652.c +2 -2
@@ -38,8 +38,8 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int precise_ptr[SNDRV_CARDS ];/* Enable precise pointer */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool precise_ptr[SNDRV_CARDS ];/* Enable precise pointer */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Digi9652 (Hammerfall) soundcard." );
sound/pci/sis7019.c +1 -1
@@ -40,7 +40,7 @@ MODULE_SUPPORTED_DEVICE("{{SiS,SiS7019 Astatic int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -static int enable =1 ; +static bool enable =1 ;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for SiS7019 Audio Accelerator." );
sound/pci/sonicvibes.c +3 -3
@@ -52,9 +52,9 @@ MODULE_SUPPORTED_DEVICE("{{S3,SonicVibesstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int reverb[SNDRV_CARDS ]; -static int mge[SNDRV_CARDS ]; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool reverb[SNDRV_CARDS ]; +static bool mge[SNDRV_CARDS ];static unsigned int dmaio =0x7a00 ;/* DDMA i/o address */ module_param_array (index, int,NULL ,0444 );
sound/pci/trident/trident.c +1 -1
@@ -47,7 +47,7 @@ MODULE_SUPPORTED_DEVICE("{{Trident,4DWavstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int pcm_channels[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =32 };static int wavetable_size[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =8192 };
sound/pci/via82xx.c +2 -2
@@ -80,7 +80,7 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static long mpu_port;#ifdef SUPPORT_JOYSTICK -static int joystick; +static bool joystick;#endif static int ac97_clock =48000 ;static char *ac97_quirk;
@@ -110,7 +110,7 @@ module_param(nodelay, int, 0444);MODULE_PARM_DESC (nodelay,"Disable 500ms init delay" );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );
sound/pci/via82xx_modem.c +1 -1
@@ -66,7 +66,7 @@ module_param(ac97_clock, int, 0444);MODULE_PARM_DESC (ac97_clock,"AC'97 codec clock (default 48000Hz)." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );
sound/pci/vx222/vx222.c +2 -2
@@ -37,8 +37,8 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," CAstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int mic[SNDRV_CARDS ];/* microphone */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool mic[SNDRV_CARDS ];/* microphone */ static int ibl[SNDRV_CARDS ];/* microphone */ module_param_array (index, int,NULL ,0444 );
sound/pci/ymfpci/ymfpci.c +2 -2
@@ -41,13 +41,13 @@ MODULE_SUPPORTED_DEVICE("{{Yamaha,YMF724static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static long fm_port[SNDRV_CARDS ];static long mpu_port[SNDRV_CARDS ];#ifdef SUPPORT_JOYSTICK static long joystick_port[SNDRV_CARDS ];#endif -static int rear_switch[SNDRV_CARDS ]; +static bool rear_switch[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the Yamaha DS-1 PCI soundcard." );
sound/pcmcia/pdaudiocf/pdaudiocf.c +1 -1
@@ -39,7 +39,7 @@ MODULE_SUPPORTED_DEVICE("{{Sound Core,"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );
sound/pcmcia/vx/vxpocket.c +1 -1
@@ -39,7 +39,7 @@ MODULE_SUPPORTED_DEVICE("{{Digigram,VXPostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ static int ibl[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );
sound/ppc/powermac.c +1 -1
@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");static int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -static int enable_beep =1 ; +static bool enable_beep =1 ;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for " CHIP_NAME " soundchip." );
sound/sh/aica.c +1 -1
@@ -55,7 +55,7 @@ MODULE_FIRMWARE("aica_firmware.bin");#define CARD_NAME "AICA"static int index =-1 ;static char *id; -static int enable =1 ; +static bool enable =1 ;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );module_param (id, charp,0444 );
sound/sparc/amd7930.c +1 -1
@@ -50,7 +50,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Sun AMD7930 soundcard." );
sound/sparc/cs4231.c +1 -1
@@ -40,7 +40,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ /* Enable this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Sun CS4231 soundcard." );
sound/sparc/dbri.c +1 -1
@@ -80,7 +80,7 @@ MODULE_SUPPORTED_DEVICE("{{Sun,DBRI}}");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ /* Enable this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Sun DBRI soundcard." );
sound/usb/6fire/chip.c +1 -1
@@ -35,7 +35,7 @@ MODULE_SUPPORTED_DEVICE("{{TerraTec, DMXstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable card */ static struct sfire_chip *chips[SNDRV_CARDS ] =SNDRV_DEFAULT_PTR ;static struct usb_device *devices[SNDRV_CARDS ] =SNDRV_DEFAULT_PTR ;
sound/usb/caiaq/device.c +1 -1
@@ -55,7 +55,7 @@ MODULE_SUPPORTED_DEVICE("{{Native Instrustatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char * id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int snd_card_used[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );
sound/usb/card.c +3 -3
@@ -78,14 +78,14 @@ MODULE_SUPPORTED_DEVICE("{{Generic,USB Astatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ /* Vendor/product IDs for this card */ static int vid[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] =-1 };static int pid[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] =-1 };static int nrpacks =8 ;/* max. number of packets per urb */ -static int async_unlink =1 ; +static bool async_unlink =1 ;static int device_setup[SNDRV_CARDS ];/* device parameter for this card */ -static int ignore_ctl_error; +static bool ignore_ctl_error;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the USB audio adapter." );
sound/usb/misc/ua101.c +1 -1
@@ -52,7 +52,7 @@ MODULE_SUPPORTED_DEVICE("{{Edirol,UA-101static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static unsigned int queue_length =21 ;module_param_array (index, int,NULL ,0444 );
sound/usb/usx2y/us122l.c +1 -1
@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for this card */ /* Enable this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " NAME_ALLCAPS "." );
sound/usb/usx2y/usbusx2y.c +1 -1
@@ -154,7 +154,7 @@ MODULE_SUPPORTED_DEVICE("{{TASCAM(0x1604static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char * id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " NAME_ALLCAPS "." );
At Thu, 15 Dec 2011 13:49:36 +1030,
Quoted 5 lines · Rusty Russell
module_param(bool)used to counter-intuitively take an int. Infddd5201(mid-2009) we allowed bool or int/unsigned int using a messy trick.
Quoted 7 lines
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.
Cc Jaroslav Kysela <[email protected]>Cc Takashi Iwai <[email protected]>Signed-off-by Rusty Russell <[email protected]>
(Maybe it'd be good to change with true and false instead of 1 and 0,
too. But it's subtle things and we don't have to mix up in a single patch.)
Rusty, would you like to merge from your tree, or shall I merge through sound tree?
thanks,
Takashi
Quoted 1,694 lines
--- Documentation/DocBook/writing-an-alsa-driver.tmpl | 2 +- sound/core/oss/pcm_oss.c | 2 +- sound/core/seq/seq_dummy.c | 2 +- sound/drivers/aloop.c | 2 +- sound/drivers/dummy.c | 6 +++--- sound/drivers/ml403-ac97cr.c | 2 +- sound/drivers/mpu401/mpu401.c | 6 +++--- sound/drivers/mts64.c | 2 +- sound/drivers/opl3/opl3_midi.c | 2 +- sound/drivers/opl3/opl3_seq.c | 2 +- sound/drivers/pcsp/pcsp.c | 4 ++-- sound/drivers/pcsp/pcsp_lib.c | 2 +- sound/drivers/portman2x4.c | 2 +- sound/drivers/serial-u16550.c | 4 ++-- sound/drivers/virmidi.c | 2 +- sound/isa/ad1816a/ad1816a.c | 2 +- sound/isa/ad1848/ad1848.c | 4 ++-- sound/isa/adlib.c | 2 +- sound/isa/als100.c | 2 +- sound/isa/azt2320.c | 2 +- sound/isa/cmi8330.c | 4 ++-- sound/isa/cs423x/cs4231.c | 2 +- sound/isa/cs423x/cs4236.c | 4 ++-- sound/isa/es1688/es1688.c | 4 ++-- sound/isa/es18xx.c | 4 ++-- sound/isa/galaxy/galaxy.c | 2 +- sound/isa/gus/gusclassic.c | 2 +- sound/isa/gus/gusextreme.c | 2 +- sound/isa/gus/gusmax.c | 2 +- sound/isa/gus/interwave.c | 4 ++-- sound/isa/msnd/msnd_pinnacle.c | 2 +- sound/isa/opl3sa2.c | 4 ++-- sound/isa/opti9xx/miro.c | 2 +- sound/isa/opti9xx/opti92x-ad1848.c | 2 +- sound/isa/sb/jazz16.c | 2 +- sound/isa/sb/sb16.c | 4 ++-- sound/isa/sb/sb8.c | 2 +- sound/isa/sc6000.c | 2 +- sound/isa/wavefront/wavefront.c | 6 +++--- sound/oss/ad1848.c | 8 ++++---- sound/oss/msnd_pinnacle.c | 2 +- sound/oss/pas2_card.c | 12 ++++++------ sound/oss/pss.c | 10 +++++----- sound/oss/trix.c | 2 +- sound/pci/ac97/ac97_codec.c | 2 +- sound/pci/ad1889.c | 2 +- sound/pci/ali5451/ali5451.c | 4 ++-- sound/pci/als4000.c | 2 +- sound/pci/asihpi/asihpi.c | 4 ++-- sound/pci/atiixp.c | 4 ++-- sound/pci/atiixp_modem.c | 2 +- sound/pci/au88x0/au88x0.c | 2 +- sound/pci/aw2/aw2-alsa.c | 2 +- sound/pci/azt3328.c | 2 +- sound/pci/bt87x.c | 4 ++-- sound/pci/ca0106/ca0106_main.c | 2 +- sound/pci/cmipci.c | 4 ++-- sound/pci/cs4281.c | 4 ++-- sound/pci/cs46xx/cs46xx.c | 8 ++++---- sound/pci/cs5535audio/cs5535audio.c | 2 +- sound/pci/ctxfi/cttimer.c | 4 ++-- sound/pci/ctxfi/xfi.c | 2 +- sound/pci/echoaudio/echoaudio.c | 2 +- sound/pci/emu10k1/emu10k1.c | 4 ++-- sound/pci/emu10k1/emu10k1x.c | 2 +- sound/pci/ens1370.c | 4 ++-- sound/pci/es1938.c | 2 +- sound/pci/es1968.c | 4 ++-- sound/pci/fm801.c | 2 +- sound/pci/hda/hda_intel.c | 8 ++++---- sound/pci/ice1712/ice1712.c | 4 ++-- sound/pci/ice1712/ice1724.c | 2 +- sound/pci/intel8x0.c | 6 +++--- sound/pci/intel8x0m.c | 2 +- sound/pci/korg1212/korg1212.c | 2 +- sound/pci/lola/lola.c | 2 +- sound/pci/lx6464es/lx6464es.c | 2 +- sound/pci/maestro3.c | 4 ++-- sound/pci/mixart/mixart.c | 2 +- sound/pci/nm256/nm256.c | 12 ++++++------ sound/pci/oxygen/oxygen.c | 2 +- sound/pci/oxygen/virtuoso.c | 2 +- sound/pci/pcxhr/pcxhr.c | 4 ++-- sound/pci/riptide/riptide.c | 2 +- sound/pci/rme32.c | 4 ++-- sound/pci/rme96.c | 2 +- sound/pci/rme9652/hdsp.c | 2 +- sound/pci/rme9652/hdspm.c | 2 +- sound/pci/rme9652/rme9652.c | 4 ++-- sound/pci/sis7019.c | 2 +- sound/pci/sonicvibes.c | 6 +++--- sound/pci/trident/trident.c | 2 +- sound/pci/via82xx.c | 4 ++-- sound/pci/via82xx_modem.c | 2 +- sound/pci/vx222/vx222.c | 4 ++-- sound/pci/ymfpci/ymfpci.c | 4 ++-- sound/pcmcia/pdaudiocf/pdaudiocf.c | 2 +- sound/pcmcia/vx/vxpocket.c | 2 +- sound/ppc/powermac.c | 2 +- sound/sh/aica.c | 2 +- sound/sparc/amd7930.c | 2 +- sound/sparc/cs4231.c | 2 +- sound/sparc/dbri.c | 2 +- sound/usb/6fire/chip.c | 2 +- sound/usb/caiaq/device.c | 2 +- sound/usb/card.c | 6 +++--- sound/usb/misc/ua101.c | 2 +- sound/usb/usx2y/us122l.c | 2 +- sound/usb/usx2y/usbusx2y.c | 2 +- 109 files changed, 172 insertions(+), 172 deletions(-)Documentation/DocBook/writing-an-alsa-driver.tmpl +1
-1@@ -404,7 +404,7 @@ /* SNDRV_CARDS: maximum number of cards supported by this module */ static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* definition of the chip-specific record */ struct mychip {sound/core/oss/pcm_oss.c +1
-1@@ -47,7 +47,7 @@static int dsp_map[SNDRV_CARDS ];static int adsp_map[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; -static int nonblock_open =1 ; +static bool nonblock_open =1 ;MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>, Abramo Bagnara <[email protected]>" );MODULE_DESCRIPTION ("PCM OSS emulation for ALSA." );sound/core/seq/seq_dummy.c +1
-1@@ -65,7 +65,7 @@ MODULE_LICENSE("GPL");MODULE_ALIAS ("snd-seq-client-" __stringify(SNDRV_SEQ_CLIENT_DUMMY ));static int ports =1 ; -static int duplex; +static bool duplex;module_param (ports, int,0444 );MODULE_PARM_DESC (ports,"number of ports to be created" );sound/drivers/aloop.c +1
-1@@ -51,7 +51,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Loopbackstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 }; +static bool enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 };static int pcm_substreams[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =8 };static int pcm_notify[SNDRV_CARDS ];sound/drivers/dummy.c +3
-3@@ -60,15 +60,15 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Dummy sostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 }; +static bool enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 };static char *model[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =NULL };static int pcm_devs[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };static int pcm_substreams[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =8 };//static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; #ifdef CONFIG_HIGH_RES_TIMERS -static int hrtimer =1 ; +static bool hrtimer =1 ;#endif -static int fake_buffer =1 ; +static bool fake_buffer =1 ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for dummy soundcard." );sound/drivers/ml403-ac97cr.c +1
-1@@ -73,7 +73,7 @@ MODULE_SUPPORTED_DEVICE("{{Xilinx,ML403static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for ML403 AC97 Controller Reference." );sound/drivers/mpu401/mpu401.c +3
-3@@ -35,13 +35,13 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-2 };/* exclude the first card */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ #ifdef CONFIG_PNP -static int pnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool pnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* MPU-401 port number */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* MPU-401 IRQ */ -static int uart_enter[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool uart_enter[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for MPU-401 device." );sound/drivers/mts64.c +1
-1@@ -36,7 +36,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static struct platform_device *platform_devices[SNDRV_CARDS ];static int device_count;sound/drivers/opl3/opl3_midi.c +1
-1@@ -27,7 +27,7 @@extern char snd_opl3_regmap[MAX_OPL2_VOICES ][4 ]; -extern int use_internal_drums; +extern bool use_internal_drums;static void snd_opl3_note_off_unsafe (void *p,int note,int vel,struct snd_midi_channel *chan);sound/drivers/opl3/opl3_seq.c +1
-1@@ -32,7 +32,7 @@ MODULE_AUTHOR("Uros Bizjak <uros@kss-lokMODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("ALSA driver for OPL3 FM synth" ); -int use_internal_drums =0 ; +bool use_internal_drums =0 ;module_param (use_internal_drums, bool,0444 );MODULE_PARM_DESC (use_internal_drums,"Enable internal OPL2/3 drums." );sound/drivers/pcsp/pcsp.c +2
-2@@ -25,8 +25,8 @@ MODULE_ALIAS("platform:pcspkr");static int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -static int enable =SNDRV_DEFAULT_ENABLE1 ;/* Enable this card */ -static int nopcm;/* Disable PCM capability of the driver */ +static bool enable =SNDRV_DEFAULT_ENABLE1 ;/* Enable this card */ +static bool nopcm;/* Disable PCM capability of the driver */ module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for pcsp soundcard." );sound/drivers/pcsp/pcsp_lib.c +1
-1@@ -14,7 +14,7 @@#include <asm/io.h> #include "pcsp.h" -static int nforce_wa; +static bool nforce_wa;module_param (nforce_wa, bool,0444 );MODULE_PARM_DESC (nforce_wa,"Apply NForce chipset workaround " "(expect bad sound)" );sound/drivers/portman2x4.c +1
-1@@ -55,7 +55,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static struct platform_device *platform_devices[SNDRV_CARDS ];static int device_count;sound/drivers/serial-u16550.c +2
-2@@ -69,7 +69,7 @@ static char *adaptor_names[] = {static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x3f8,0x2f8,0x3e8,0x2e8 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 3,4,5,7,9,10,11,14,15 */ 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 ... (static int outs[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };/* 1 to 16 */ static int ins[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };/* 1 to 16 */ static int adaptor[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =SNDRV_SERIAL_SOUNDCANVAS }; -static int droponfull[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =SNDRV_SERIAL_NORMALBUFF }; +static bool droponfull[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =SNDRV_SERIAL_NORMALBUFF };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Serial MIDI." );sound/drivers/virmidi.c +1
-1@@ -63,7 +63,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Virtualstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 }; +static bool enable[SNDRV_CARDS ] = {1 , [1 ... (SNDRV_CARDS -1 )] =0 };static int midi_devs[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =4 };module_param_array (index, int,NULL ,0444 );sound/isa/ad1816a/ad1816a.c +1
-1@@ -44,7 +44,7 @@ MODULE_SUPPORTED_DEVICE("{{Highscreen,Sostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 1-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ sound/isa/ad1848/ad1848.c +2
-2@@ -43,11 +43,11 @@ MODULE_SUPPORTED_DEVICE("{{Analog Devicestatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,11,12,15 */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0,1,3,5,6,7 */ -static int thinkpad[SNDRV_CARDS ];/* Thinkpad special case */ +static bool thinkpad[SNDRV_CARDS ];/* Thinkpad special case */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CRD_NAME " soundcard." );sound/isa/adlib.c +1
-1@@ -18,7 +18,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;module_param_array (index, int,NULL ,0444 );sound/isa/als100.c +1
-1@@ -54,7 +54,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ sound/isa/azt2320.c +1
-1@@ -55,7 +55,7 @@ MODULE_SUPPORTED_DEVICE("{{Aztech Systemstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long wss_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ sound/isa/cmi8330.c +2
-2@@ -69,9 +69,9 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI83static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;#ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long sbport[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;static int sbirq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;sound/isa/cs423x/cs4231.c +1
-1@@ -41,7 +41,7 @@ MODULE_SUPPORTED_DEVICE("{{Crystal Semicstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,11,12,15 */ sound/isa/cs423x/cs4236.c +2
-2@@ -74,9 +74,9 @@ MODULE_ALIAS("snd_cs4232");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static long cport[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ sound/isa/es1688/es1688.c +2
-2@@ -51,9 +51,9 @@ MODULE_ALIAS("snd_es968");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ; +static bool isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;#endif -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ static long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* Usually 0x388 */ static long mpu_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };sound/isa/es18xx.c +2
-2@@ -1964,9 +1964,9 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1868 Pnstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ; +static bool isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260,0x280 */ #ifndef CONFIG_PNP sound/isa/galaxy/galaxy.c +1
-1@@ -35,7 +35,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CRD_NAME " soundcard." );sound/isa/gus/gusclassic.c +1
-1@@ -42,7 +42,7 @@ MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x230,0x240,0x250,0x260 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 3,5,9,11,12,15 */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 1,3,5,6,7 */ sound/isa/gus/gusextreme.c +1
-1@@ -46,7 +46,7 @@ MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ static long gf1_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS ) -1 ] =-1 };/* 0x210,0x220,0x230,0x240,0x250,0x260,0x270 */ static long mpu_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS ) -1 ] =-1 };/* 0x300,0x310,0x320 */ sound/isa/gus/gusmax.c +1
-1@@ -40,7 +40,7 @@ MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x230,0x240,0x250,0x260 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 2,3,5,9,11,12,15 */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 1,3,5,6,7 */ sound/isa/gus/interwave.c +2
-2@@ -55,9 +55,9 @@ MODULE_SUPPORTED_DEVICE("{{AMD,InterWavestatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x210,0x220,0x230,0x240,0x250,0x260 */ #ifdef SNDRV_STB sound/isa/msnd/msnd_pinnacle.c +1
-1@@ -785,7 +785,7 @@ static int write_ndelay[SNDRV_CARDS] = {static int calibrate_signal;#ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool isapnp[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (isapnp, bool,NULL ,0444 );MODULE_PARM_DESC (isapnp,"ISA PnP detection for specified soundcard." );#define has_isapnp (x) isapnp[x]sound/isa/opl3sa2.c +2
-2@@ -46,9 +46,9 @@ MODULE_SUPPORTED_DEVICE("{{Yamaha,YMF719static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0xf86,0x370,0x100 */ static long sb_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ sound/isa/opti9xx/miro.c +1
-1@@ -61,7 +61,7 @@ static int dma2 = SNDRV_DEFAULT_DMA1; /static int wss;static int ide;#ifdef CONFIG_PNP -static int isapnp =1 ;/* Enable ISA PnP detection */ +static bool isapnp =1 ;/* Enable ISA PnP detection */ #endif module_param (index, int,0444 );sound/isa/opti9xx/opti92x-ad1848.c +1
-1@@ -63,7 +63,7 @@ MODULE_SUPPORTED_DEVICE("{{OPTi,82C924 (static int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -//static int enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ +//static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */ #ifdef CONFIG_PNP static int isapnp =1 ;/* Enable ISA PnP detection */ #endif sound/isa/sb/jazz16.c +1
-1@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static unsigned long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;static unsigned long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;sound/isa/sb/sb16.c +2
-2@@ -68,9 +68,9 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labsstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_ISAPNP ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260,0x280 */ static long mpu_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x330,0x300 */ sound/isa/sb/sb8.c +1
-1@@ -36,7 +36,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labsstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220,0x240,0x260 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,10 */ static int dma8[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 1,3 */ sound/isa/sc6000.c +1
-1@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{Gallant, SC-6static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ static long port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x220, 0x240 */ static int irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5, 7, 9, 10, 11 */ static long mss_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* 0x530, 0xe80 */ sound/isa/wavefront/wavefront.c +3
-3@@ -38,9 +38,9 @@ MODULE_SUPPORTED_DEVICE("{{Turtle Beach,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ #ifdef CONFIG_PNP -static int isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool isapnp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };#endif static long cs4232_pcm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int cs4232_pcm_irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5,7,9,11,12,15 */ @@ -51,7 +51,7 @@ static int ics2115_irq[SNDRV_CARDS] = SNstatic long fm_port[SNDRV_CARDS ] =SNDRV_DEFAULT_PORT ;/* PnP setup */ static int dma1[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0,1,3,5,6,7 */ static int dma2[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0,1,3,5,6,7 */ -static int use_cs4232_midi[SNDRV_CARDS ]; +static bool use_cs4232_midi[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for WaveFront soundcard." );sound/oss/ad1848.c +4
-4@@ -119,9 +119,9 @@ ad1848_port_info;static struct address_info cfg;static int nr_ad1848_devs; -static int deskpro_xl; -static int deskpro_m; -static int soundpro; +static bool deskpro_xl; +static bool deskpro_m; +static bool soundpro;static volatile signed char irq2dev[17 ] = {-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,@@ -177,7 +177,7 @@ static struct {#ifdef CONFIG_PNP static int isapnp =1 ;static int isapnpjump; -static int reverse; +static bool reverse;static int audio_activated;#else sound/oss/msnd_pinnacle.c +1
-1@@ -1701,7 +1701,7 @@ static int joystick_io __initdata = CONF#ifndef CONFIG_MSNDPIN_DIGITAL # define CONFIG_MSNDPIN_DIGITAL 0#endif -static int digital__initdata =CONFIG_MSNDPIN_DIGITAL ; +static bool digital__initdata =CONFIG_MSNDPIN_DIGITAL ;#endif /* MSND_CLASSIC */ sound/oss/pas2_card.c +6
-6@@ -41,19 +41,19 @@ static int pas_irq;static int pas_sb_base;DEFINE_SPINLOCK (pas_lock);#ifndef CONFIG_PAS_JOYSTICK -static int joystick; +static bool joystick;#else -static int joystick =1 ; +static bool joystick =1 ;#endif #ifdef SYMPHONY_PAS -static int symphony =1 ; +static bool symphony =1 ;#else -static int symphony; +static bool symphony;#endif #ifdef BROKEN_BUS_CLOCK -static int broken_bus_clock =1 ; +static bool broken_bus_clock =1 ;#else -static int broken_bus_clock; +static bool broken_bus_clock;#endif static struct address_info cfg;sound/oss/pss.c +5
-5@@ -117,9 +117,9 @@/* If compiled into kernel, it enable or disable pss mixer */ #ifdef CONFIG_PSS_MIXER -static int pss_mixer =1 ; +static bool pss_mixer =1 ;#else -static int pss_mixer; +static bool pss_mixer;#endif @@ -147,7 +147,7 @@ static DEFINE_SPINLOCK(lock);static int pss_initialized;static int nonstandard_microcode;static int pss_cdrom_port =-1 ;/* Parameter for the PSS cdrom port */ -static int pss_enable_joystick;/* Parameter for enabling the joystick */ +static bool pss_enable_joystick;/* Parameter for enabling the joystick */ static coproc_operations pss_coproc_operations;static void pss_write (pss_confdata *devc,int data)@@ -1133,8 +1133,8 @@ static int mss_irq __initdata = -1;static int mss_dma__initdata =-1 ;static int mpu_io__initdata =-1 ;static int mpu_irq__initdata =-1 ; -static int pss_no_sound =0 ;/* Just configure non-sound components */ -static int pss_keep_settings =1 ;/* Keep hardware settings at module exit */ +static bool pss_no_sound =0 ;/* Just configure non-sound components */ +static bool pss_keep_settings =1 ;/* Keep hardware settings at module exit */ static char *pss_firmware ="/etc/sound/pss_synth" ;module_param (pss_io, int,0 );sound/oss/trix.c +1
-1@@ -31,7 +31,7 @@static int mpu; -static int joystick; +static bool joystick;static unsigned char trix_read (int addr) {sound/pci/ac97/ac97_codec.c +1
-1@@ -42,7 +42,7 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@peMODULE_DESCRIPTION ("Universal interface for Audio Codec '97" );MODULE_LICENSE ("GPL" ); -static int enable_loopback; +static bool enable_loopback;module_param (enable_loopback, bool,0444 );MODULE_PARM_DESC (enable_loopback,"Enable AC97 ADC/DAC Loopback Control" );sound/pci/ad1889.c +1
-1@@ -66,7 +66,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFmodule_param_array (id, charp,NULL ,0444 );MODULE_PARM_DESC (id,"ID string for the AD1889 soundcard." ); -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (enable, bool,NULL ,0444 );MODULE_PARM_DESC (enable,"Enable AD1889 soundcard." );sound/pci/ali5451/ali5451.c +2
-2@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{ALI,M5451,pcistatic int index =SNDRV_DEFAULT_IDX1 ;/* Index */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int pcm_channels =32 ; -static int spdif; +static bool spdif;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for ALI M5451 PCI Audio." );@@ -60,7 +60,7 @@ module_param(spdif, bool, 0444);MODULE_PARM_DESC (spdif,"Support SPDIF I/O" );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );sound/pci/als4000.c +1
-1@@ -90,7 +90,7 @@ MODULE_SUPPORTED_DEVICE("{{Avance Logic,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ #ifdef SUPPORT_JOYSTICK static int joystick_port[SNDRV_CARDS ];#endif sound/pci/asihpi/asihpi.c +2
-2@@ -63,8 +63,8 @@ MODULE_DESCRIPTION("AudioScience ALSA ASstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; -static int enable_hpi_hwdep =1 ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable_hpi_hwdep =1 ;module_param_array (index, int,NULL ,S_IRUGO );MODULE_PARM_DESC (index,"ALSA index value for AudioScience soundcard." );sound/pci/atiixp.c +2
-2@@ -43,7 +43,7 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int ac97_clock =48000 ;static char *ac97_quirk; -static int spdif_aclink =1 ; +static bool spdif_aclink =1 ;static int ac97_codec =-1 ;module_param (index, int,0444 );@@ -60,7 +60,7 @@ module_param(spdif_aclink, bool, 0444);MODULE_PARM_DESC (spdif_aclink,"S/PDIF over AC-link." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );sound/pci/atiixp_modem.c +1
-1@@ -51,7 +51,7 @@ module_param(ac97_clock, int, 0444);MODULE_PARM_DESC (ac97_clock,"AC'97 codec clock (default 48000Hz)." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );sound/pci/au88x0/au88x0.c +1
-1@@ -26,7 +26,7 @@// module parameters (see "Module Parameters") static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static int pcifix[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =255 };module_param_array (index, int,NULL ,0444 );sound/pci/aw2/aw2-alsa.c +1
-1@@ -153,7 +153,7 @@ static int snd_aw2_control_switch_captur********************************/ static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Audiowerk2 soundcard." );sound/pci/azt3328.c +1
-1@@ -301,7 +301,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFmodule_param_array (id, charp,NULL ,0444 );MODULE_PARM_DESC (id,"ID string for AZF3328 soundcard." ); -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (enable, bool,NULL ,0444 );MODULE_PARM_DESC (enable,"Enable AZF3328 soundcard." );sound/pci/bt87x.c +2
-2@@ -42,9 +42,9 @@ MODULE_SUPPORTED_DEVICE("{{Brooktree,Bt8static int index[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-2 };/* Exclude the first card */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int digital_rate[SNDRV_CARDS ];/* digital input rate */ -static int load_all;/* allow to load the non-whitelisted cards */ +static bool load_all;/* allow to load the non-whitelisted cards */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Bt87x soundcard" );sound/pci/ca0106/ca0106_main.c +1
-1@@ -156,7 +156,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative,SB C// module parameters (see "Module Parameters") static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static uint subsystem[SNDRV_CARDS ];/* Force card subsystem model */ module_param_array (index, int,NULL ,0444 );sound/pci/cmipci.c +2
-2@@ -54,10 +54,10 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI87static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ static long mpu_port[SNDRV_CARDS ];static long fm_port[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )]=1 }; -static int soft_ac3[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )]=1 }; +static bool soft_ac3[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )]=1 };#ifdef SUPPORT_JOYSTICK static int joystick_port[SNDRV_CARDS ];#endif sound/pci/cs4281.c +2
-2@@ -44,8 +44,8 @@ MODULE_SUPPORTED_DEVICE("{{Cirrus Logic,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ -static int dual_codec[SNDRV_CARDS ];/* dual codec */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool dual_codec[SNDRV_CARDS ];/* dual codec */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for CS4281 soundcard." );sound/pci/cs46xx/cs46xx.c +4
-4@@ -46,10 +46,10 @@ MODULE_SUPPORTED_DEVICE("{{Cirrus Logic,static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int external_amp[SNDRV_CARDS ]; -static int thinkpad[SNDRV_CARDS ]; -static int mmap_valid[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool external_amp[SNDRV_CARDS ]; +static bool thinkpad[SNDRV_CARDS ]; +static bool mmap_valid[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the CS46xx soundcard." );sound/pci/cs5535audio/cs5535audio.c +1
-1@@ -57,7 +57,7 @@ static struct ac97_quirk ac97_quirks[] _static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " DRIVER_NAME );sound/pci/ctxfi/cttimer.c +2
-2@@ -15,8 +15,8 @@#include "cthardware.h" #include "cttimer.h" -static int use_system_timer; -MODULE_PARM_DESC (use_system_timer,"Foce to use system-timer" ); +static bool use_system_timer; +MODULE_PARM_DESC (use_system_timer,"Force to use system-timer" );module_param (use_system_timer, bool,S_IRUGO );struct ct_timer_ops {sound/pci/ctxfi/xfi.c +1
-1@@ -32,7 +32,7 @@ module_param(multiple, uint, S_IRUGO);static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static unsigned int subsystem[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );sound/pci/echoaudio/echoaudio.c +1
-1@@ -26,7 +26,7 @@ MODULE_DEVICE_TABLE(pci, snd_echo_ids);static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " ECHOCARD_NAME " soundcard." );sound/pci/emu10k1/emu10k1.c +2
-2@@ -44,13 +44,13 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labsstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int extin[SNDRV_CARDS ];static int extout[SNDRV_CARDS ];static int seq_ports[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =4 };static int max_synth_voices[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =64 };static int max_buffer_size[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =128 }; -static int enable_ir[SNDRV_CARDS ]; +static bool enable_ir[SNDRV_CARDS ];static uint subsystem[SNDRV_CARDS ];/* Force card subsystem model */ static uint delay_pcm_irq[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };sound/pci/emu10k1/emu10k1x.c +1
-1@@ -50,7 +50,7 @@ MODULE_SUPPORTED_DEVICE("{{Dell Creative// module parameters (see "Module Parameters") static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the EMU10K1X soundcard." );sound/pci/ens1370.c +2
-2@@ -83,12 +83,12 @@ MODULE_SUPPORTED_DEVICE("{{Ensoniq,Audiostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ #ifdef SUPPORT_JOYSTICK #ifdef CHIP1371 static int joystick_port[SNDRV_CARDS ];#else -static int joystick[SNDRV_CARDS ]; +static bool joystick[SNDRV_CARDS ];#endif #endif #ifdef CHIP1371 sound/pci/es1938.c +1
-1@@ -79,7 +79,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1938},"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for ESS Solo-1 soundcard." );sound/pci/es1968.c +2
-2@@ -132,7 +132,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,Maestro 2static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 1-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int total_bufsize[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1024 };static int pcm_substreams_p[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =4 };static int pcm_substreams_c[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };@@ -140,7 +140,7 @@ static int clock[SNDRV_CARDS];static int use_pm[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };static int enable_mpu[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };#ifdef SUPPORT_JOYSTICK -static int joystick[SNDRV_CARDS ]; +static bool joystick[SNDRV_CARDS ];#endif module_param_array (index, int,NULL ,0444 );sound/pci/fm801.c +1
-1@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{ForteMedia,FMstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ /* * Enable TEA575x tuner * 1 = MediaForte 256-PCS sound/pci/hda/hda_intel.c +4
-4@@ -58,13 +58,13 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static char *model[SNDRV_CARDS ];static int position_fix[SNDRV_CARDS ];static int bdl_pos_adj[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };static int probe_mask[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };static int probe_only[SNDRV_CARDS ]; -static int single_cmd; +static bool single_cmd;static int enable_msi =-1 ;#ifdef CONFIG_SND_HDA_PATCH_LOADER static char *patch[SNDRV_CARDS ];@@ -116,12 +116,12 @@ MODULE_PARM_DESC(power_save, "Automatic* this may give more power-saving, but will take longer time to * wake up. */ -static int power_save_controller =1 ; +static bool power_save_controller =1 ;module_param (power_save_controller, bool,0644 );MODULE_PARM_DESC (power_save_controller,"Reset controller in power save mode." );#endif -static int align_buffer_size =1 ; +static bool align_buffer_size =1 ;module_param (align_buffer_size, bool,0644 );MODULE_PARM_DESC (align_buffer_size,"Force buffer and period sizes to be multiple of 128 bytes." );sound/pci/ice1712/ice1712.c +2
-2@@ -84,9 +84,9 @@ MODULE_SUPPORTED_DEVICE("{"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static char *model[SNDRV_CARDS ]; -static int omni[SNDRV_CARDS ];/* Delta44 & 66 Omni I/O support */ +static bool omni[SNDRV_CARDS ];/* Delta44 & 66 Omni I/O support */ static int cs8427_timeout[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =500 };/* CS8427 S/PDIF transceiver reset timeout value in msec */ static int dxr_enable[SNDRV_CARDS ];/* DXR enable for DMX6FIRE */ sound/pci/ice1712/ice1724.c +1
-1@@ -80,7 +80,7 @@ MODULE_SUPPORTED_DEVICE("{"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static char *model[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );sound/pci/intel8x0.c +3
-3@@ -79,9 +79,9 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int ac97_clock;static char *ac97_quirk; -static int buggy_semaphore; +static bool buggy_semaphore;static int buggy_irq =-1 ;/* auto-check */ -static int xbox; +static bool xbox;static int spdif_aclink =-1 ;static int inside_vm =-1 ;@@ -105,7 +105,7 @@ module_param(inside_vm, bint, 0444);MODULE_PARM_DESC (inside_vm,"KVM/Parallels optimization." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );static int joystick;module_param (joystick, int,0444 );sound/pci/intel8x0m.c +1
-1@@ -68,7 +68,7 @@ module_param(ac97_clock, int, 0444);MODULE_PARM_DESC (ac97_clock,"AC'97 codec clock (0 = auto-detect)." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );/* sound/pci/korg1212/korg1212.c +1
-1@@ -408,7 +408,7 @@ MODULE_FIRMWARE("korg/k1212.dsp");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Korg 1212 soundcard." );sound/pci/lola/lola.c +1
-1@@ -35,7 +35,7 @@/* Standard options */ static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram Lola driver." );sound/pci/lx6464es/lx6464es.c +1
-1@@ -42,7 +42,7 @@ MODULE_SUPPORTED_DEVICE("{digigram lx646static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram LX6464ES interface." );sound/pci/maestro3.c +2
-2@@ -64,8 +64,8 @@ MODULE_FIRMWARE("ess/maestro3_assp_minisstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* all enabled */ -static int external_amp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 }; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* all enabled */ +static bool external_amp[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =1 };static int amp_gpio[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =-1 };module_param_array (index, int,NULL ,0444 );sound/pci/mixart/mixart.c +1
-1@@ -49,7 +49,7 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," CAstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram " CARD_NAME " soundcard." );sound/pci/nm256/nm256.c +6
-6@@ -57,12 +57,12 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static int playback_bufsize =16 ;static int capture_bufsize =16 ; -static int force_ac97;/* disabled as default */ +static bool force_ac97;/* disabled as default */ static int buffer_top;/* not specified */ -static int use_cache;/* disabled */ -static int vaio_hack;/* disabled */ -static int reset_workaround; -static int reset_workaround_2; +static bool use_cache;/* disabled */ +static bool vaio_hack;/* disabled */ +static bool reset_workaround; +static bool reset_workaround_2;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );@@ -86,7 +86,7 @@ module_param(reset_workaround_2, bool, 0MODULE_PARM_DESC (reset_workaround_2,"Enable extended AC97 RESET workaround for some other laptops." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );sound/pci/oxygen/oxygen.c +1
-1@@ -74,7 +74,7 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI87static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"card index" );sound/pci/oxygen/virtuoso.c +1
-1@@ -32,7 +32,7 @@ MODULE_SUPPORTED_DEVICE("{{Asus,AV66},{Astatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"card index" );sound/pci/pcxhr/pcxhr.c +2
-2@@ -52,8 +52,8 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," DRstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int mono[SNDRV_CARDS ];/* capture mono only */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool mono[SNDRV_CARDS ];/* capture mono only */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Digigram " DRIVER_NAME " soundcard" );sound/pci/riptide/riptide.c +1
-1@@ -122,7 +122,7 @@ MODULE_FIRMWARE("riptide.hex");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE ;#ifdef SUPPORT_JOYSTICK static int joystick_port[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] =0x200 };sound/pci/rme32.c +2
-2@@ -89,8 +89,8 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int fullduplex[SNDRV_CARDS ];// = {[0 ... (SNDRV_CARDS - 1)] = 1}; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool fullduplex[SNDRV_CARDS ];// = {[0 ... (SNDRV_CARDS - 1)] = 1}; module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Digi32 soundcard." );sound/pci/rme96.c +1
-1@@ -53,7 +53,7 @@ MODULE_SUPPORTED_DEVICE("{{RME,Digi96},"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Digi96 soundcard." );sound/pci/rme9652/hdsp.c +1
-1@@ -45,7 +45,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Hammerfall DSP interface." );sound/pci/rme9652/hdspm.c +1
-1@@ -61,7 +61,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME HDSPM interface." );sound/pci/rme9652/rme9652.c +2
-2@@ -38,8 +38,8 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int precise_ptr[SNDRV_CARDS ];/* Enable precise pointer */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool precise_ptr[SNDRV_CARDS ];/* Enable precise pointer */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for RME Digi9652 (Hammerfall) soundcard." );sound/pci/sis7019.c +1
-1@@ -40,7 +40,7 @@ MODULE_SUPPORTED_DEVICE("{{SiS,SiS7019 Astatic int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -static int enable =1 ; +static bool enable =1 ;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for SiS7019 Audio Accelerator." );sound/pci/sonicvibes.c +3
-3@@ -52,9 +52,9 @@ MODULE_SUPPORTED_DEVICE("{{S3,SonicVibesstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int reverb[SNDRV_CARDS ]; -static int mge[SNDRV_CARDS ]; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool reverb[SNDRV_CARDS ]; +static bool mge[SNDRV_CARDS ];static unsigned int dmaio =0x7a00 ;/* DDMA i/o address */ module_param_array (index, int,NULL ,0444 );sound/pci/trident/trident.c +1
-1@@ -47,7 +47,7 @@ MODULE_SUPPORTED_DEVICE("{{Trident,4DWavstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int pcm_channels[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =32 };static int wavetable_size[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =8192 };sound/pci/via82xx.c +2
-2@@ -80,7 +80,7 @@ static int index = SNDRV_DEFAULT_IDX1; /static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ static long mpu_port;#ifdef SUPPORT_JOYSTICK -static int joystick; +static bool joystick;#endif static int ac97_clock =48000 ;static char *ac97_quirk;@@ -110,7 +110,7 @@ module_param(nodelay, int, 0444);MODULE_PARM_DESC (nodelay,"Disable 500ms init delay" );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );sound/pci/via82xx_modem.c +1
-1@@ -66,7 +66,7 @@ module_param(ac97_clock, int, 0444);MODULE_PARM_DESC (ac97_clock,"AC'97 codec clock (default 48000Hz)." );/* just for backward compatibility */ -static int enable; +static bool enable;module_param (enable, bool,0444 );sound/pci/vx222/vx222.c +2
-2@@ -37,8 +37,8 @@ MODULE_SUPPORTED_DEVICE("{{Digigram," CAstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ -static int mic[SNDRV_CARDS ];/* microphone */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool mic[SNDRV_CARDS ];/* microphone */ static int ibl[SNDRV_CARDS ];/* microphone */ module_param_array (index, int,NULL ,0444 );sound/pci/ymfpci/ymfpci.c +2
-2@@ -41,13 +41,13 @@ MODULE_SUPPORTED_DEVICE("{{Yamaha,YMF724static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static long fm_port[SNDRV_CARDS ];static long mpu_port[SNDRV_CARDS ];#ifdef SUPPORT_JOYSTICK static long joystick_port[SNDRV_CARDS ];#endif -static int rear_switch[SNDRV_CARDS ]; +static bool rear_switch[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the Yamaha DS-1 PCI soundcard." );sound/pcmcia/pdaudiocf/pdaudiocf.c +1
-1@@ -39,7 +39,7 @@ MODULE_SUPPORTED_DEVICE("{{Sound Core,"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );sound/pcmcia/vx/vxpocket.c +1
-1@@ -39,7 +39,7 @@ MODULE_SUPPORTED_DEVICE("{{Digigram,VXPostatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable switches */ static int ibl[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );sound/ppc/powermac.c +1
-1@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");static int index =SNDRV_DEFAULT_IDX1 ;/* Index 0-MAX */ static char *id =SNDRV_DEFAULT_STR1 ;/* ID for this card */ -static int enable_beep =1 ; +static bool enable_beep =1 ;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for " CHIP_NAME " soundchip." );sound/sh/aica.c +1
-1@@ -55,7 +55,7 @@ MODULE_FIRMWARE("aica_firmware.bin");#define CARD_NAME "AICA"static int index =-1 ;static char *id; -static int enable =1 ; +static bool enable =1 ;module_param (index, int,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );module_param (id, charp,0444 );sound/sparc/amd7930.c +1
-1@@ -50,7 +50,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Sun AMD7930 soundcard." );sound/sparc/cs4231.c +1
-1@@ -40,7 +40,7 @@static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ /* Enable this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Sun CS4231 soundcard." );sound/sparc/dbri.c +1
-1@@ -80,7 +80,7 @@ MODULE_SUPPORTED_DEVICE("{{Sun,DBRI}}");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ /* Enable this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for Sun DBRI soundcard." );sound/usb/6fire/chip.c +1
-1@@ -35,7 +35,7 @@ MODULE_SUPPORTED_DEVICE("{{TerraTec, DMXstatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable card */ static struct sfire_chip *chips[SNDRV_CARDS ] =SNDRV_DEFAULT_PTR ;static struct usb_device *devices[SNDRV_CARDS ] =SNDRV_DEFAULT_PTR ;sound/usb/caiaq/device.c +1
-1@@ -55,7 +55,7 @@ MODULE_SUPPORTED_DEVICE("{{Native Instrustatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char * id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ static int snd_card_used[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );sound/usb/card.c +3
-3@@ -78,14 +78,14 @@ MODULE_SUPPORTED_DEVICE("{{Generic,USB Astatic int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ /* Vendor/product IDs for this card */ static int vid[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] =-1 };static int pid[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] =-1 };static int nrpacks =8 ;/* max. number of packets per urb */ -static int async_unlink =1 ; +static bool async_unlink =1 ;static int device_setup[SNDRV_CARDS ];/* device parameter for this card */ -static int ignore_ctl_error; +static bool ignore_ctl_error;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the USB audio adapter." );sound/usb/misc/ua101.c +1
-1@@ -52,7 +52,7 @@ MODULE_SUPPORTED_DEVICE("{{Edirol,UA-101static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ; -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static unsigned int queue_length =21 ;module_param_array (index, int,NULL ,0444 );sound/usb/usx2y/us122l.c +1
-1@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL");static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for this card */ /* Enable this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ; +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " NAME_ALLCAPS "." );sound/usb/usx2y/usbusx2y.c +1
-1@@ -154,7 +154,7 @@ MODULE_SUPPORTED_DEVICE("{{TASCAM(0x1604static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-max */ static char * id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* Id for this card */ -static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ +static bool enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;/* Enable this card */ module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " NAME_ALLCAPS "." );
Quoted 15 lines · Takashi Iwai
At Thu, 15 Dec 2011 13:49:36 +1030,
Quoted 5 lines · Rusty Russell
module_param(bool)used to counter-intuitively take an int. Infddd5201(mid-2009) we allowed bool or int/unsigned int using a messy trick.Quoted 7 lines
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.
Cc Jaroslav Kysela <[email protected]>Cc Takashi Iwai <[email protected]>Signed-off-by Rusty Russell <[email protected]>
Quoted 8 lines
Acked-by Takashi Iwai <[email protected]>(Maybe it'd be good to change with true and false instead of 1 and 0,
too. But it's subtle things and we don't have to mix up in a single patch.)Rusty, would you like to merge from your tree, or shall I merge through sound tree?
Please take it :)
I'll take the bint one, since that's got other dependencies, but this one is pure cleanup.
Thanks!
Rusty.
At Mon, 19 Dec 2011 12:25:40 +1030,
Quoted 23 lines · Rusty Russell
Quoted 21 lines · Takashi Iwai
At Thu, 15 Dec 2011 13:49:36 +1030,
Quoted 5 lines · Rusty Russell
module_param(bool)used to counter-intuitively take an int. Infddd5201(mid-2009) we allowed bool or int/unsigned int using a messy trick.Quoted 7 lines
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.
Cc Jaroslav Kysela <[email protected]>Cc Takashi Iwai <[email protected]>Signed-off-by Rusty Russell <[email protected]>Acked-by Takashi Iwai <[email protected]>(Maybe it'd be good to change with true and false instead of 1 and 0,
too. But it's subtle things and we don't have to mix up in a single patch.)
Quoted 7 lines
Quoted 2 lines
Rusty, would you like to merge from your tree, or shall I merge through sound tree?
Please take it :)
I'll take the bint one, since that's got other dependencies, but this one is pure cleanup.
OK, I merged it now.
thanks,
Takashi