mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-18 21:34:26 -04:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user