diff options
author | Zhihai Xu <zhihaixu@google.com> | 2014-01-10 16:44:39 -0800 |
---|---|---|
committer | Zhihai Xu <zhihaixu@google.com> | 2014-03-12 16:08:31 -0700 |
commit | 7fb580ea4ddbf3d406610485fd7e5fbf25cdef21 (patch) | |
tree | 7775457db755c936eef96d4ead1772f203f5f64d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 1327e59f36ceea5a1ee7dc66b311206345353de5 (diff) |
DO NOT MERGE 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: I4160588e92ee384e21a75d63036d8bd6ccb30621
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions