From 7a9ba420f440319ca6c31d554c2273f81f10b16f Mon Sep 17 00:00:00 2001 From: Jinsuk Kim Date: Mon, 16 Feb 2015 16:47:38 +0900 Subject: [PATCH] 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 --- services/core/java/com/android/server/audio/AudioService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index 02c8cce643b12..afe7d7a157300 100644 --- a/services/core/java/com/android/server/audio/AudioService.java +++ b/services/core/java/com/android/server/audio/AudioService.java @@ -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); }