summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-08-19 11:25:11 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-08-19 11:48:24 +0200
commit9340d0d65822ece34aa8fd7cabac0315ae7c93c3 (patch)
tree89dfaa5c84fccfc4199c5aa8e3e1b7ec350a5b71
parent5e0ef17e8049722d70a76b93a0dc177016ac5f1c (diff)
Declare 'getCardInfo' function as public
Declare 'getCardInfo' function as public, will be needed to get information about added/removed card events. Bug-AGL: SPEC-2749 Change-Id: Ic23542a64e92fd2b3f91853a968b3feff5b76cc5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--alsa-binding/Alsa-ApiHat.h1
-rw-r--r--alsa-binding/Alsa-SetGet.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h
index 6987448..0300f3d 100644
--- a/alsa-binding/Alsa-ApiHat.h
+++ b/alsa-binding/Alsa-ApiHat.h
@@ -90,6 +90,7 @@ extern const struct afb_binding_interface *afbIface;
PUBLIC json_object *alsaCheckQuery (afb_req_t request, queryValuesT *queryValues);
// AlseCoreSetGet exports
+PUBLIC json_object *getCardInfo(int card);
PUBLIC int alsaGetSingleCtl (snd_ctl_t *ctlDev, snd_ctl_elem_id_t *elemId, ctlRequestT *ctlRequest, queryModeE queryMode);
PUBLIC void alsaGetInfo (afb_req_t request);
PUBLIC void alsaGetCtls(afb_req_t request);
diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c
index 533d2f5..e8c6563 100644
--- a/alsa-binding/Alsa-SetGet.c
+++ b/alsa-binding/Alsa-SetGet.c
@@ -614,7 +614,7 @@ STATIC int checkIfPlaybackDeviceIsCorrespondingToQuery(queryCardInfo *queryInfo,
return 1;
}
-STATIC json_object *getCardInfo(int card)
+PUBLIC json_object *getCardInfo(int card)
{
int err;