summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUsaamah Patel <ussyp2015@gmail.com>2017-12-19 15:42:38 +0000
committerJan Altensen <info@stricted.net>2019-02-05 20:11:25 +0100
commitb8250d0f58d6356f66f4ea812f388f64a81e97c0 (patch)
treea7f757974f221f43a646ef894259ae61c78390c7
parentf1a3539e2d24990886f47dfb3b6076c96b8f8a8c (diff)
downloadandroid_hardware_samsung-b8250d0f58d6356f66f4ea812f388f64a81e97c0.tar.gz
android_hardware_samsung-b8250d0f58d6356f66f4ea812f388f64a81e97c0.tar.bz2
android_hardware_samsung-b8250d0f58d6356f66f4ea812f388f64a81e97c0.zip
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 <ussyp2015@gmail.com>
-rw-r--r--audio/voice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/voice.c b/audio/voice.c
index d058359..5b5adf6 100644
--- a/audio/voice.c
+++ b/audio/voice.c
@@ -294,8 +294,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;
}
@@ -307,6 +305,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) {