From 0f6d2131882e05e230f648626b81586c052b4da0 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sat, 9 Jun 2018 00:30:40 +0200 Subject: Move mixer attach at hal startup Move mixer attach at hal startup instead of making attachment possible only with a verb. Now, if the hal audio device is detected at startup, it will automatically be attached to the mixer. As it is useless now, the verb used to attach mixer has been deleted. Change-Id: I32c8b829ac37fb31ede4fe8830a6f2a699c0835c Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h') diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h index 09e0dc7..74bca88 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h @@ -22,8 +22,12 @@ #include +#include "afb-helpers-utils.h" + #include "../4a-hal-utilities/4a-hal-utilities-data.h" +#define MIXER_ATTACH_VERB "create" + // Enum for the type of error detected enum MixerStatus { MIXER_NO_ERROR=0, @@ -34,7 +38,7 @@ enum MixerStatus { MIXER_ERROR_COULDNT_ADD_STREAMS_AS_VERB =-100000, }; -// HAL controllers handle mixer response function -int HalCtlsHandleMixerAttachResponse(AFB_ReqT request, struct CtlHalStreamsDataT *currentHalStreamsData, json_object *MixerResponseJ); +// HAL controllers handle mixer calls functions +int HalCtlsAttachToMixer(AFB_ApiT apiHandle); #endif /* _HAL_CTLS_SOFTMIXER_LINK_INCLUDE_ */ \ No newline at end of file -- cgit 1.2.3-korg