]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ctl: fix to handle several elements added by one operation for userspace element
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 12 Apr 2015 01:12:25 +0000 (10:12 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Apr 2015 08:31:49 +0000 (10:31 +0200)
commitf88bc238f6545ca7db4e3124e04cff8ed6452c70
treeab5df7d5a9e38ec5054820575a84a4dd6e5d35f4
parentfc49c0c79d27a35bbbea519c3d0add99002de1a3
ALSA: ctl: fix to handle several elements added by one operation for userspace element

An element instance can have several elements with the same feature.
Some userspace applications can add such an element instance by add
operation with the number of elements. Then, the element instance
gets a memory object to keep states of these elements.

But the element instance has just one memory object for the elements.
This causes the same result to each read/write operations to the
different elements.

This commit fixes this bug by allocating enough memory objects to the
element instance for each of elements.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c