aboutsummaryrefslogtreecommitdiffstats
path: root/HAL-afb
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2017-07-30 21:36:54 +0200
committerfulup <fulup.arfoll@iot.bzh>2017-07-30 21:36:54 +0200
commit39384e722d9fd7d162012b682aed41b35d16d003 (patch)
tree1406da7376c88b530a7b0525d7b5ba78451fe9ac /HAL-afb
parent94a12b24d1712573607b78cd78f47e998a0323d4 (diff)
Fix HTML5 demo with Volume Ramping
Diffstat (limited to 'HAL-afb')
-rw-r--r--HAL-afb/HAL-interface/hal-interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/HAL-afb/HAL-interface/hal-interface.c b/HAL-afb/HAL-interface/hal-interface.c
index 76cdbd8..cba10d7 100644
--- a/HAL-afb/HAL-interface/hal-interface.c
+++ b/HAL-afb/HAL-interface/hal-interface.c
@@ -39,6 +39,7 @@ STATIC const char *halCtlsLabels[] = {
[Vol_Ramp_Set_Delay] = "Volume_Ramp_Delay",
[Vol_Ramp_Set_Down] = "Volume_Ramp_Down",
[Vol_Ramp_Set_Up] = "Volume_Ramp_Up",
+ [Vol_Ramp_Set_Slave] = "Volume_Ramp_Slave",
[EndHalCrlTag] = NULL
};
@@ -70,7 +71,7 @@ STATIC int halCtlStringToIndex (const char* label) {
alsaHalMapT *halCtls= halSndCard->ctls;
for (int idx = 0; halCtls[idx].tag != EndHalCrlTag; idx++) {
- if (!strcmp (halCtls[idx].label, label)) return idx;
+ if (halCtls[idx].label && !strcmp (halCtls[idx].label, label)) return idx;
}
// not found