summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-05-25 09:30:03 -0700
committerEric Laurent <elaurent@google.com>2010-05-25 09:30:03 -0700
commit564c30323762685cdb811e2a985ad374a691745e (patch)
treec527b6c7600587cf56b732530c596a3289620161 /include
parenteacdfdb897dcde81d71d70bacae4c85fc57b49bc (diff)
downloadhardware_libhardware_legacy-564c30323762685cdb811e2a985ad374a691745e.zip
hardware_libhardware_legacy-564c30323762685cdb811e2a985ad374a691745e.tar.gz
hardware_libhardware_legacy-564c30323762685cdb811e2a985ad374a691745e.tar.bz2
Fix issue 2641884: Bluetooth volume is dependent on in call volume.
The problem is that the code in AudioPolicyManagerBase::checkAndSetVolume() that forces voice volume to max when setting bluetooth SCO volume is not called if the bluetooth stream volume did not actually change. So even if we re apply volumes when switching to bluetooth device, the voice volume is not changed in audio HAL and remains what it was when routed to earpiece. What makes things worse on Passion is that stream volumes are limited when connected to bluetooth and their actual value does not change as soon as they exceed the limit threshold. Change-Id: Ic6c54b4a7fd54983f445de9a9b5cd2ea0025155c
Diffstat (limited to 'include')
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index f7d8ef8..d174ebe 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -270,7 +270,7 @@ protected:
nsecs_t mMusicStopTime; // time when last music stream was stopped
bool mLimitRingtoneVolume; // limit ringtone volume to music volume if headset connected
uint32_t mDeviceForStrategy[NUM_STRATEGIES];
-
+ float mLastVoiceVolume; // last voice volume value sent to audio HAL
#ifdef AUDIO_POLICY_TEST
Mutex mLock;
Condition mWaitWorkCV;