Update of /cvsroot/alsa/alsa-kernel/core/seq In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20010/core/seq
Modified Files: seq.c seq_dummy.c seq_midi.c Log Message: use the new module_param*() functions. Index: seq.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- seq.c 7 Jan 2004 14:34:22 -0000 1.9 +++ seq.c 7 Apr 2004 17:48:12 -0000 1.10 @@ -21,6 +21,7 @@ #include <sound/driver.h> #include <linux/init.h> +#include <linux/moduleparam.h> #include <sound/core.h> #include <sound/initval.h> @@ -48,19 +49,20 @@ MODULE_CLASSES("{sound}"); MODULE_SUPPORTED_DEVICE("sound"); -MODULE_PARM(seq_client_load, "1-64i"); +static int boot_devs; +module_param_array(seq_client_load, int, boot_devs, 0444); MODULE_PARM_DESC(seq_client_load, "The numbers of global (system) clients to load through kmod."); -MODULE_PARM(seq_default_timer_class, "i"); +module_param(seq_default_timer_class, int, 0444); MODULE_PARM_DESC(seq_default_timer_class, "The default timer class."); -MODULE_PARM(seq_default_timer_sclass, "i"); +module_param(seq_default_timer_sclass, int, 0444); MODULE_PARM_DESC(seq_default_timer_sclass, "The default timer slave class."); -MODULE_PARM(seq_default_timer_card, "i"); +module_param(seq_default_timer_card, int, 0444); MODULE_PARM_DESC(seq_default_timer_card, "The default timer card number."); -MODULE_PARM(seq_default_timer_device, "i"); +module_param(seq_default_timer_device, int, 0444); MODULE_PARM_DESC(seq_default_timer_device, "The default timer device number."); -MODULE_PARM(seq_default_timer_subdevice, "i"); +module_param(seq_default_timer_subdevice, int, 0444); MODULE_PARM_DESC(seq_default_timer_subdevice, "The default timer subdevice number."); -MODULE_PARM(seq_default_timer_resolution, "i"); +module_param(seq_default_timer_resolution, int, 0444); MODULE_PARM_DESC(seq_default_timer_resolution, "The default timer resolution in Hz."); /* Index: seq_dummy.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_dummy.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- seq_dummy.c 23 Feb 2004 19:27:00 -0000 1.10 +++ seq_dummy.c 7 Apr 2004 17:48:12 -0000 1.11 @@ -21,6 +21,7 @@ #include <sound/driver.h> #include <linux/init.h> #include <linux/slab.h> +#include <linux/moduleparam.h> #include <sound/core.h> #include "seq_clientmgr.h" #include <sound/initval.h> @@ -64,12 +65,14 @@ MODULE_LICENSE("GPL"); MODULE_CLASSES("{sound}"); MODULE_SUPPORTED_DEVICE("sound"); -MODULE_PARM(ports, "i"); + +static int ports = 1; +static int duplex = 0; + +module_param(ports, int, 0444); MODULE_PARM_DESC(ports, "number of ports to be created"); -MODULE_PARM(duplex, "i"); +module_param(duplex, bool, 0444); MODULE_PARM_DESC(duplex, "create DUPLEX ports"); -int ports = 1; -int duplex = 0; typedef struct snd_seq_dummy_port { int client; Index: seq_midi.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_midi.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- seq_midi.c 8 Mar 2004 09:18:29 -0000 1.18 +++ seq_midi.c 7 Apr 2004 17:48:12 -0000 1.19 @@ -31,6 +31,7 @@ #include <linux/slab.h> #include <linux/errno.h> #include <linux/string.h> +#include <linux/moduleparam.h> #include <asm/semaphore.h> #include <sound/core.h> #include <sound/rawmidi.h> @@ -45,10 +46,10 @@ MODULE_CLASSES("{sound}"); MODULE_SUPPORTED_DEVICE("sound"); int output_buffer_size = PAGE_SIZE; -MODULE_PARM(output_buffer_size, "i"); +module_param(output_buffer_size, int, 0444); MODULE_PARM_DESC(output_buffer_size, "Output buffer size in bytes."); int input_buffer_size = PAGE_SIZE; -MODULE_PARM(input_buffer_size, "i"); +module_param(input_buffer_size, int, 0444); MODULE_PARM_DESC(input_buffer_size, "Input buffer size in bytes."); /* data for this midi synth driver */ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog