summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Kim <dojip.kim@lge.com>2013-01-07 09:36:11 -0800
committerIliyan Malchev <malchev@google.com>2013-01-08 17:13:36 -0800
commite365ed0cb095eed5fbc6a86c21642113e2c24f21 (patch)
treef7d2a206b03920b6c819925f52a99afd80a2b9ab
parent1c9f3b09a8fcdf65be0bdfa6cb832e6d2ec82fd3 (diff)
downloadaudio-jb-mr1.1-release.tar.gz
mm-audio: Change delay value when setting device in call modeandroid-cts-4.2_r2android-4.2.2_r1.2android-4.2.2_r1.1android-4.2.2_r1jb-mr1.1-release
commit 6ae807 (mm-audio: Fix delay at the start of MT voice call) has an issue. That setting value is too aggressive, RINGTONE buffer is remained and routed to connected device in call mode. Add 40ms delay for playing ringtone. This patch will increase about 40ms for call connection time. Bug:7946399 Change-Id: I98da5c515b5ba03b413818a8124c213d591c7bc3
-rw-r--r--alsa_sound/AudioPolicyManagerALSA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsa_sound/AudioPolicyManagerALSA.cpp b/alsa_sound/AudioPolicyManagerALSA.cpp
index 3932a8c..93c9b01 100644
--- a/alsa_sound/AudioPolicyManagerALSA.cpp
+++ b/alsa_sound/AudioPolicyManagerALSA.cpp
@@ -137,7 +137,7 @@ void AudioPolicyManager::setPhoneState(int state) {
// voice call has enough delay to make sure the ringtone audio completely
// played out
if (state == AudioSystem::MODE_IN_CALL && oldState == AudioSystem::MODE_RINGTONE) {
- delayMs = 0;
+ delayMs = 40;
}
// change routing is necessary