From 960937993b917aa767fbef7c579c2cb6c891d166 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Wed, 20 Jan 2021 12:17:44 -0800 Subject: [PATCH] AudioService: correct BT A2DP abs volume curve for low levels When BT A2DP absolute volume is used, media volume steps 1,2,3 are controlled by the framework. This change makes step 1 more useable by making it slightly louder, and decreases the volume change step for 2 and 3. Bug: 176463546 Test: use A2DP device with abs vol, and change media vol to 1/2/3 Change-Id: I109ed63ec8acdee30c90eaeb6778e578e3398526 --- .../core/java/com/android/server/audio/AudioService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index 7115c9ad5a05f..aa8a6514c8672 100644 --- a/services/core/java/com/android/server/audio/AudioService.java +++ b/services/core/java/com/android/server/audio/AudioService.java @@ -572,9 +572,9 @@ public class AudioService extends IAudioService.Stub // Pre-scale for Bluetooth Absolute Volume private float[] mPrescaleAbsoluteVolume = new float[] { - 0.5f, // Pre-scale for index 1 - 0.7f, // Pre-scale for index 2 - 0.85f, // Pre-scale for index 3 + 0.6f, // Pre-scale for index 1 + 0.8f, // Pre-scale for index 2 + 0.9f, // Pre-scale for index 3 }; private NotificationManager mNm;