From 010121a131a8092ca7cfc9e219b6fb1e3f4346bf Mon Sep 17 00:00:00 2001 From: Pankaj Bharadiya Date: Wed, 11 Jan 2017 08:57:06 +0530 Subject: Tinyalsa: Add support to poll on alsa control ALSA controls support polling on the kcontrols, this is used in HD-A for jack notifcation. In tinyalsa we can use this for notfication from sound card for any events detected by DSP Change-Id: I4193809bfcdb60f4dc11e1c2ad6a07b29cfa80e9 Signed-off-by: Hardik T Shah Signed-off-by: Vinod Koul Signed-off-by: Pankaj Bharadiya --- 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 0a48b6f..faeb957 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -90,6 +90,10 @@ struct mixer_ctl *mixer_get_ctl_by_name_and_index(struct mixer *mixer, const char *name, unsigned int index); +int mixer_subscribe_events(struct mixer *mixer, int subscribe); + +int mixer_wait_event(struct mixer *mixer, int timeout); + unsigned int mixer_ctl_get_id(const struct mixer_ctl *ctl); const char *mixer_ctl_get_name(const struct mixer_ctl *ctl); -- cgit v1.2.3