aboutsummaryrefslogtreecommitdiffstats
path: root/HAL-afb/HAL-interface
diff options
context:
space:
mode:
Diffstat (limited to 'HAL-afb/HAL-interface')
-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