aboutsummaryrefslogtreecommitdiffstats
path: root/MOST_UNICENS
diff options
context:
space:
mode:
authorTobias Jahnke <tobias.jahnke@microchip.com>2018-06-14 12:44:46 +0200
committerTobias Jahnke <tobias.jahnke@microchip.com>2018-06-14 12:47:27 +0200
commit118bc835fa19d827361bf8524a609b243c6b6778 (patch)
tree11e9e1811c5a021b1ab463de2eae0bb48e52886c /MOST_UNICENS
parent7e68d95ebfe048e4c8d93d380f1578b5641d8be7 (diff)
hal-most-unicens.c: add registration for hal-mgreel_5.1.0eel/5.1.05.1.0eel
Change-Id: I50d389e8bd4f6f13d4f91efaac95973b0d506ad0 Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com>
Diffstat (limited to 'MOST_UNICENS')
-rw-r--r--MOST_UNICENS/hal_most_unicens.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/MOST_UNICENS/hal_most_unicens.c b/MOST_UNICENS/hal_most_unicens.c
index d31082c..d9f297e 100644
--- a/MOST_UNICENS/hal_most_unicens.c
+++ b/MOST_UNICENS/hal_most_unicens.c
@@ -374,6 +374,22 @@ STATIC int unicens_service_init() {
/* request of initial card values */
/* unicens_request_card_values(ALSA_DEVICE_ID); */
+ json_object *apiObject;
+ wrap_json_pack(&apiObject, "{s:{s:s s:s s:s s:s s:s s:s s:i}}",
+ "metadata",
+ "api", "hal-most-unicens",
+ "uid", "/dev/snd/by-id/usb-Microchip-SMSC_OS81210_0000-0000000C-02",
+ "info", "External Hal for Unicens",
+ "author", "Tobias Janhke",
+ "version", "1.0",
+ "date", "2018-06-14",
+ "snd-dev-id", -1);
+
+ json_object *returnedJ;
+ if(afb_service_call_sync("4a-hal-manager", "load", apiObject, &returnedJ))
+ AFB_ERROR("An issue happen during registration to hal-manager : %s", json_object_get_string(returnedJ));
+
+
OnErrorExit:
AFB_NOTICE("Initializing HAL-MOST-UNICENS-BINDING done..");
return err;