Procházet zdrojové kódy

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>
Takashi Iwai před 13 roky
rodič
revize
2abb80176c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      sound/sound_core.c

+ 1 - 1
sound/sound_core.c

@@ -361,7 +361,7 @@ int register_sound_special_device(const struct file_operations *fops, int unit,
 				  struct device *dev)
 {
 	const int chain = unit % SOUND_STEP;
-	int max_unit = 128 + chain;
+	int max_unit = 256;
 	const char *name;
 	char _name[16];