diff options
| author | 2014-01-10 16:44:39 -0800 | |
|---|---|---|
| committer | 2014-01-10 16:44:39 -0800 | |
| commit | 2f4a2b139b4c1dde7be1d14333ad02553734c528 (patch) | |
| tree | 68f751efb5586a6a2d1cc9237d678a353a0a6bcc /libs/hwui/ProgramCache.cpp | |
| parent | 7acec30ac7d5b2fba11757a2d2e3ad351be23441 (diff) | |
setAvrcpAbsoluteVolume is passed wrong unit parameter from AudioManager
setAvrcpAbsoluteVolume is passed wrong unit parameter from AudioManager.
It cause maximize volume in Bluetooth speaker/device.
The volume expected by Bluetooth Avrcp should be from 0 to 15.
But the current volume parameter passed to Bluetooth Avrcp is from 0 to 150.
It is scaled by 10 times than the correct volume.
index = rescaleIndex(index * 10, streamType, streamTypeAlias);
Should divide the volume by 10 before pass to Bluetooth Avrcp.
bug:12495379
Change-Id: I0432f83ca4a0c134244d96b2eea14d7168e9a9ff
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions