diff options
author | Tobias Jahnke <tjahnk@users.noreply.github.com> | 2017-08-11 13:52:51 +0200 |
---|---|---|
committer | Tobias Jahnke <tjahnk@users.noreply.github.com> | 2017-08-16 16:00:50 +0200 |
commit | 4aec17e1d42c1b0f3f628342bf24120299a0c819 (patch) | |
tree | 6ca6433369231ee6fc06140c93ae2d046391209b /HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c | |
parent | abe141f1d4dd46fe2bda6cc56db0ceaa964d87b1 (diff) |
Adds readme for HAL MOST UNICENS
Diffstat (limited to 'HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c')
-rw-r--r-- | HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c b/HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c index a5971fb..2cffe8d 100644 --- a/HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c +++ b/HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c @@ -23,6 +23,9 @@ #include "wrap_unicens.h" #include "wrap_volume.h" +#define XML_CONFIG_PATH "/home/agluser/DEVELOPMENT/AGL/BINDING/unicens2-binding/data/config_multichannel_audio_kit.xml" +#define ALSA_CARD_NAME "Microchip MOST:1" + #define PCM_MAX_CHANNELS 6 static int master_volume; @@ -84,7 +87,7 @@ STATIC alsaHalMapT alsaHalMap[]= { /* HAL sound card mapping info */ STATIC alsaHalSndCardT alsaHalSndCard = { - .name = "Microchip MOST:1", /* WARNING: name MUST match with 'aplay -l' */ + .name = ALSA_CARD_NAME, /* WARNING: name MUST match with 'aplay -l' */ .info = "HAL for MICROCHIP MOST sound card controlled by UNICENS binding", .ctls = alsaHalMap, .volumeCB = NULL, /* use default volume normalization function */ @@ -113,7 +116,7 @@ STATIC int unicens_service_init() { goto OnErrorExit; } - err = wrap_ucs_initialize_sync("/home/agluser/DEVELOPMENT/AGL/BINDING/unicens2-binding/data/config_multichannel_audio_kit.xml"); + err = wrap_ucs_initialize_sync(XML_CONFIG_PATH); if (err) { AFB_ERROR("Failed to initialize UNICENS binding"); goto OnErrorExit; |