git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
sound
/
core
/
seq
/
seq_dummy.c
diff --git
a/sound/core/seq/seq_dummy.c
b/sound/core/seq/seq_dummy.c
index
e05095a
..
eb7f13b
100644
(file)
--- a/
sound/core/seq/seq_dummy.c
+++ b/
sound/core/seq/seq_dummy.c
@@
-21,6
+21,7
@@
#include <sound/driver.h>
#include <linux/init.h>
#include <linux/slab.h>
#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>
#include <sound/core.h>
#include "seq_clientmgr.h"
#include <sound/initval.h>
@@
-64,12
+65,14
@@
MODULE_DESCRIPTION("ALSA sequencer MIDI-through client");
MODULE_LICENSE("GPL");
MODULE_CLASSES("{sound}");
MODULE_SUPPORTED_DEVICE("sound");
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_DESC(ports, "number of ports to be created");
-
MODULE_PARM(duplex, "i"
);
+
module_param(duplex, bool, 0444
);
MODULE_PARM_DESC(duplex, "create DUPLEX ports");
MODULE_PARM_DESC(duplex, "create DUPLEX ports");
-int ports = 1;
-int duplex = 0;
typedef struct snd_seq_dummy_port {
int client;
typedef struct snd_seq_dummy_port {
int client;