mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
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>
This commit is contained in:
parent
779ae5a083
commit
2abb80176c
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ int register_sound_special_device(const struct file_operations *fops, int unit,
|
||||||
struct device *dev)
|
struct device *dev)
|
||||||
{
|
{
|
||||||
const int chain = unit % SOUND_STEP;
|
const int chain = unit % SOUND_STEP;
|
||||||
int max_unit = 128 + chain;
|
int max_unit = 256;
|
||||||
const char *name;
|
const char *name;
|
||||||
char _name[16];
|
char _name[16];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue