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

Commit e81d3dae authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

audio policy: fix VoIP audio switching from BT SCO to earpiece am: 97cec6f8 am: c526408f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/14663303

Change-Id: I9add45e01e9b5ff5b1c9619dbeb320891c7d5f73
parents eb49f726 c526408f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -187,8 +187,10 @@ void Engine::filterOutputDevicesForStrategy(legacy_strategy strategy,
                availableOutputDevices = availPrimaryOutputDevices;
            }

        }
        // Do not use A2DP devices when in call but use them when not in call
        // (e.g for voice mail playback)
        if (isInCall()) {
            availableOutputDevices.remove(availableOutputDevices.getDevicesFromTypes({
                    AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES,
                    AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER, }));