From fd3290357ea02f871a10eec208697fb97d578fe6 Mon Sep 17 00:00:00 2001 From: Richard Fitzgerald Date: Tue, 9 Sep 2014 17:14:09 +0100 Subject: mixer: add ability to update control list with new controls New controls could appear during runtime, for example if a new firmware is downloaded to a DSP. Since ALSA drivers are not supposed to delete or renumber existing controls we can assume that any new controls will be after any controls we already know about. We can use this to enable extending our current list of controls, which is more efficient than closing the mixer session and recreating it. Signed-off-by: Richard Fitzgerald --- include/tinyalsa/mixer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index f743f6e..d82d4b1 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -69,6 +69,8 @@ struct mixer *mixer_open(unsigned int card); void mixer_close(struct mixer *mixer); +int mixer_add_new_ctls(struct mixer *mixer); + const char *mixer_get_name(const struct mixer *mixer); unsigned int mixer_get_num_ctls(const struct mixer *mixer); -- cgit v1.2.3