summaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-01 22:58:37 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:51:00 +0200
commit678ddcdb5d31af1da9170063947d24a75cf0868e (patch)
tree6d14b6e701bdbf98977444b9fd05b94d175f9369 /4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
parent069f177dd6a06d5274beed509ab85792263fb5e8 (diff)
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 <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-utilities/4a-hal-utilities-data.h')
-rw-r--r--4a-hal/4a-hal-utilities/4a-hal-utilities-data.h4
1 files changed, 4 insertions, 0 deletions
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 <ctl-config.h>
+#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;