diff options
author | Andrew Morton <akpm@osdl.org> | 2005-01-07 22:21:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-01-07 22:21:50 -0800 |
commit | 7e6ff53744dd644570da3dbc404427f4b9f2dc90 (patch) | |
tree | 69e55d09d8686065ee8aa6bbe886a3f4a87caf16 /sound | |
parent | a8499f6dd16dac3787c4984d08fc7dc9288f0aee (diff) | |
download | history-7e6ff53744dd644570da3dbc404427f4b9f2dc90.tar.gz |
[PATCH] MODULE_PARM conversions
Rusty Russell <rusty@rustcorp.com.au>
MODULE_PARM conversions for x86 `allyesconfig'.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound')
33 files changed, 211 insertions, 211 deletions
diff --git a/sound/oss/aci.c b/sound/oss/aci.c index e686eaa4d1bab9..3928c2802cc43b 100644 --- a/sound/oss/aci.c +++ b/sound/oss/aci.c @@ -83,18 +83,18 @@ static struct semaphore aci_sem; #ifdef MODULE static int reset; -MODULE_PARM(reset,"i"); +module_param(reset, bool, 0); MODULE_PARM_DESC(reset,"When set to 1, reset aci mixer."); #else static int reset = 1; #endif static int ide=-1; -MODULE_PARM(ide,"i"); +module_param(ide, int, 0); MODULE_PARM_DESC(ide,"1 enable, 0 disable ide-port - untested" " default: do nothing"); static int wss=-1; -MODULE_PARM(wss,"i"); +module_param(wss, int, 0); MODULE_PARM_DESC(wss,"change between ACI/WSS-mixer; use 0 and 1 - untested" " default: do nothing; for PCM1-pro only"); diff --git a/sound/oss/ad1816.c b/sound/oss/ad1816.c index 442506444b4183..a309042f95ff3a 100644 --- a/sound/oss/ad1816.c +++ b/sound/oss/ad1816.c @@ -1215,16 +1215,16 @@ static int __initdata dma2 = -1; /* use isapnp for configuration */ static int isapnp = 1; static int isapnpjump; -MODULE_PARM(isapnp, "i"); -MODULE_PARM(isapnpjump, "i"); +module_param(isapnp, bool, 0); +module_param(isapnpjump, int, 0); #endif -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma2,"i"); -MODULE_PARM(ad1816_clockfreq,"i"); -MODULE_PARM(options,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma2, int, 0); +module_param(ad1816_clockfreq, int, 0); +module_param(options, int, 0); #ifdef __ISAPNP__ static struct { diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c index c78a5a11d5c1c0..c8fb3d012ceec1 100644 --- a/sound/oss/ad1848.c +++ b/sound/oss/ad1848.c @@ -2905,19 +2905,19 @@ static int __initdata dma = -1; static int __initdata dma2 = -1; static int __initdata type = 0; -MODULE_PARM(io, "i"); /* I/O for a raw AD1848 card */ -MODULE_PARM(irq, "i"); /* IRQ to use */ -MODULE_PARM(dma, "i"); /* First DMA channel */ -MODULE_PARM(dma2, "i"); /* Second DMA channel */ -MODULE_PARM(type, "i"); /* Card type */ -MODULE_PARM(deskpro_xl, "i"); /* Special magic for Deskpro XL boxen */ -MODULE_PARM(deskpro_m, "i"); /* Special magic for Deskpro M box */ -MODULE_PARM(soundpro, "i"); /* More special magic for SoundPro chips */ +module_param(io, int, 0); /* I/O for a raw AD1848 card */ +module_param(irq, int, 0); /* IRQ to use */ +module_param(dma, int, 0); /* First DMA channel */ +module_param(dma2, int, 0); /* Second DMA channel */ +module_param(type, int, 0); /* Card type */ +module_param(deskpro_xl, bool, 0); /* Special magic for Deskpro XL boxen */ +module_param(deskpro_m, bool, 0); /* Special magic for Deskpro M box */ +module_param(soundpro, bool, 0); /* More special magic for SoundPro chips */ #ifdef CONFIG_PNP -MODULE_PARM(isapnp, "i"); -MODULE_PARM(isapnpjump, "i"); -MODULE_PARM(reverse, "i"); +module_param(isapnp, int, 0); +module_param(isapnpjump, int, 0); +module_param(reverse, bool, 0); MODULE_PARM_DESC(isapnp, "When set to 0, Plug & Play support will be disabled"); MODULE_PARM_DESC(isapnpjump, "Jumps to a specific slot in the driver's PnP table. Use the source, Luke."); MODULE_PARM_DESC(reverse, "When set to 1, will reverse ISAPnP search order"); diff --git a/sound/oss/adlib_card.c b/sound/oss/adlib_card.c index 46e9deb63ae427..6414ceb8f0724c 100644 --- a/sound/oss/adlib_card.c +++ b/sound/oss/adlib_card.c @@ -31,7 +31,7 @@ static struct address_info cfg; static int __initdata io = -1; -MODULE_PARM(io, "i"); +module_param(io, int, 0); static int __init init_adlib(void) { diff --git a/sound/oss/aedsp16.c b/sound/oss/aedsp16.c index 109383a30f5a7a..65b0d724e28f39 100644 --- a/sound/oss/aedsp16.c +++ b/sound/oss/aedsp16.c @@ -1311,17 +1311,17 @@ static int __initdata mpu_irq = -1; static int __initdata mss_base = -1; static int __initdata mpu_base = -1; -MODULE_PARM(io, "i"); +module_param(io, int, 0); MODULE_PARM_DESC(io, "I/O base address (0x220 0x240)"); -MODULE_PARM(irq, "i"); +module_param(irq, int, 0); MODULE_PARM_DESC(irq, "IRQ line (5 7 9 10 11)"); -MODULE_PARM(dma, "i"); +module_param(dma, int, 0); MODULE_PARM_DESC(dma, "dma line (0 1 3)"); -MODULE_PARM(mpu_irq, "i"); +module_param(mpu_irq, int, 0); MODULE_PARM_DESC(mpu_irq, "MPU-401 IRQ line (5 7 9 10 0)"); -MODULE_PARM(mss_base, "i"); +module_param(mss_base, int, 0); MODULE_PARM_DESC(mss_base, "MSS emulation I/O base address (0x530 0xE80)"); -MODULE_PARM(mpu_base, "i"); +module_param(mpu_base, int, 0); MODULE_PARM_DESC(mpu_base,"MPU-401 I/O base address (0x300 0x310 0x320 0x330)"); MODULE_AUTHOR("Riccardo Facchetti <fizban@tin.it>"); MODULE_DESCRIPTION("Audio Excel DSP 16 Driver Version " VERSION); diff --git a/sound/oss/ali5455.c b/sound/oss/ali5455.c index a331e87112fcac..a48be23dabfc17 100644 --- a/sound/oss/ali5455.c +++ b/sound/oss/ali5455.c @@ -3651,12 +3651,13 @@ static int ali_pm_resume(struct pci_dev *dev) MODULE_AUTHOR(""); MODULE_DESCRIPTION("ALI 5455 audio support"); MODULE_LICENSE("GPL"); -MODULE_PARM(clocking, "i"); -MODULE_PARM(strict_clocking, "i"); -MODULE_PARM(codec_pcmout_share_spdif_locked, "i"); -MODULE_PARM(codec_independent_spdif_locked, "i"); -MODULE_PARM(controller_pcmout_share_spdif_locked, "i"); -MODULE_PARM(controller_independent_spdif_locked, "i"); +module_param(clocking, int, 0); +/* FIXME: bool? */ +module_param(strict_clocking, uint, 0); +module_param(codec_pcmout_share_spdif_locked, uint, 0); +module_param(codec_independent_spdif_locked, uint, 0); +module_param(controller_pcmout_share_spdif_locked, uint, 0); +module_param(controller_independent_spdif_locked, uint, 0); #define ALI5455_MODULE_NAME "ali5455" static struct pci_driver ali_pci_driver = { .name = ALI5455_MODULE_NAME, diff --git a/sound/oss/awe_wave.c b/sound/oss/awe_wave.c index c80d97c55df7ff..6e2163769789e4 100644 --- a/sound/oss/awe_wave.c +++ b/sound/oss/awe_wave.c @@ -219,11 +219,11 @@ MODULE_AUTHOR("Takashi Iwai <iwai@ww.uni-erlangen.de>"); MODULE_DESCRIPTION("SB AWE32/64 WaveTable driver"); MODULE_LICENSE("GPL"); -MODULE_PARM(io, "i"); +module_param(io, int, 0); MODULE_PARM_DESC(io, "base i/o port of Emu8000"); -MODULE_PARM(memsize, "i"); +module_param(memsize, int, 0); MODULE_PARM_DESC(memsize, "onboard DRAM size in Kbytes"); -MODULE_PARM(isapnp, "i"); +module_param(isapnp, bool, 0); MODULE_PARM_DESC(isapnp, "use ISAPnP detection"); /* DRAM start offset */ diff --git a/sound/oss/cmpci.c b/sound/oss/cmpci.c index 16ff7f094c2002..d45df779daa18c 100644 --- a/sound/oss/cmpci.c +++ b/sound/oss/cmpci.c @@ -479,17 +479,17 @@ static int use_line_as_bass = 0; static int use_mic_as_bass = 0; static int mic_boost = 0; static int hw_copy = 0; -MODULE_PARM(mpuio, "i"); -MODULE_PARM(fmio, "i"); -MODULE_PARM(joystick, "i"); -MODULE_PARM(spdif_inverse, "i"); -MODULE_PARM(spdif_loop, "i"); -MODULE_PARM(spdif_out, "i"); -MODULE_PARM(use_line_as_rear, "i"); -MODULE_PARM(use_line_as_bass, "i"); -MODULE_PARM(use_mic_as_bass, "i"); -MODULE_PARM(mic_boost, "i"); -MODULE_PARM(hw_copy, "i"); +module_param(mpuio, int, 0); +module_param(fmio, int, 0); +module_param(joystick, bool, 0); +module_param(spdif_inverse, bool, 0); +module_param(spdif_loop, bool, 0); +module_param(spdif_out, bool, 0); +module_param(use_line_as_rear, bool, 0); +module_param(use_line_as_bass, bool, 0); +module_param(use_mic_as_bass, bool, 0); +module_param(mic_boost, bool, 0); +module_param(hw_copy, bool, 0); MODULE_PARM_DESC(mpuio, "(0x330, 0x320, 0x310, 0x300) Base of MPU-401, 0 to disable"); MODULE_PARM_DESC(fmio, "(0x388, 0x3C8, 0x3E0) Base of OPL3, 0 to disable"); MODULE_PARM_DESC(joystick, "(1/0) Enable joystick interface, still need joystick driver"); diff --git a/sound/oss/cs4232.c b/sound/oss/cs4232.c index 1d0f6edc21ae1c..dd747ff388a865 100644 --- a/sound/oss/cs4232.c +++ b/sound/oss/cs4232.c @@ -363,25 +363,25 @@ MODULE_DESCRIPTION("CS4232 based soundcard driver"); MODULE_AUTHOR("Hannu Savolainen, Paul Barton-Davis"); MODULE_LICENSE("GPL"); -MODULE_PARM(io,"i"); +module_param(io, int, 0); MODULE_PARM_DESC(io,"base I/O port for AD1848"); -MODULE_PARM(irq,"i"); +module_param(irq, int, 0); MODULE_PARM_DESC(irq,"IRQ for AD1848 chip"); -MODULE_PARM(dma,"i"); +module_param(dma, int, 0); MODULE_PARM_DESC(dma,"8 bit DMA for AD1848 chip"); -MODULE_PARM(dma2,"i"); +module_param(dma2, int, 0); MODULE_PARM_DESC(dma2,"16 bit DMA for AD1848 chip"); -MODULE_PARM(mpuio,"i"); +module_param(mpuio, int, 0); MODULE_PARM_DESC(mpuio,"MPU 401 base address"); -MODULE_PARM(mpuirq,"i"); +module_param(mpuirq, int, 0); MODULE_PARM_DESC(mpuirq,"MPU 401 IRQ"); -MODULE_PARM(synthio,"i"); +module_param(synthio, int, 0); MODULE_PARM_DESC(synthio,"Maui WaveTable base I/O port"); -MODULE_PARM(synthirq,"i"); +module_param(synthirq, int, 0); MODULE_PARM_DESC(synthirq,"Maui WaveTable IRQ"); -MODULE_PARM(isapnp,"i"); +module_param(isapnp, bool, 0); MODULE_PARM_DESC(isapnp,"Enable ISAPnP probing (default 1)"); -MODULE_PARM(bss,"i"); +module_param(bss, bool, 0); MODULE_PARM_DESC(bss,"Enable Bose Sound System Support (default 0)"); /* diff --git a/sound/oss/cs4281/cs4281m.c b/sound/oss/cs4281/cs4281m.c index 947e5f9ee15cd2..aabec74565696a 100644 --- a/sound/oss/cs4281/cs4281m.c +++ b/sound/oss/cs4281/cs4281m.c @@ -111,7 +111,7 @@ static void start_adc(struct cs4281_state *s); // rather than 64k as some of the games work more responsively. // log base 2( buff sz = 32k). static unsigned long defaultorder = 3; -MODULE_PARM(defaultorder, "i"); +module_param(defaultorder, ulong, 0); // // Turn on/off debugging compilation by commenting out "#define CSDEBUG" @@ -159,8 +159,8 @@ MODULE_PARM(defaultorder, "i"); #if CSDEBUG static unsigned long cs_debuglevel = 1; // levels range from 1-9 static unsigned long cs_debugmask = CS_INIT | CS_ERROR; // use CS_DBGOUT with various mask values -MODULE_PARM(cs_debuglevel, "i"); -MODULE_PARM(cs_debugmask, "i"); +module_param(cs_debuglevel, ulong, 0); +module_param(cs_debugmask, ulong, 0); #endif #define CS_TRUE 1 #define CS_FALSE 0 diff --git a/sound/oss/cs46xx.c b/sound/oss/cs46xx.c index a4141e3c02b01c..f02f722de66147 100644 --- a/sound/oss/cs46xx.c +++ b/sound/oss/cs46xx.c @@ -175,24 +175,24 @@ #if CSDEBUG static unsigned long cs_debuglevel=1; /* levels range from 1-9 */ -MODULE_PARM(cs_debuglevel, "i"); +module_param(cs_debuglevel, ulong, 0644); static unsigned long cs_debugmask=CS_INIT | CS_ERROR; /* use CS_DBGOUT with various mask values */ -MODULE_PARM(cs_debugmask, "i"); +module_param(cs_debugmask, ulong, 0644); #endif static unsigned long hercules_egpio_disable; /* if non-zero set all EGPIO to 0 */ -MODULE_PARM(hercules_egpio_disable, "i"); +module_param(hercules_egpio_disable, ulong, 0); static unsigned long initdelay=700; /* PM delay in millisecs */ -MODULE_PARM(initdelay, "i"); +module_param(initdelay, ulong, 0); static unsigned long powerdown=-1; /* turn on/off powerdown processing in driver */ -MODULE_PARM(powerdown, "i"); +module_param(powerdown, ulong, 0); #define DMABUF_DEFAULTORDER 3 static unsigned long defaultorder=DMABUF_DEFAULTORDER; -MODULE_PARM(defaultorder, "i"); +module_param(defaultorder, ulong, 0); static int external_amp; -MODULE_PARM(external_amp, "i"); +module_param(external_amp, bool, 0); static int thinkpad; -MODULE_PARM(thinkpad, "i"); +module_param(thinkpad, bool, 0); /* * set the powerdown module parm to 0 to disable all diff --git a/sound/oss/es1370.c b/sound/oss/es1370.c index df8f0e334ffcec..52cc8bf5abf56e 100644 --- a/sound/oss/es1370.c +++ b/sound/oss/es1370.c @@ -2525,9 +2525,9 @@ static int micbias[NR_DEVICE]; static unsigned int devindex; -MODULE_PARM(lineout, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param_array(lineout, bool, NULL, 0); MODULE_PARM_DESC(lineout, "if 1 the LINE input is converted to LINE out"); -MODULE_PARM(micbias, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param_array(micbias, bool, NULL, 0); MODULE_PARM_DESC(micbias, "sets the +5V bias for an electret microphone"); MODULE_AUTHOR("Thomas M. Sailer, sailer@ife.ee.ethz.ch, hb9jnx@hb9w.che.eu"); diff --git a/sound/oss/es1371.c b/sound/oss/es1371.c index b6d943e7b0b89e..0fc6334d4f637a 100644 --- a/sound/oss/es1371.c +++ b/sound/oss/es1371.c @@ -2741,11 +2741,11 @@ static int amplifier[NR_DEVICE]; static unsigned int devindex; -MODULE_PARM(spdif, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param_array(spdif, bool, NULL, 0); MODULE_PARM_DESC(spdif, "if 1 the output is in S/PDIF digital mode"); -MODULE_PARM(nomix, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param_array(nomix, bool, NULL, 0); MODULE_PARM_DESC(nomix, "if 1 no analog audio is mixed to the digital output"); -MODULE_PARM(amplifier, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param_array(amplifier, bool, NULL, 0); MODULE_PARM_DESC(amplifier, "Set to 1 if the machine needs the amp control enabling (many laptops)"); MODULE_AUTHOR("Thomas M. Sailer, sailer@ife.ee.ethz.ch, hb9jnx@hb9w.che.eu"); diff --git a/sound/oss/gus_card.c b/sound/oss/gus_card.c index e0111a7b6b4c92..dbb29771e2bb68 100644 --- a/sound/oss/gus_card.c +++ b/sound/oss/gus_card.c @@ -218,17 +218,17 @@ static int __initdata dma = -1; static int __initdata dma16 = -1; /* Set this for modules that need it */ static int __initdata type = 0; /* 1 for PnP */ -MODULE_PARM(io, "i"); -MODULE_PARM(irq, "i"); -MODULE_PARM(dma, "i"); -MODULE_PARM(dma16, "i"); -MODULE_PARM(type, "i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma16, int, 0); +module_param(type, int, 0); #ifdef CONFIG_SOUND_GUSMAX -MODULE_PARM(no_wave_dma, "i"); +module_param(no_wave_dma, int, 0); #endif #ifdef CONFIG_SOUND_GUS16 -MODULE_PARM(db16, "i"); -MODULE_PARM(gus16, "i"); +module_param(db16, int, 0); +module_param(gus16, int, 0); #endif MODULE_LICENSE("GPL"); diff --git a/sound/oss/mad16.c b/sound/oss/mad16.c index 4c5db81ed3c14e..40f6b1e27407c3 100644 --- a/sound/oss/mad16.c +++ b/sound/oss/mad16.c @@ -874,19 +874,19 @@ static int __initdata cddma = -1; static int __initdata opl4 = 0; static int __initdata joystick = 0; -MODULE_PARM(mpu_io, "i"); -MODULE_PARM(mpu_irq, "i"); -MODULE_PARM(io,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma16,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(cdtype,"i"); -MODULE_PARM(cdirq,"i"); -MODULE_PARM(cdport,"i"); -MODULE_PARM(cddma,"i"); -MODULE_PARM(opl4,"i"); -MODULE_PARM(joystick,"i"); -MODULE_PARM(debug,"i"); +module_param(mpu_io, int, 0); +module_param(mpu_irq, int, 0); +module_param(io, int, 0); +module_param(dma, int, 0); +module_param(dma16, int, 0); +module_param(irq, int, 0); +module_param(cdtype, int, 0); +module_param(cdirq, int, 0); +module_param(cdport, int, 0); +module_param(cddma, int, 0); +module_param(opl4, int, 0); +module_param(joystick, bool, 0); +module_param(debug, bool, 0644); static int __initdata dma_map[2][8] = { diff --git a/sound/oss/maestro.c b/sound/oss/maestro.c index 84fe23d8270cc2..19ceab613a6a21 100644 --- a/sound/oss/maestro.c +++ b/sound/oss/maestro.c @@ -262,11 +262,11 @@ MODULE_DESCRIPTION("ESS Maestro Driver"); MODULE_LICENSE("GPL"); #ifdef M_DEBUG -MODULE_PARM(debug,"i"); +module_param(debug, bool, 0644); #endif -MODULE_PARM(dsps_order,"i"); -MODULE_PARM(use_pm,"i"); -MODULE_PARM(clocking, "i"); +module_param(dsps_order, int, 0); +module_param(use_pm, int, 0); +module_param(clocking, int, 0); /* --------------------------------------------------------------------- */ #define DRIVER_VERSION "0.15" diff --git a/sound/oss/maestro3.c b/sound/oss/maestro3.c index d2573bb0b4d1fd..6d89d7d81cebc1 100644 --- a/sound/oss/maestro3.c +++ b/sound/oss/maestro3.c @@ -2919,10 +2919,10 @@ MODULE_DESCRIPTION("ESS Maestro3/Allegro Driver"); MODULE_LICENSE("GPL"); #ifdef M_DEBUG -MODULE_PARM(debug,"i"); +module_param(debug, int, 0); #endif -MODULE_PARM(external_amp,"i"); -MODULE_PARM(gpio_pin, "i"); +module_param(external_amp, int, 0); +module_param(gpio_pin, int, 0); static struct pci_driver m3_pci_driver = { .name = "ess_m3_audio", diff --git a/sound/oss/maui.c b/sound/oss/maui.c index 0c0d53e877d909..05cf194eda6b11 100644 --- a/sound/oss/maui.c +++ b/sound/oss/maui.c @@ -420,8 +420,8 @@ static struct address_info cfg; static int __initdata io = -1; static int __initdata irq = -1; -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); /* * Install a Maui card. Needs mpu401 loaded already. diff --git a/sound/oss/mpu401.c b/sound/oss/mpu401.c index 73c3ce32a69def..b66f53fa8db03c 100644 --- a/sound/oss/mpu401.c +++ b/sound/oss/mpu401.c @@ -1770,8 +1770,8 @@ static struct address_info cfg; static int io = -1; static int irq = -1; -MODULE_PARM(irq, "i"); -MODULE_PARM(io, "i"); +module_param(irq, int, 0); +module_param(io, int, 0); static int __init init_mpu401(void) { diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c index 9f18b40374267c..6ba03f89fc4364 100644 --- a/sound/oss/msnd_pinnacle.c +++ b/sound/oss/msnd_pinnacle.c @@ -1603,24 +1603,6 @@ MODULE_AUTHOR ("Andrew Veliath <andrewtv@usa.net>"); MODULE_DESCRIPTION ("Turtle Beach " LONGNAME " Linux Driver"); MODULE_LICENSE("GPL"); -MODULE_PARM (io, "i"); -MODULE_PARM (irq, "i"); -MODULE_PARM (mem, "i"); -MODULE_PARM (write_ndelay, "i"); -MODULE_PARM (fifosize, "i"); -MODULE_PARM (calibrate_signal, "i"); -#ifndef MSND_CLASSIC -MODULE_PARM (digital, "i"); -MODULE_PARM (cfg, "i"); -MODULE_PARM (reset, "i"); -MODULE_PARM (mpu_io, "i"); -MODULE_PARM (mpu_irq, "i"); -MODULE_PARM (ide_io0, "i"); -MODULE_PARM (ide_io1, "i"); -MODULE_PARM (ide_irq, "i"); -MODULE_PARM (joystick_io, "i"); -#endif - static int io __initdata = -1; static int irq __initdata = -1; static int mem __initdata = -1; @@ -1726,6 +1708,23 @@ static int calibrate_signal __initdata = CONFIG_MSND_CALSIGNAL; #endif /* MODULE */ +module_param (io, int, 0); +module_param (irq, int, 0); +module_param (mem, int, 0); +module_param (write_ndelay, int, 0); +module_param (fifosize, int, 0); +module_param (calibrate_signal, int, 0); +#ifndef MSND_CLASSIC +module_param (digital, bool, 0); +module_param (cfg, int, 0); +module_param (reset, int, 0); +module_param (mpu_io, int, 0); +module_param (mpu_irq, int, 0); +module_param (ide_io0, int, 0); +module_param (ide_io1, int, 0); +module_param (ide_irq, int, 0); +module_param (joystick_io, int, 0); +#endif static int __init msnd_init(void) { diff --git a/sound/oss/nm256_audio.c b/sound/oss/nm256_audio.c index 228ce6a00bc825..a95118e3c5308c 100644 --- a/sound/oss/nm256_audio.c +++ b/sound/oss/nm256_audio.c @@ -1680,10 +1680,10 @@ struct pci_driver nm256_pci_driver = { .remove = nm256_remove, }; -MODULE_PARM (usecache, "i"); -MODULE_PARM (buffertop, "i"); -MODULE_PARM (nm256_debug, "i"); -MODULE_PARM (force_load, "i"); +module_param(usecache, bool, 0); +module_param(buffertop, int, 0); +module_param(nm256_debug, bool, 0644); +module_param(force_load, bool, 0); static int __init do_init_nm256(void) { diff --git a/sound/oss/opl3.c b/sound/oss/opl3.c index 9789c5ab29cd1a..a31734b7842fc9 100644 --- a/sound/oss/opl3.c +++ b/sound/oss/opl3.c @@ -1202,7 +1202,7 @@ static int me; static int io = -1; -MODULE_PARM(io, "i"); +module_param(io, int, 0); static int __init init_opl3 (void) { diff --git a/sound/oss/opl3sa.c b/sound/oss/opl3sa.c index 99f4ed66fd9f6d..b830aa6afdda25 100644 --- a/sound/oss/opl3sa.c +++ b/sound/oss/opl3sa.c @@ -245,12 +245,12 @@ static int __initdata dma2 = -1; static int __initdata mpu_io = -1; static int __initdata mpu_irq = -1; -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma2,"i"); -MODULE_PARM(mpu_io,"i"); -MODULE_PARM(mpu_irq,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma2, int, 0); +module_param(mpu_io, int, 0); +module_param(mpu_irq, int, 0); static int __init init_opl3sa(void) { diff --git a/sound/oss/opl3sa2.c b/sound/oss/opl3sa2.c index 7d7a981734fc20..4ced2b25036fae 100644 --- a/sound/oss/opl3sa2.c +++ b/sound/oss/opl3sa2.c @@ -192,35 +192,35 @@ MODULE_AUTHOR("Scott Murray <scott@spiteful.org>"); MODULE_LICENSE("GPL"); -MODULE_PARM(io, "i"); +module_param(io, int, 0); MODULE_PARM_DESC(io, "Set I/O base of OPL3-SA2 or SA3 card (usually 0x370. Address must be even and must be from 0x100 to 0xFFE)"); -MODULE_PARM(mss_io, "i"); +module_param(mss_io, int, 0); MODULE_PARM_DESC(mss_io, "Set MSS (audio) I/O base (0x530, 0xE80, or other. Address must end in 0 or 4 and must be from 0x530 to 0xF48)"); -MODULE_PARM(mpu_io, "i"); +module_param(mpu_io, int, 0); MODULE_PARM_DESC(mpu_io, "Set MIDI I/O base (0x330 or other. Address must be even and must be from 0x300 to 0x334)"); -MODULE_PARM(irq, "i"); +module_param(irq, int, 0); MODULE_PARM_DESC(mss_irq, "Set MSS (audio) IRQ (5, 7, 9, 10, 11, 12)"); -MODULE_PARM(dma, "i"); +module_param(dma, int, 0); MODULE_PARM_DESC(dma, "Set MSS (audio) first DMA channel (0, 1, 3)"); -MODULE_PARM(dma2, "i"); +module_param(dma2, int, 0); MODULE_PARM_DESC(dma2, "Set MSS (audio) second DMA channel (0, 1, 3)"); -MODULE_PARM(ymode, "i"); +module_param(ymode, int, 0); MODULE_PARM_DESC(ymode, "Set Yamaha 3D enhancement mode (0 = Desktop/Normal, 1 = Notebook PC (1), 2 = Notebook PC (2), 3 = Hi-Fi)"); -MODULE_PARM(loopback, "i"); +module_param(loopback, int, 0); MODULE_PARM_DESC(loopback, "Set A/D input source. Useful for echo cancellation (0 = Mic Rch (default), 1 = Mono output loopback)"); #ifdef CONFIG_PNP -MODULE_PARM(isapnp, "i"); +module_param(isapnp, bool, 0); MODULE_PARM_DESC(isapnp, "When set to 0, ISA PnP support will be disabled"); -MODULE_PARM(multiple, "i"); +module_param(multiple, bool, 0); MODULE_PARM_DESC(multiple, "When set to 0, will not search for multiple cards"); #endif diff --git a/sound/oss/pas2_card.c b/sound/oss/pas2_card.c index 4aa0bc66569ce8..9960090fb83c0b 100644 --- a/sound/oss/pas2_card.c +++ b/sound/oss/pas2_card.c @@ -393,19 +393,19 @@ static int __initdata sb_irq = -1; static int __initdata sb_dma = -1; static int __initdata sb_dma16 = -1; -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma16,"i"); - -MODULE_PARM(sb_io,"i"); -MODULE_PARM(sb_irq,"i"); -MODULE_PARM(sb_dma,"i"); -MODULE_PARM(sb_dma16,"i"); - -MODULE_PARM(joystick,"i"); -MODULE_PARM(symphony,"i"); -MODULE_PARM(broken_bus_clock,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma16, int, 0); + +module_param(sb_io, int, 0); +module_param(sb_irq, int, 0); +module_param(sb_dma, int, 0); +module_param(sb_dma16, int, 0); + +module_param(joystick, bool, 0); +module_param(symphony, bool, 0); +module_param(broken_bus_clock, bool, 0); MODULE_LICENSE("GPL"); diff --git a/sound/oss/pss.c b/sound/oss/pss.c index af3f96ad02ca81..bf1dcaac4e9533 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c @@ -118,9 +118,9 @@ /* If compiled into kernel, it enable or disable pss mixer */ #ifdef CONFIG_PSS_MIXER -static unsigned char pss_mixer = 1; +static int pss_mixer = 1; #else -static unsigned char pss_mixer; +static int pss_mixer; #endif @@ -1153,29 +1153,29 @@ static int pss_no_sound __initdata = 0; /* Just configure non-sound components * static int pss_keep_settings = 1; /* Keep hardware settings at module exit */ static char *pss_firmware = "/etc/sound/pss_synth"; -MODULE_PARM(pss_io, "i"); +module_param(pss_io, int, 0); MODULE_PARM_DESC(pss_io, "Set i/o base of PSS card (probably 0x220 or 0x240)"); -MODULE_PARM(mss_io, "i"); +module_param(mss_io, int, 0); MODULE_PARM_DESC(mss_io, "Set WSS (audio) i/o base (0x530, 0x604, 0xE80, 0xF40, or other. Address must end in 0 or 4 and must be from 0x100 to 0xFF4)"); -MODULE_PARM(mss_irq, "i"); +module_param(mss_irq, int, 0); MODULE_PARM_DESC(mss_irq, "Set WSS (audio) IRQ (3, 5, 7, 9, 10, 11, 12)"); -MODULE_PARM(mss_dma, "i"); +module_param(mss_dma, int, 0); MODULE_PARM_DESC(mss_dma, "Set WSS (audio) DMA (0, 1, 3)"); -MODULE_PARM(mpu_io, "i"); +module_param(mpu_io, int, 0); MODULE_PARM_DESC(mpu_io, "Set MIDI i/o base (0x330 or other. Address must be on 4 location boundaries and must be from 0x100 to 0xFFC)"); -MODULE_PARM(mpu_irq, "i"); +module_param(mpu_irq, int, 0); MODULE_PARM_DESC(mpu_irq, "Set MIDI IRQ (3, 5, 7, 9, 10, 11, 12)"); -MODULE_PARM(pss_cdrom_port, "i"); +module_param(pss_cdrom_port, int, 0); MODULE_PARM_DESC(pss_cdrom_port, "Set the PSS CDROM port i/o base (0x340 or other)"); -MODULE_PARM(pss_enable_joystick, "i"); +module_param(pss_enable_joystick, bool, 0); MODULE_PARM_DESC(pss_enable_joystick, "Enables the PSS joystick port (1 to enable, 0 to disable)"); -MODULE_PARM(pss_no_sound, "i"); +module_param(pss_no_sound, bool, 0); MODULE_PARM_DESC(pss_no_sound, "Configure sound compoents (0 - no, 1 - yes)"); -MODULE_PARM(pss_keep_settings, "i"); +module_param(pss_keep_settings, bool, 0); MODULE_PARM_DESC(pss_keep_settings, "Keep hardware setting at driver unloading (0 - no, 1 - yes)"); -MODULE_PARM(pss_firmware, "s"); +module_param(pss_firmware, charp, 0); MODULE_PARM_DESC(pss_firmware, "Location of the firmware file (default - /etc/sound/pss_synth)"); -MODULE_PARM(pss_mixer, "b"); +module_param(pss_mixer, bool, 0); MODULE_PARM_DESC(pss_mixer, "Enable (1) or disable (0) PSS mixer (controlling of output volume, bass, treble, synth volume). The mixer is not available on all PSS cards."); MODULE_AUTHOR("Hannu Savolainen, Vladimir Michl"); MODULE_DESCRIPTION("Module for PSS sound cards (based on AD1848, ADSP-2115 and ESC614). This module includes control of output amplifier and synth volume of the Beethoven ADSP-16 card (this may work with other PSS cards)."); diff --git a/sound/oss/rme96xx.c b/sound/oss/rme96xx.c index 96cc75acffffa2..c8c88dbd15d909 100644 --- a/sound/oss/rme96xx.c +++ b/sound/oss/rme96xx.c @@ -68,7 +68,7 @@ TODO: #define NR_DEVICE 2 static int devices = 1; -MODULE_PARM(devices, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param(devices, int, 0); MODULE_PARM_DESC(devices, "number of dsp devices allocated by the driver"); diff --git a/sound/oss/sgalaxy.c b/sound/oss/sgalaxy.c index 16cc9ab505b538..3f32d4674371b4 100644 --- a/sound/oss/sgalaxy.c +++ b/sound/oss/sgalaxy.c @@ -153,11 +153,11 @@ static int __initdata dma = -1; static int __initdata dma2 = -1; static int __initdata sgbase = -1; -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma2,"i"); -MODULE_PARM(sgbase,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma2, int, 0); +module_param(sgbase, int, 0); static int __init init_sgalaxy(void) { diff --git a/sound/oss/sonicvibes.c b/sound/oss/sonicvibes.c index 70c91ddd4d7613..432bf4965b4138 100644 --- a/sound/oss/sonicvibes.c +++ b/sound/oss/sonicvibes.c @@ -2453,7 +2453,7 @@ static int wavetable[NR_DEVICE]; static unsigned int devindex; -MODULE_PARM(reverb, "1-" __MODULE_STRING(NR_DEVICE) "i"); +module_param_array(reverb, bool, NULL, 0); MODULE_PARM_DESC(reverb, "if 1 enables the reverb circuitry. NOTE: your card must have the reverb RAM"); #if 0 MODULE_PARM(wavetable, "1-" __MODULE_STRING(NR_DEVICE) "i"); diff --git a/sound/oss/sscape.c b/sound/oss/sscape.c index 7c9b5d41bbb2d2..08b52658012e72 100644 --- a/sound/oss/sscape.c +++ b/sound/oss/sscape.c @@ -1400,13 +1400,13 @@ static int __initdata io = -1; static int __initdata mpu_irq = -1; static int __initdata mpu_io = -1; -MODULE_PARM(dma, "i"); -MODULE_PARM(irq, "i"); -MODULE_PARM(io, "i"); -MODULE_PARM(spea, "i"); /* spea=0/1 set the old_hardware */ -MODULE_PARM(mpu_irq, "i"); -MODULE_PARM(mpu_io, "i"); -MODULE_PARM(mss, "i"); +module_param(dma, int, 0); +module_param(irq, int, 0); +module_param(io, int, 0); +module_param(spea, int, 0); /* spea=0/1 set the old_hardware */ +module_param(mpu_irq, int, 0); +module_param(mpu_io, int, 0); +module_param(mss, int, 0); static int __init init_sscape(void) { diff --git a/sound/oss/trix.c b/sound/oss/trix.c index 13c3d79396a5fa..d1f1f154dcce56 100644 --- a/sound/oss/trix.c +++ b/sound/oss/trix.c @@ -413,16 +413,16 @@ static int __initdata sb_irq = -1; static int __initdata mpu_io = -1; static int __initdata mpu_irq = -1; -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma2,"i"); -MODULE_PARM(sb_io,"i"); -MODULE_PARM(sb_dma,"i"); -MODULE_PARM(sb_irq,"i"); -MODULE_PARM(mpu_io,"i"); -MODULE_PARM(mpu_irq,"i"); -MODULE_PARM(joystick, "i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma2, int, 0); +module_param(sb_io, int, 0); +module_param(sb_dma, int, 0); +module_param(sb_irq, int, 0); +module_param(mpu_io, int, 0); +module_param(mpu_irq, int, 0); +module_param(joystick, bool, 0); static int __init init_trix(void) { diff --git a/sound/oss/uart6850.c b/sound/oss/uart6850.c index 3c004ab762c47d..f051ca0a69b218 100644 --- a/sound/oss/uart6850.c +++ b/sound/oss/uart6850.c @@ -316,8 +316,8 @@ static struct address_info cfg_mpu; static int __initdata io = -1; static int __initdata irq = -1; -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); static int __init init_uart6850(void) { diff --git a/sound/oss/wavfront.c b/sound/oss/wavfront.c index 4875565a05583c..9cdbd2305c1838 100644 --- a/sound/oss/wavfront.c +++ b/sound/oss/wavfront.c @@ -200,16 +200,16 @@ int osrun_time = 10; /* time in seconds we wait for the OS to start running. */ -MODULE_PARM(wf_raw,"i"); -MODULE_PARM(fx_raw,"i"); -MODULE_PARM(debug_default,"i"); -MODULE_PARM(wait_polls,"i"); -MODULE_PARM(sleep_length,"i"); -MODULE_PARM(sleep_tries,"i"); -MODULE_PARM(ospath,"s"); -MODULE_PARM(reset_time,"i"); -MODULE_PARM(ramcheck_time,"i"); -MODULE_PARM(osrun_time,"i"); +module_param(wf_raw, int, 0); +module_param(fx_raw, int, 0); +module_param(debug_default, int, 0); +module_param(wait_polls, int, 0); +module_param(sleep_length, int, 0); +module_param(sleep_tries, int, 0); +module_param(ospath, charp, 0); +module_param(reset_time, int, 0); +module_param(ramcheck_time, int, 0); +module_param(osrun_time, int, 0); /***************************************************************************/ @@ -3490,8 +3490,8 @@ static int irq = -1; MODULE_AUTHOR ("Paul Barton-Davis <pbd@op.net>"); MODULE_DESCRIPTION ("Turtle Beach WaveFront Linux Driver"); MODULE_LICENSE("GPL"); -MODULE_PARM (io,"i"); -MODULE_PARM (irq,"i"); +module_param (io, int, 0); +module_param (irq, int, 0); static int __init init_wavfront (void) { |