提交 2abb8017 编写于 作者: T Takashi Iwai

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: NTakashi Iwai <tiwai@suse.de>
上级 779ae5a0
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册