From: Takashi Sakamoto Date: Sun, 12 Apr 2015 01:12:25 +0000 (+0900) Subject: ALSA: ctl: fix to handle several elements added by one operation for userspace element X-Git-Tag: omap-for-v4.1/fixes-rc1~130^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c78df1da112f2644058af2425dd5ca3eb1a96a;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed