diff options
author | dvdli <70133153+dvdli@users.noreply.github.com> | 2023-09-05 10:20:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 10:20:40 +0800 |
commit | 2ca2386c1f41f3820e22281de570b19380682086 (patch) | |
tree | e88d363b4b9f5ea8eba982337f52496bb95298ff /include | |
parent | c0fbed5e2ba87ee8cacc3cbca55488bcb85f327a (diff) | |
parent | 4516c73951d861e974f338540b026285148dc426 (diff) |
Merge pull request #244 from rohit-qc/chmap_mixer_support
Chmap mixer support
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/mixer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index 7d0580f..149b395 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -103,6 +103,10 @@ struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id); struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name); +struct mixer_ctl *mixer_get_ctl_by_name_and_device(struct mixer *mixer, + const char *name, + unsigned int device); + struct mixer_ctl *mixer_get_ctl_by_name_and_index(struct mixer *mixer, const char *name, unsigned int index); @@ -153,6 +157,8 @@ int mixer_ctl_get_range_min(const struct mixer_ctl *ctl); int mixer_ctl_get_range_max(const struct mixer_ctl *ctl); +unsigned int mixer_ctl_get_device(const struct mixer_ctl *ctl); + int mixer_read_event(struct mixer *mixer, struct mixer_ctl_event *event); int mixer_consume_event(struct mixer *mixer); |