From 7b20b115c4ec4b9c157d19d5154453f5c751a5d6 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Thu, 19 Jul 2018 17:22:00 +0200 Subject: Use some app-fwk macros to support v2 and v3 Use some application framework macros to support both v2 and v3 compilation. Change-Id: I3051bbeff8788ea2c71545e5d253619d4749ff41 Signed-off-by: Jonathan Aillet --- alsa-binding/Alsa-Ucm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'alsa-binding/Alsa-Ucm.c') diff --git a/alsa-binding/Alsa-Ucm.c b/alsa-binding/Alsa-Ucm.c index 0c65f2c..3e0687c 100644 --- a/alsa-binding/Alsa-Ucm.c +++ b/alsa-binding/Alsa-Ucm.c @@ -51,7 +51,7 @@ static ucmHandleT ucmHandles[MAX_SND_CARD]; // Cache opened UCM handles -STATIC int alsaUseCaseOpen(struct afb_req request, queryValuesT *queryValues, int allowNewMgr) { +STATIC int alsaUseCaseOpen(afb_req_t request, queryValuesT *queryValues, int allowNewMgr) { snd_ctl_t *ctlDev=NULL; snd_ctl_card_info_t *cardinfo; snd_use_case_mgr_t *ucmHandle; @@ -110,7 +110,7 @@ OnErrorExit: return -1; } -PUBLIC void alsaUseCaseQuery(struct afb_req request) { +PUBLIC void alsaUseCaseQuery(afb_req_t request) { int verbCount, ucmIdx; const char **verbList; snd_use_case_mgr_t *ucmHandle; @@ -233,7 +233,7 @@ OnErrorExit: return (NULL); } -PUBLIC void alsaUseCaseGet(struct afb_req request) { +PUBLIC void alsaUseCaseGet(afb_req_t request) { int ucmIdx, labelCount; queryValuesT queryValues; json_object *jResponse = json_object_new_object(); @@ -318,7 +318,7 @@ OnErrorExit: return; } -PUBLIC void alsaUseCaseSet(struct afb_req request) { +PUBLIC void alsaUseCaseSet(afb_req_t request) { int err, ucmIdx; queryValuesT queryValues; json_object *jResponse = json_object_new_object(); @@ -383,7 +383,7 @@ OnErrorExit: return; } -PUBLIC void alsaUseCaseReset(struct afb_req request) { +PUBLIC void alsaUseCaseReset(afb_req_t request) { int err, ucmIdx; queryValuesT queryValues; @@ -405,7 +405,7 @@ OnErrorExit: return; } -PUBLIC void alsaUseCaseClose(struct afb_req request) { +PUBLIC void alsaUseCaseClose(afb_req_t request) { int err, ucmIdx; queryValuesT queryValues; -- cgit 1.2.3-korg