OSDN Git Service

Fix issue 2641884: Bluetooth volume is dependent on in call volume.
authorEric Laurent <elaurent@google.com>
Wed, 1 Dec 2010 22:15:21 +0000 (14:15 -0800)
committerEric Laurent <elaurent@google.com>
Wed, 1 Dec 2010 22:17:05 +0000 (14:17 -0800)
commit831ad5246fcfcd3c91e02c079a0aee997c895ddf
treec31db21e38497553e97f5bb7db050ef0621aee1c
parent2f2db765228f110b37a2851d1199d3c72d313c6d
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: Ieb72a71e06e9b3079cc8bc76c78ce83e060a2ea2
include/hardware_legacy/AudioPolicyManagerBase.h