sonynwza10/a20: enable pcm frequency selection

Change-Id: I335fcdbb652253e777d0d7406545d0d44d98f4f0
This commit is contained in:
Amaury Pouly 2017-10-01 16:13:54 +02:00
parent 50e93d5687
commit a82ebac53a
5 changed files with 41 additions and 1 deletions

View file

@ -72,6 +72,15 @@ bool alsa_controls_find(snd_ctl_elem_id_t *id, const char *name)
return false;
}
bool alsa_has_control(const char *name)
{
snd_ctl_elem_id_t *id;
/* allocate things on stack */
snd_ctl_elem_id_alloca(&id);
/* find control */
return alsa_controls_find(id, name);
}
/* find a control element enum index by name, return -1 if not found */
int alsa_controls_find_enum(const char *name, const char *enum_name)
{