Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cffbc4f authored by Yamit Mehta's avatar Yamit Mehta Committed by Steve Kondik
Browse files

audio: Fix for volume level mismatch for AVRCP headset

-The volume level sent to AVRCP module from AudioService
 is incorrect.
-The volume level need to scale down for AVRCP module.
-Divide volume level by 10 to match AVRCP module volume
 levels.

Change-Id: Ieb8146797d0b552311b1a4782c45aea1be73e492
CRs-Fixed: 561649
parent 7900e166
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1078,7 +1078,7 @@ public class AudioService extends IAudioService.Stub {
                (flags & AudioManager.FLAG_BLUETOOTH_ABS_VOLUME) == 0) {
                synchronized (mA2dpAvrcpLock) {
                    if (mA2dp != null && mAvrcpAbsVolSupported) {
                        mA2dp.setAvrcpAbsoluteVolume(index);
                        mA2dp.setAvrcpAbsoluteVolume(index / 10);
                    }
                }
            }