]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ctl: fill identical information to return value when adding userspace elements
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 11 Apr 2015 08:41:04 +0000 (17:41 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 11 Apr 2015 15:35:17 +0000 (17:35 +0200)
commite3aed8da3d4b952ac8fb18967c7ea5a0d70adae3
treea9e1e2008fec076254277095f21f3b947e52c423
parent769dce1b9d84d62947f84c69f19fc585f8211e78
ALSA: ctl: fill identical information to return value when adding userspace elements

currently some members related identical information are not fiiled
in returned parameter of SNDRV_CTL_IOCTL_ELEM_ADD. This is not better
for userspace application.

This commit copies information to returned value. When failing to copy
into userspace, the added elements are going to be removed. Then, no
applications can lock these elements between adding and removing because
these are already locked.

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