Commit 2abb80176cd80ad8e939ead9c785ac17dc9890a4

Authored by Takashi Iwai
1 parent 779ae5a083

sound: allow the unit search until 256 in sound_core.c

The upper limit of the available minors isn't necessarily 128 + unit,
but it's rather up to 256.  Fixing this allows more than 8 devices.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -361,7 +361,7 @@
361 361 struct device *dev)
362 362 {
363 363 const int chain = unit % SOUND_STEP;
364   - int max_unit = 128 + chain;
  364 + int max_unit = 256;
365 365 const char *name;
366 366 char _name[16];
367 367