Skip to content

Commit

Permalink
sound: allow the unit search until 256 in sound_core.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed May 8, 2012
1 parent 779ae5a commit 2abb801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/sound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 2abb801

Please sign in to comment.