diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-05-08 11:27:03 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-08 11:27:03 -0400 |
commit | 2abb80176cd80ad8e939ead9c785ac17dc9890a4 (patch) | |
tree | 4f486d3d62de63dc4d12ee344714e1fcdca20db8 /sound/sound_core.c | |
parent | 779ae5a08368c423f0c3b6075a518356eacd41f6 (diff) |
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>
Diffstat (limited to 'sound/sound_core.c')
-rw-r--r-- | sound/sound_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/sound_core.c b/sound/sound_core.c index c6e81fb928e9..fb9255cca214 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c | |||
@@ -361,7 +361,7 @@ int register_sound_special_device(const struct file_operations *fops, int unit, | |||
361 | struct device *dev) | 361 | struct device *dev) |
362 | { | 362 | { |
363 | const int chain = unit % SOUND_STEP; | 363 | const int chain = unit % SOUND_STEP; |
364 | int max_unit = 128 + chain; | 364 | int max_unit = 256; |
365 | const char *name; | 365 | const char *name; |
366 | char _name[16]; | 366 | char _name[16]; |
367 | 367 | ||