X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fdrivers%2Fmtpav.c;h=d6529a444d3f5f2465890c598a0f4f224b9e4ea5;hb=eb643825dab24bf61fe40ea800c5be013315220d;hp=e2a3425b33a75662ff0aecef1e0e54c72c9c97a2;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index e2a3425b3..d6529a444 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c @@ -55,8 +55,8 @@ #include #include #include +#include #include -#define SNDRV_GET_ID #include #include #include @@ -83,19 +83,19 @@ static long port = MTPAV_IOBASE; /* 0x378, 0x278 */ static int irq = MTPAV_IRQ; /* 7, 5 */ static int hwports = MTPAV_MAX_PORTS; /* use hardware ports 1-8 */ -MODULE_PARM(index, "i"); +module_param(index, int, 0444); MODULE_PARM_DESC(index, "Index value for MotuMTPAV MIDI."); MODULE_PARM_SYNTAX(index, SNDRV_INDEX_DESC); -MODULE_PARM(id, "s"); +module_param(id, charp, 0444); MODULE_PARM_DESC(id, "ID string for MotuMTPAV MIDI."); MODULE_PARM_SYNTAX(id, SNDRV_ID_DESC); -MODULE_PARM(port, "l"); +module_param(port, long, 0444); MODULE_PARM_DESC(port, "Parallel port # for MotuMTPAV MIDI."); MODULE_PARM_SYNTAX(port, SNDRV_ENABLED ",allows:{{0x378},{0x278}},dialog:list"); -MODULE_PARM(irq, "i"); +module_param(irq, int, 0444); MODULE_PARM_DESC(irq, "Parallel IRQ # for MotuMTPAV MIDI."); MODULE_PARM_SYNTAX(irq, SNDRV_ENABLED ",allows:{{7},{5}},dialog:list"); -MODULE_PARM(hwports, "i"); +module_param(hwports, int, 0444); MODULE_PARM_DESC(hwports, "Hardware ports # for MotuMTPAV MIDI."); MODULE_PARM_SYNTAX(hwports, SNDRV_ENABLED ",allows:{{1,8}},dialog:list"); @@ -800,25 +800,3 @@ static void __exit alsa_card_mtpav_exit(void) module_init(alsa_card_mtpav_init) module_exit(alsa_card_mtpav_exit) - -#ifndef MODULE - -/* format is: snd-mtpav=enable,index,id, - port,irq,hwports */ - -static int __init alsa_card_mtpav_setup(char *str) -{ - int __attribute__ ((__unused__)) enable = 1; - - (void)(get_option(&str,&enable) == 2 && - get_option(&str,&index) == 2 && - get_id(&str,&id) == 2 && - get_option_long(&str,&port) == 2 && - get_option(&str,&irq) == 2 && - get_option(&str,&hwports) == 2); - return 1; -} - -__setup("snd-mtpav=", alsa_card_mtpav_setup); - -#endif /* ifndef MODULE */