q6fsm:add protect for fs1815 algo

fs1815 algo need acdb include fsm module.
if some scene acdb not fsm module, and afe call fsm algo,
will casue adsp block and error.
add protect for fs1815 algo.

Change-Id: Ib4b77e85443049afc42cb4285d2ea79dce94a380
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2720691
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
liaohj 2023-08-25 14:01:03 +08:00 • committed by panyq6
commit 829cbb1de6

View file

@ -262,6 +262,10 @@ bool q6fsm_get_rx_status(void)
uint32_t enable;
int ret;
if(fsm_scene_status == false){
return -EINVAL;
}
if (!q6fsm_check_dsp_ready()) {
fsm_info("DSP not ready yet!");
return -EINVAL;
@ -290,6 +294,9 @@ int q6fsm_set_rx_enable(int enable)
uint32_t param;
int ret;
if(fsm_scene_status == false){
return -EINVAL;
}
if (!q6fsm_check_dsp_ready()) {
fsm_info("DSP not ready yet!");