summaryrefslogtreecommitdiffstats
path: root/HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c
diff options
context:
space:
mode:
Diffstat (limited to 'HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c')
-rw-r--r--HAL-afb/HAL_MOST_UNICENS/hal_most_unicens.c7
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;