aboutsummaryrefslogtreecommitdiffstats
path: root/Alsa-afb
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-18 01:09:56 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-18 01:09:56 +0200
commita7d41a6fa1e29d800ce8ac9e95e8f943814463e8 (patch)
tree30ca09383f1ce30df559601328e1714f67afc8fc /Alsa-afb
parent5e919fde0a4c66b0203c46b8f06f303fcceaedde (diff)
Integration with Alsa HookPlugin is now working.
Diffstat (limited to 'Alsa-afb')
-rw-r--r--Alsa-afb/Alsa-ApiHat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alsa-afb/Alsa-ApiHat.c b/Alsa-afb/Alsa-ApiHat.c
index 1e9f5ad..a8663ca 100644
--- a/Alsa-afb/Alsa-ApiHat.c
+++ b/Alsa-afb/Alsa-ApiHat.c
@@ -31,7 +31,7 @@
#include "Alsa-ApiHat.h"
STATIC int AlsaInit(void) {
- int rc= prctl(PR_SET_NAME, "afb-audio-agent\0",NULL,NULL,NULL);
+ int rc= prctl(PR_SET_NAME, "afb-audio-agent",NULL,NULL,NULL);
if (rc) AFB_ERROR("ERROR: AlsaCore fail to rename process");
return rc;
@@ -62,8 +62,8 @@ static const struct afb_verb_v2 api_verbs[] = {
/*
* description of the binding for afb-daemon
*/
-const struct afb_binding_v2 afbBindingV2 = {
+const afb_binding_v2 afbBindingV2 = {
.api = "alsacore",
.verbs = api_verbs,
- .init = AlsaInit,
+ .preinit = AlsaInit,
};