aboutsummaryrefslogtreecommitdiff
path: root/include/tinyalsa
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-12-01 18:23:16 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2016-12-01 18:23:16 -0800
commita94295b6cf85fceb6b06db42b27c88131f1a18b0 (patch)
tree72cce744d670cf7a6c10ef90d03aba47f2512250 /include/tinyalsa
parentcac43a208d0297a55876c5926eefc1c2ab195067 (diff)
Added mixer_get_ctl_const
This function was added to make available a mixer control accessor in a function that does not modify its value.
Diffstat (limited to 'include/tinyalsa')
-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 fb862f3..a54b5c1 100644
--- a/include/tinyalsa/mixer.h
+++ b/include/tinyalsa/mixer.h
@@ -73,6 +73,8 @@ const char *mixer_get_name(const struct mixer *mixer);
unsigned int mixer_get_num_ctls(const struct mixer *mixer);
+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);
struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name);