diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-12-17 19:41:41 +0100 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-12-20 11:10:17 +0100 |
commit | a48048548e85244a66e830523ebcbeb7f709ad60 (patch) | |
tree | 36193cfe797df0967e551cc8adc18a18fe96ae03 /4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h | |
parent | ecb03929df1b66e0d41771e49f3f810d4bcdffba (diff) |
Rework calls to mixer streams
When using 'playback'/'capture' verbs, call all associated controls.
When at least one stream has been created by the mixer, a verb called
'all-streams' is added to transfer a request to all the streams.
Bug-AGL: SPEC-1313
Change-Id: Ie574e2ef0dcae8abbd45523b49093ec2ed1413cf
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h')
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h index 488b6f1..f1766ae 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h @@ -24,6 +24,14 @@ #include <ctl-config.h> +// Enum for the type of action on mixer +enum ActionOnMixerType { + ACTION_ON_MIXER_STREAM = 1, + ACTION_ON_MIXER_PLAYBACK = 2, + ACTION_ON_MIXER_CAPTURE = 3, + ACTION_ON_MIXER_ALL_STREAM = 4 +}; + // HAL controller event handler function void HalCtlsDispatchApiEvent(AFB_ApiT apiHandle, const char *evtLabel, json_object *eventJ); @@ -32,7 +40,10 @@ int HalCtlsHalMixerConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object int HalCtlsHalMapConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *StreamControlsJ); // HAL controllers verbs functions -void HalCtlsActionOnCall(AFB_ReqT request); +void HalCtlsActionOnStream(AFB_ReqT request); +void HalCtlsActionOnPlayback(AFB_ReqT request); +void HalCtlsActionOnCapture(AFB_ReqT request); +void HalCtlsActionOnAllStream(AFB_ReqT request); void HalCtlsInfo(AFB_ReqT request); #endif /* _HALMGR_CB_INCLUDE_ */
\ No newline at end of file |