aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRohit kumar <rohitkr@codeaurora.org>2020-06-02 11:14:38 +0530
committerRohit kumar <rohitkr@codeaurora.org>2020-06-02 12:31:17 +0530
commitf38405c4fd804fc3482055f1345095343ef243c5 (patch)
treeafa8e91e4c19f4a1c929d928ec9764b3445ad7fa /include
parentbdc1fcf5f04b1bc2f97e9d449ced1c516f70d4af (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/mixer.h4
1 files changed, 4 insertions, 0 deletions
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 <sys/time.h>
#include <stddef.h>
+#include <sound/asound.h>
#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" */