aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>2014-09-09 17:14:09 +0100
committerRichard Fitzgerald <rf@opensource.wolfsonmicro.com>2016-12-02 16:39:38 +0000
commitfd3290357ea02f871a10eec208697fb97d578fe6 (patch)
treeb35ed3a9c05cd0e14d51e28b2cd7c01b2f76d296 /include
parent15e6231a1b3455fff50c9912f227efae91666d1f (diff)
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 <rf@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/mixer.h2
1 files changed, 2 insertions, 0 deletions
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);