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

Commit db54436b authored by Vicky Sehrawat's avatar Vicky Sehrawat Committed by Steve Kondik
Browse files

audio: Fix to enable USB volume during music playback

- The USB device had been added to the mFixedVolumeDevices
  because of which volume change was disabled for music
  stream
- Fixed by removing the USB device from the
  mFixedVolumeDevices.

Change-Id: I82b1876d152030ddcfe9ffc31924b6abe4b2509a
CRs-fixed: 439858
(cherry picked from commit b7ed482f7654d5657fb7497a95cc007229478886)
(cherry picked from commit ae67047a3f95ddde2565a76c44254ad714d3109d)
parent 2bdc1b87
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -435,7 +435,6 @@ public class AudioService extends IAudioService.Stub {
    // Devices for which the volume is fixed and VolumePanel slider should be disabled
    final int mFixedVolumeDevices = AudioSystem.DEVICE_OUT_AUX_DIGITAL |
            AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET |
            AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET |
            AudioSystem.DEVICE_OUT_ALL_USB |
            AudioSystem.DEVICE_OUT_PROXY; // use fixed volume on proxy device(WiFi display)