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

Commit 6646983a authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9556973 from ff8e6031 to tm-qpr3-release

Change-Id: I99a0f1a292d28d565d683d7a4d8fffa18f08f628
parents e4692de5 ff8e6031
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -291,7 +291,9 @@ DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy,

        if ((strategy == STRATEGY_SONIFICATION) ||
                (getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_SYSTEM_ENFORCED)) {
            devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER);
            // favor dock over speaker when available
            devices = availableOutputDevices.getFirstDevicesFromTypes({
                    AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET, AUDIO_DEVICE_OUT_SPEAKER});
        }

        // if SCO headset is connected and we are told to use it, play ringtone over