From 7297c6b5d2dc47574e981c76a282e67fcef230c0 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Fri, 8 Jun 2018 11:16:26 +0200 Subject: Process and handle alsa controls map Process and handle alsa controls map by : Parse and store info from 'halmap' section into a structure. If the hal is available : - Test if controls are available (if use of existing control). - Create new controls (if use of control to create). - Add a verb for each element of the section. - Handle call to alsa when a verb request is detected. - Resgister to event from this device. - Handle call to action if event on this control is detected. Change-Id: I246e16e9d02e64a1778f5c78d2458a33bdfb6d7e Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-utilities/4a-hal-utilities-data.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '4a-hal/4a-hal-utilities') diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h index b472df6..64c5d8e 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h @@ -27,6 +27,8 @@ #include +#include "../4a-hal-controllers/4a-hal-controllers-alsacore-link.h" + #define ALSA_MAX_CARD 32 // Enum for sharing hal (controller or external) status @@ -55,7 +57,7 @@ struct CtlHalSpecificData { json_object *halMixerJ; struct CtlHalStreamsDataT ctlHalStreamsData; - // TODO JAI : add structure to hold halmap section data + struct CtlHalAlsaMapT *ctlHalAlsaMapT; AFB_ApiT apiHandle; CtlConfigT *ctrlConfig; -- cgit 1.2.3-korg