summaryrefslogtreecommitdiffstats
path: root/libaudio
diff options
context:
space:
mode:
authorDaniel Bateman <jetison.24@gmail.com>2012-03-29 22:35:47 -0500
committerPawit Pornkitprasan <p.pawit@gmail.com>2012-03-31 16:16:11 +0700
commit70e8b5b4879034b05c7e92b242f51218dc570fcb (patch)
tree7c617d7825a7c0baf273d5eb855cdf19d996137e /libaudio
parent324e0642ebebdc6e28b50cd815d7371eff0c6328 (diff)
downloaddevice_samsung_aries-common-70e8b5b4879034b05c7e92b242f51218dc570fcb.zip
device_samsung_aries-common-70e8b5b4879034b05c7e92b242f51218dc570fcb.tar.gz
device_samsung_aries-common-70e8b5b4879034b05c7e92b242f51218dc570fcb.tar.bz2
aries-common: Fix "tunnel voice" bug for Vibrant, possibly others.
Problem: During incoming calls, some users sound very echoey to the caller. Hypothesis: setCallClockSync() is being called even entering MODE_RINGTONE, when it makes sense that it should only be called when actually entering the call itself, this also supports why it doesn't happen on outgoing calls, i.e. instantly entering the call and activating the call clock sync rather than activating it at the ringtone. Solution: Restrict setCallClockSync() to only fire when prevMode != IN_CALL && mMode == IN_CALL. Change-Id: Ie6c923846e98bb8b7e42520b831dbaf7f671d4d1
Diffstat (limited to 'libaudio')
-rw-r--r--libaudio/AudioHardware.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libaudio/AudioHardware.cpp b/libaudio/AudioHardware.cpp
index ac2e65d..4064a95 100644
--- a/libaudio/AudioHardware.cpp
+++ b/libaudio/AudioHardware.cpp
@@ -387,8 +387,8 @@ status_t AudioHardware::setMode(int mode)
status = AudioHardwareBase::setMode(mode);
LOGV("setMode() : new %d, old %d", mMode, prevMode);
if (status == NO_ERROR) {
- // activate call clock in radio when entering in call or ringtone mode
- if (prevMode == AudioSystem::MODE_NORMAL)
+ // activate call clock in radio when entering in call mode
+ if (mMode == AudioSystem::MODE_IN_CALL)
{
if ((!mActivatedCP) && (mSecRilLibHandle) && (connectRILDIfRequired() == OK)) {
setCallClockSync(mRilClient, SOUND_CLOCK_START);