From: Usaamah Patel Date: Tue, 19 Dec 2017 15:42:38 +0000 (+0000) Subject: audio: run ril_set_call_clock_sync() in stop_voice_session() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=801c4faa411f5260a94d585b1f04dfad5a3bf926;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git audio: run ril_set_call_clock_sync() in stop_voice_session() Some devices like the Samsung Galaxy S6, require this to be run at the end of the voice session. However some devices also need this to be run at the start of the voice session whereas the S6 does not (see previous commit). Change-Id: I833b57e262795fcbd8be6f44afb17b0f1ca6fee3 Signed-off-by: Usaamah Patel --- diff --git a/audio/voice.c b/audio/voice.c index a2f4014..9b56d31 100644 --- a/audio/voice.c +++ b/audio/voice.c @@ -269,8 +269,6 @@ int start_voice_session(struct voice_session *session) ril_set_two_mic_control(&session->ril, AUDIENCE, TWO_MIC_SOLUTION_OFF); } - ril_set_call_clock_sync(&session->ril, SOUND_CLOCK_START); - return 0; } @@ -282,6 +280,8 @@ void stop_voice_session(struct voice_session *session) { int status = 0; + ril_set_call_clock_sync(&session->ril, SOUND_CLOCK_STOP); + ALOGV("%s: Closing active PCMs", __func__); if (session->pcm_voice_rx != NULL) {