diff options
author | Xin Li <delphij@google.com> | 2021-02-21 09:25:07 -0800 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2021-02-21 09:25:07 -0800 |
commit | d38016f885769a031ec180c9e05dc661760a6417 (patch) | |
tree | 3db04822df3ee2da5dac8ab12fcae741a299f3da | |
parent | 0f952d832cb2a3efc8e535ded6c621b9ffbe3dfd (diff) | |
parent | 716f26458d5b3fdf8c4789c9132385589c4696f2 (diff) | |
download | sound_trigger_hal-d38016f885769a031ec180c9e05dc661760a6417.tar.gz |
Merge ab/7061308 into stage.temp_RQ2A.210305.007
Bug: 180401296
Merged-In: Iddfc1d7b0f3fbc45f1ccaa6d6d3e075adca93864
Change-Id: I0bcb339f01c664e59e258daf901460523b84c468
-rw-r--r-- | sound_trigger_hw_iaxxx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound_trigger_hw_iaxxx.c b/sound_trigger_hw_iaxxx.c index fbbfa79..e3d34ff 100644 --- a/sound_trigger_hw_iaxxx.c +++ b/sound_trigger_hw_iaxxx.c @@ -2632,6 +2632,10 @@ static int stop_recognition(struct knowles_sound_trigger_device *stdev, model->is_active = false; goto exit; } + if (model->is_active == false) { + ALOGW("%s: the model was disabled already", __func__); + goto exit; + } if (stdev->adnc_strm_handle[handle] != 0) { ALOGD("%s: stop tunnling for index:%d", __func__, handle); |