diff options
author | Jasmine Cha <chajasmine@google.com> | 2019-08-23 10:35:30 +0800 |
---|---|---|
committer | Jasmine Cha <chajasmine@google.com> | 2019-09-09 10:48:01 +0000 |
commit | 6a2529dc7b2a35778144a64fcf897601f4f1b9c1 (patch) | |
tree | 2b1ecf6d102c02640a2ee74bcfbe61ca41e3f4be | |
parent | c7fcc7ddf1215a3587175d5028423d562c8fd1ee (diff) | |
download | android_hardware_knowles_athletico_sound_trigger_hal-6a2529dc7b2a35778144a64fcf897601f4f1b9c1.tar.gz android_hardware_knowles_athletico_sound_trigger_hal-6a2529dc7b2a35778144a64fcf897601f4f1b9c1.tar.bz2 android_hardware_knowles_athletico_sound_trigger_hal-6a2529dc7b2a35778144a64fcf897601f4f1b9c1.zip |
sthal: return right state to ST framework in incall mode
- SoundTrigger isn’t able to enable during voice/voip call.
All request from soundtrigger framework will be saved into
recover list, and all models will be resumed after ending call.
- According to this sequence, soundtrigger hal shouldn’t return -EAGAIN
when ST framework try to start/stop sound model during voice/voip
call.
Bug: 140710474
Test: soundtrigger function after killing audioserver and ending voice/voip call.
Change-Id: I27ec61d9b27bc9382848267187a85a35f43a4ef5
Signed-off-by: Jasmine Cha <chajasmine@google.com>
-rw-r--r-- | sound_trigger_hw_iaxxx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound_trigger_hw_iaxxx.c b/sound_trigger_hw_iaxxx.c index 61712dd..d9ec626 100644 --- a/sound_trigger_hw_iaxxx.c +++ b/sound_trigger_hw_iaxxx.c @@ -2523,7 +2523,6 @@ static int stop_recognition(struct knowles_sound_trigger_device *stdev, } if (can_update_recover_list(stdev) == true) { update_recover_list(stdev, handle, false); - status = -EAGAIN; goto exit; } @@ -2928,7 +2927,6 @@ static int stdev_start_recognition( // Device is in voice/VoIP call, add model to recover list first // recover model once voice/VoIP is ended. update_recover_list(stdev, handle, true); - status = -EAGAIN; goto exit; } |