summaryrefslogtreecommitdiffstats
path: root/HAL-afb
diff options
context:
space:
mode:
Diffstat (limited to 'HAL-afb')
-rw-r--r--HAL-afb/HAL-interface/hal-interface.c13
-rw-r--r--HAL-afb/HDA-intel/CMakeLists.txt5
-rw-r--r--HAL-afb/Jabra-Solemate/CMakeLists.txt4
-rw-r--r--HAL-afb/Scarlett-Focusrite/CMakeLists.txt4
4 files changed, 7 insertions, 19 deletions
diff --git a/HAL-afb/HAL-interface/hal-interface.c b/HAL-afb/HAL-interface/hal-interface.c
index 4d86504..0abe67e 100644
--- a/HAL-afb/HAL-interface/hal-interface.c
+++ b/HAL-afb/HAL-interface/hal-interface.c
@@ -44,7 +44,7 @@ STATIC int halCtlStringToIndex(const char* label) {
alsaHalMapT *halCtls = halSndCard->ctls;
for (int idx = 0; halCtls[idx].tag != EndHalCrlTag; idx++) {
- if (halCtls[idx].label && !strcmp(halCtls[idx].label, label)) return idx;
+ if (halCtls[idx].label && !strcasecmp(halCtls[idx].label, label)) return idx;
}
// not found
@@ -502,11 +502,12 @@ PUBLIC int halServiceInit(const char *apiPrefix, alsaHalSndCardT *alsaHalSndCard
json_object *ctlJ;
// Try to find best equivalent label for tag
- if (halCtls[idx].tag >StartHalCrlTag && halCtls[idx].tag < EndHalCrlTag && halCtls[idx].label != NULL) {
+ if (halCtls[idx].tag >StartHalCrlTag && halCtls[idx].tag < EndHalCrlTag && halCtlsLabels[halCtls[idx].tag] != NULL) {
halCtls[idx].label = halCtlsLabels[halCtls[idx].tag];
} else {
if (halCtls[idx].ctl.name) halCtls[idx].label=halCtls[idx].ctl.name;
else if (halCtls[idx].info) halCtls[idx].label=halCtls[idx].info;
+ else halCtls[idx].label="NoHalCttNameSet";
}
ctlJ = json_object_new_object();
@@ -617,9 +618,9 @@ PUBLIC void halServiceEvent(const char *evtname, json_object *eventJ) {
PUBLIC afb_verb_v2 halServiceApi[] = {
/* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */
{ .verb = "ping", .callback = pingtest, .info = "ping test for API"},
- { .verb = "ctl-list", .callback = halListCtls, .info = "List AGL normalised Sound Controls"},
- { .verb = "ctl-get", .callback = halGetCtls, .info = "Get one/many sound controls"},
- { .verb = "ctl-set", .callback = halSetCtls, .info = "Set one/many sound controls"},
- { .verb = "evt-sub", .callback = halSubscribe, .info = "Subscribe to HAL events"},
+ { .verb = "ctllist", .callback = halListCtls, .info = "List AGL normalised Sound Controls"},
+ { .verb = "ctlget", .callback = halGetCtls, .info = "Get one/many sound controls"},
+ { .verb = "ctlset", .callback = halSetCtls, .info = "Set one/many sound controls"},
+ { .verb = "evtsub", .callback = halSubscribe, .info = "Subscribe to HAL events"},
{ .verb = NULL} /* marker for end of the array */
};
diff --git a/HAL-afb/HDA-intel/CMakeLists.txt b/HAL-afb/HDA-intel/CMakeLists.txt
index 94234b4..380e493 100644
--- a/HAL-afb/HDA-intel/CMakeLists.txt
+++ b/HAL-afb/HDA-intel/CMakeLists.txt
@@ -16,7 +16,6 @@
# limitations under the License.
###########################################################################
-#[[
# Add target to project dependency list
PROJECT_TARGET_ADD(hal-intel-hda)
@@ -38,7 +37,3 @@ PROJECT_TARGET_ADD(hal-intel-hda)
audio-common
)
- # installation directory
- INSTALL(TARGETS ${TARGET_NAME}
- LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR})
- ]] \ No newline at end of file
diff --git a/HAL-afb/Jabra-Solemate/CMakeLists.txt b/HAL-afb/Jabra-Solemate/CMakeLists.txt
index 973e95d..41d6915 100644
--- a/HAL-afb/Jabra-Solemate/CMakeLists.txt
+++ b/HAL-afb/Jabra-Solemate/CMakeLists.txt
@@ -36,7 +36,3 @@ PROJECT_TARGET_ADD(hal-jabra-usb)
hal-interface
audio-common
)
-
- # installation directory
- INSTALL(TARGETS ${TARGET_NAME}
- LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR}) \ No newline at end of file
diff --git a/HAL-afb/Scarlett-Focusrite/CMakeLists.txt b/HAL-afb/Scarlett-Focusrite/CMakeLists.txt
index 48d5964..90ee92a 100644
--- a/HAL-afb/Scarlett-Focusrite/CMakeLists.txt
+++ b/HAL-afb/Scarlett-Focusrite/CMakeLists.txt
@@ -36,7 +36,3 @@ PROJECT_TARGET_ADD(hal-scalett-usb)
hal-interface
audio-common
)
-
- # installation directory
- INSTALL(TARGETS ${TARGET_NAME}
- LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR}) \ No newline at end of file