diff options
author | Simon Wilson | 2013-06-28 18:47:16 -0500 |
---|---|---|
committer | Simon Wilson | 2013-06-28 18:47:19 -0500 |
commit | 7e8a656722b3b19d499ad89c9c1e46b8be3da896 (patch) | |
tree | bfe28387934c5cbfa3f636f8115a6561878334bc /include/tinyalsa | |
parent | 8813fe8c9c7bfe5722932166d379bc79e9dedf1d (diff) | |
download | platform-external-tinyalsa-7e8a656722b3b19d499ad89c9c1e46b8be3da896.tar.gz platform-external-tinyalsa-7e8a656722b3b19d499ad89c9c1e46b8be3da896.tar.xz platform-external-tinyalsa-7e8a656722b3b19d499ad89c9c1e46b8be3da896.zip |
Update to latest tinyalsa
ec28139 mixer: add mixer_get_name() API
710df88 mixer: add mixer_ctl_update() API
Change-Id: I0cabe7e673a53f4358b5dbae4a17112eff5a2848
Diffstat (limited to 'include/tinyalsa')
-rw-r--r-- | include/tinyalsa/asoundlib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 2e16392..4dfffd9 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h | |||
@@ -211,6 +211,9 @@ struct mixer_ctl; | |||
211 | struct mixer *mixer_open(unsigned int card); | 211 | struct mixer *mixer_open(unsigned int card); |
212 | void mixer_close(struct mixer *mixer); | 212 | void mixer_close(struct mixer *mixer); |
213 | 213 | ||
214 | /* Get info about a mixer */ | ||
215 | const char *mixer_get_name(struct mixer *mixer); | ||
216 | |||
214 | /* Obtain mixer controls */ | 217 | /* Obtain mixer controls */ |
215 | unsigned int mixer_get_num_ctls(struct mixer *mixer); | 218 | unsigned int mixer_get_num_ctls(struct mixer *mixer); |
216 | struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id); | 219 | struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id); |
@@ -225,6 +228,12 @@ unsigned int mixer_ctl_get_num_enums(struct mixer_ctl *ctl); | |||
225 | const char *mixer_ctl_get_enum_string(struct mixer_ctl *ctl, | 228 | const char *mixer_ctl_get_enum_string(struct mixer_ctl *ctl, |
226 | unsigned int enum_id); | 229 | unsigned int enum_id); |
227 | 230 | ||
231 | /* Some sound cards update their controls due to external events, | ||
232 | * such as HDMI EDID byte data changing when an HDMI cable is | ||
233 | * connected. This API allows the count of elements to be updated. | ||
234 | */ | ||
235 | void mixer_ctl_update(struct mixer_ctl *ctl); | ||
236 | |||
228 | /* Set and get mixer controls */ | 237 | /* Set and get mixer controls */ |
229 | int mixer_ctl_get_percent(struct mixer_ctl *ctl, unsigned int id); | 238 | int mixer_ctl_get_percent(struct mixer_ctl *ctl, unsigned int id); |
230 | int mixer_ctl_set_percent(struct mixer_ctl *ctl, unsigned int id, int percent); | 239 | int mixer_ctl_set_percent(struct mixer_ctl *ctl, unsigned int id, int percent); |