mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
1a5de603e9
commit
829cbb1de6
1 changed files with 7 additions and 0 deletions
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue