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

Commit 1f08556b authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "audio policy: add back use of A2DP for phone strategy" into sc-dev

parents dbc57a71 c0697594
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -261,12 +261,8 @@ DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy,
    case STRATEGY_PHONE: {
    case STRATEGY_PHONE: {
        devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_HEARING_AID);
        devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_HEARING_AID);
        if (!devices.isEmpty()) break;
        if (!devices.isEmpty()) break;
        devices = availableOutputDevices.getFirstDevicesFromTypes({
        devices = availableOutputDevices.getFirstDevicesFromTypes(
                                                                  AUDIO_DEVICE_OUT_WIRED_HEADPHONE,
                                          getLastRemovableMediaDevices());
                                                                  AUDIO_DEVICE_OUT_WIRED_HEADSET,
                                                                  AUDIO_DEVICE_OUT_LINE,
                                                                  AUDIO_DEVICE_OUT_USB_HEADSET,
                                                                  AUDIO_DEVICE_OUT_USB_DEVICE});
        if (!devices.isEmpty()) break;
        if (!devices.isEmpty()) break;
        devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_EARPIECE);
        devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_EARPIECE);
    } break;
    } break;