Pass old and new volume to CEC without rounding up

Unnecessary rounding up was causing volume change requests
not to be converted to CEC commands occasionally. Removed
the operation.

Bug: 19332158
Change-Id: Ia074722058ada55d46f38aea7a2b915bb5fd2a00
This commit is contained in:
Jinsuk Kim
2015-02-16 16:47:38 +09:00
parent fadb0879d9
commit 7a9ba420f4

View File

@@ -1182,8 +1182,7 @@ public class AudioService extends IAudioService.Stub {
synchronized (mHdmiTvClient) {
final long token = Binder.clearCallingIdentity();
try {
mHdmiTvClient.setSystemAudioVolume(
(oldVolume + 5) / 10, (newVolume + 5) / 10, maxVolume);
mHdmiTvClient.setSystemAudioVolume(oldVolume, newVolume, maxVolume);
} finally {
Binder.restoreCallingIdentity(token);
}