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

Unverified Commit 971c6f14 authored by Vachounet's avatar Vachounet Committed by Michael Bestas
Browse files

AudioService: Remove Analog Dock from fixed-volume devices

* Many devices identifying as "Analog Docks" have not built in volume controls
  and rely on software volume (See: All Motorola Mods, older 3.5mm docks,
  etc.)

Change-Id: Ie9b97c7b17b882a5d804db398d149bd777ccf5a4
(cherry picked from commit 24ce6c3e)
(cherry picked from commit a6eff9c9)
parent 2225f011
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -594,7 +594,6 @@ public class AudioService extends IAudioService.Stub
    // Devices for which the volume is fixed (volume is either max or muted)
    Set<Integer> mFixedVolumeDevices = new HashSet<>(Arrays.asList(
            AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET,
            AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET,
            AudioSystem.DEVICE_OUT_HDMI_ARC,
            AudioSystem.DEVICE_OUT_HDMI_EARC,
            AudioSystem.DEVICE_OUT_AUX_LINE));