mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
ctl: rename APIs to add an element set so that their names are appropriate
In this development period, some APIs have already been added. Most of them are to add an element set, while their names are not so appropriate against their feature. This is due to following to names of old APIs. This commit renames them. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
962d006c28
commit
7bebd4c980
4 changed files with 29 additions and 29 deletions
|
|
@ -671,9 +671,9 @@ static int add_user_ctl(snd_pcm_softvol_t *svol, snd_ctl_elem_info_t *cinfo,
|
|||
unsigned int def_val;
|
||||
|
||||
if (svol->max_val == 1)
|
||||
err = snd_ctl_elem_add_boolean_set(svol->ctl, cinfo, 1, count);
|
||||
err = snd_ctl_add_boolean_elem_set(svol->ctl, cinfo, 1, count);
|
||||
else
|
||||
err = snd_ctl_elem_add_integer_set(svol->ctl, cinfo, 1, count,
|
||||
err = snd_ctl_add_integer_elem_set(svol->ctl, cinfo, 1, count,
|
||||
0, svol->max_val, 0);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue