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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user