diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-11-20 08:09:05 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:29:21 -0500 |
commit | d001544ded23ddb1116f945ccc2d89a7f98ab7e8 (patch) | |
tree | 721fbc6355acfb886817e2b120f198383c5e6ae6 /sound/core/sound.c | |
parent | 204bdb1b50013c7aa3922d8b66df943123087bd8 (diff) |
[ALSA] dynamic minors (6/6): increase maximum number of sound cards
Modules: ALSA Core,Memalloc module,ALSA sequencer
With dynamic minor numbers, we can increase the number of sound cards.
This requires that the sequencer client numbers of some kernel drivers
are allocated dynamically, too.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/core/sound.c')
-rw-r--r-- | sound/core/sound.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index 5e22283078fc..5febd0545d7d 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -358,15 +358,15 @@ static void snd_minor_info_read(struct snd_info_entry *entry, struct snd_info_bu | |||
358 | continue; | 358 | continue; |
359 | if (mptr->card >= 0) { | 359 | if (mptr->card >= 0) { |
360 | if (mptr->device >= 0) | 360 | if (mptr->device >= 0) |
361 | snd_iprintf(buffer, "%3i: [%i-%2i]: %s\n", | 361 | snd_iprintf(buffer, "%3i: [%2i-%2i]: %s\n", |
362 | minor, mptr->card, mptr->device, | 362 | minor, mptr->card, mptr->device, |
363 | snd_device_type_name(mptr->type)); | 363 | snd_device_type_name(mptr->type)); |
364 | else | 364 | else |
365 | snd_iprintf(buffer, "%3i: [%i] : %s\n", | 365 | snd_iprintf(buffer, "%3i: [%2i] : %s\n", |
366 | minor, mptr->card, | 366 | minor, mptr->card, |
367 | snd_device_type_name(mptr->type)); | 367 | snd_device_type_name(mptr->type)); |
368 | } else | 368 | } else |
369 | snd_iprintf(buffer, "%3i: : %s\n", minor, | 369 | snd_iprintf(buffer, "%3i: : %s\n", minor, |
370 | snd_device_type_name(mptr->type)); | 370 | snd_device_type_name(mptr->type)); |
371 | } | 371 | } |
372 | up(&sound_mutex); | 372 | up(&sound_mutex); |