projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779ae5a
)
sound: allow the unit search until 256 in sound_core.c
author
Takashi Iwai
<tiwai@suse.de>
Tue, 8 May 2012 15:27:03 +0000
(17:27 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 8 May 2012 15:27:03 +0000
(17:27 +0200)
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>
sound/sound_core.c
patch
|
blob
|
history
diff --git
a/sound/sound_core.c
b/sound/sound_core.c
index
c6e81fb
..
fb9255c
100644
(file)
--- 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];