From 6a2529dc7b2a35778144a64fcf897601f4f1b9c1 Mon Sep 17 00:00:00 2001 From: Jasmine Cha Date: Fri, 23 Aug 2019 10:35:30 +0800 Subject: sthal: return right state to ST framework in incall mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- sound_trigger_hw_iaxxx.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sound_trigger_hw_iaxxx.c') 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; } -- cgit v1.2.3