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

Commit c0152625 authored by Yamit Mehta's avatar Yamit Mehta
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 bd4d4e09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1019,7 +1019,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);
                    }
                }
            }