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

Commit 9632d33e authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am cd71a69d: audio: Force audio to Speaker if requested during VOIP call

* commit 'cd71a69d':
  audio: Force audio to Speaker if requested during VOIP call
parents 7ebc1670 cd71a69d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4566,7 +4566,7 @@ audio_devices_t AudioPolicyManager::getDeviceForStrategy(routing_strategy strate
                device = availableOutputDeviceTypes & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER;
                if (device) break;
            }
            if (mPhoneState != AUDIO_MODE_IN_CALL) {
            if (!isInCall()) {
                device = availableOutputDeviceTypes & AUDIO_DEVICE_OUT_USB_ACCESSORY;
                if (device) break;
                device = availableOutputDeviceTypes & AUDIO_DEVICE_OUT_USB_DEVICE;