diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-29 18:09:01 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-03-11 13:49:15 +0300 |
commit | 3cbdd7533148f00444013700af89548b8cf32646 (patch) | |
tree | 08778f54d3ab95cefafb696c5b655f8b99bd8dc8 /include/sound/control.h | |
parent | 80e1b84ffe1354f314fd85c939900b816f394e5a (diff) | |
download | linux-3cbdd7533148f00444013700af89548b8cf32646.tar.xz |
ALSA: Add snd_ctl_activate_id()
Added a new API function snd_ctl_activate_id() for activate / inactivate
the control element dynamically.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/control.h')
-rw-r--r-- | include/sound/control.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index 7715e6f00d38..e67db2869360 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -115,6 +115,8 @@ int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol); int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol); int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id); int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id); +int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, + int active); struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid); struct snd_kcontrol *snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id *id); |