diff options
author | 2019-06-24 14:38:39 +0200 | |
---|---|---|
committer | 2019-06-26 16:52:39 +0200 | |
commit | c6cb9e4064c05ded2c52f833d5e26ab42a03d1de (patch) | |
tree | 1af5e72f45b631f4cfe534d2f70b323d81f8fafc /lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h | |
parent | e62be7bd8ee0ad8fcd0c5a9f7c1f5831d789c5b4 (diff) |
Use haldependencies to process and handle halmap
Use haldependencies section definition to process and
to handle halmap section.
That means that each 'halmap' control can use its own probed
audio device card number using a targeted dependencies.
Also, change halmap section definition to be able to handle
several halmap defined with the same dependencies.
Update example hal to match new json file format.
BUG-AGL: SPEC-2329
Change-Id: I31997a037ee8f0e727e0a67866d651b988b85260
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h')
-rw-r--r-- | lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h b/lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h index d548c73..b387468 100644 --- a/lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h +++ b/lib/4a-hal-utilities/4a-hal-utilities-alsa-data.h @@ -30,6 +30,8 @@ #include <ctl-config.h> +#define HAL_UNKNOWN_DEVICE -1 + struct InternalHalAlsaDBScale { int min; int max; @@ -44,7 +46,7 @@ struct InternalHalAlsaCtlProperties { int maxval; int step; // TBD JAI : use them - const char **enums; + char **enums; struct InternalHalAlsaDBScale *dbscale; }; @@ -58,6 +60,12 @@ struct InternalHalAlsaCtl { }; struct InternalHalAlsaMap { + char *targetUid; + char *targetInfo; + + char *targetedDependency; + int cardNb; + char *uid; char *info; |