mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-18 21:34:26 -04:00
Added function, mixer_get_num_ctls_by_name
This function is used to get the number of mixer controls by a given name. It was added for use with mixer_get_ctl_by_name_and_index so that client code can expect the last valid index to pass.
This commit is contained in:
@@ -73,6 +73,8 @@ const char *mixer_get_name(const struct mixer *mixer);
|
||||
|
||||
unsigned int mixer_get_num_ctls(const struct mixer *mixer);
|
||||
|
||||
unsigned int mixer_get_num_ctls_by_name(const struct mixer *mixer, const char *name);
|
||||
|
||||
const struct mixer_ctl *mixer_get_ctl_const(const struct mixer *mixer, unsigned int id);
|
||||
|
||||
struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id);
|
||||
|
||||
Reference in New Issue
Block a user