From bdc1fcf5f04b1bc2f97e9d449ced1c516f70d4af Mon Sep 17 00:00:00 2001 From: Andrew Chant Date: Mon, 5 Feb 2018 15:16:41 -0800 Subject: tinyalsa: add mixer_consume_event mixer_consume_event consumes subscribed events from the mixer in order to allow monitoring of mixer control value changed. --- include/tinyalsa/mixer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index faeb957..6cd914a 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -136,6 +136,7 @@ int mixer_ctl_get_range_min(const struct mixer_ctl *ctl); int mixer_ctl_get_range_max(const struct mixer_ctl *ctl); +int mixer_consume_event(struct mixer *mixer); #if defined(__cplusplus) } /* extern "C" */ #endif -- cgit v1.2.3 From f38405c4fd804fc3482055f1345095343ef243c5 Mon Sep 17 00:00:00 2001 From: Rohit kumar Date: Tue, 2 Jun 2020 11:14:38 +0530 Subject: mixer: Add plugin support for mixer_consume/read_event snd_ctl_event is needed by client to get details of event received. Introduce mixer_read_event() with plugin support to support this. --- include/tinyalsa/mixer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index 6cd914a..7f0f022 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -35,7 +35,9 @@ #ifndef TINYALSA_MIXER_H #define TINYALSA_MIXER_H +#include #include +#include #if defined(__cplusplus) extern "C" { @@ -136,6 +138,8 @@ int mixer_ctl_get_range_min(const struct mixer_ctl *ctl); int mixer_ctl_get_range_max(const struct mixer_ctl *ctl); +int mixer_read_event(struct mixer *mixer, struct snd_ctl_event *ev); + int mixer_consume_event(struct mixer *mixer); #if defined(__cplusplus) } /* extern "C" */ -- cgit v1.2.3