From: Takashi Iwai Date: Tue, 8 May 2012 15:27:03 +0000 (+0200) Subject: sound: allow the unit search until 256 in sound_core.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2abb80176cd80ad8e939ead9c785ac17dc9890a4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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, struct device *dev) { const int chain = unit % SOUND_STEP; - int max_unit = 128 + chain; + int max_unit = 256; const char *name; char _name[16];