Loading services/audiopolicy/enginedefault/src/Engine.cpp +2 −6 Original line number Original line Diff line number Diff line Loading @@ -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; Loading Loading
services/audiopolicy/enginedefault/src/Engine.cpp +2 −6 Original line number Original line Diff line number Diff line Loading @@ -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; Loading