diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-11-20 08:08:28 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:29:20 -0500 |
commit | 204bdb1b50013c7aa3922d8b66df943123087bd8 (patch) | |
tree | 9e1721fe87bd960d497dfbb7a3abe9ddb57e5365 /sound/drivers/virmidi.c | |
parent | 332682b1cd540dd7abbbbfc1905af8139e76e1b7 (diff) |
[ALSA] dynamic minors (5/6): reduce maximum number of MIDI devices per card
Modules: ALSA sequencer,Generic drivers
To allow increasing the maximum number of sound cards, we have to limit
the number of sequencer clients per card because client numbers are
still allocated statically.
Reducing the number of clients to four limits the number of sequencer
MIDI ports to 1024 per card.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/drivers/virmidi.c')
-rw-r--r-- | sound/drivers/virmidi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index a7b9241fff3..9f36a647247 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -61,7 +61,7 @@ MODULE_DESCRIPTION("Dummy soundcard for virtual rawmidi devices"); | |||
61 | MODULE_LICENSE("GPL"); | 61 | MODULE_LICENSE("GPL"); |
62 | MODULE_SUPPORTED_DEVICE("{{ALSA,Virtual rawmidi device}}"); | 62 | MODULE_SUPPORTED_DEVICE("{{ALSA,Virtual rawmidi device}}"); |
63 | 63 | ||
64 | #define MAX_MIDI_DEVICES 8 | 64 | #define MAX_MIDI_DEVICES 4 |
65 | 65 | ||
66 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 66 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
67 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 67 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
@@ -75,7 +75,7 @@ MODULE_PARM_DESC(id, "ID string for virmidi soundcard."); | |||
75 | module_param_array(enable, bool, NULL, 0444); | 75 | module_param_array(enable, bool, NULL, 0444); |
76 | MODULE_PARM_DESC(enable, "Enable this soundcard."); | 76 | MODULE_PARM_DESC(enable, "Enable this soundcard."); |
77 | module_param_array(midi_devs, int, NULL, 0444); | 77 | module_param_array(midi_devs, int, NULL, 0444); |
78 | MODULE_PARM_DESC(midi_devs, "MIDI devices # (1-8)"); | 78 | MODULE_PARM_DESC(midi_devs, "MIDI devices # (1-4)"); |
79 | 79 | ||
80 | struct snd_card_virmidi { | 80 | struct snd_card_virmidi { |
81 | struct snd_card *card; | 81 | struct snd_card *card; |