]> git.alsa-project.org Git - alsa-lib.git/commit
control: initialize element channel values according to identification number at...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 21 Feb 2016 16:54:28 +0000 (01:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 21 Feb 2016 17:49:48 +0000 (18:49 +0100)
commit2b0ea7eefb7f23a8d29fcba55ab7f67d6929e181
tree71021e5f72d1508726f53a31080297f7e9ce1b3f
parentc2518902c5bc34f3320a8deb96c9a804b5a00176
control: initialize element channel values according to identification number at adding a new element

In ALSA control core, there're two ways to identify elements. One is by
numid. Another is by name/index. The former way is lighter than the latter
way.

In control API, after adding elements by snd_ctl_elem_add_integer() and
snd_ctl_elem_add_integer64(), these functions initialize value of each
channel. When executing this operation, used ID information is still given
by applications. Although, in this time, the element can be identified
according to numid.

This commit uses the numid instead of name/index pair.

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