From 678ddcdb5d31af1da9170063947d24a75cf0868e Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Fri, 1 Jun 2018 22:58:37 +0200 Subject: Add a table to see which hal is using which alsa hw Add a table to see which controller hal is using which alsa hw. This table is stored in the hal manager data structure. It will be used at initialization to check if the device is free before sending the mixer attach call. Change-Id: I94bcb3224f2bf1756d4b53786e324ac13e55c573 Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-utilities/4a-hal-utilities-data.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to '4a-hal') 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 2e66b87..8fcab33 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 +#define ALSA_MAX_CARD 32 + // Enum for sharing hal (controller or external) status enum HalStatus { HAL_STATUS_UNAVAILABLE=0, @@ -78,6 +80,8 @@ struct HalMgrData { char *apiName; char *info; + struct SpecificHalData usedCardId[ALSA_MAX_CARD]; + afb_dynapi *apiHandle; struct SpecificHalData *first; -- cgit 1.2.3-korg