Lines Matching refs:device2

435             uint32_t device2 = AUDIO_DEVICE_NONE;  in getDeviceForStrategyInt()  local
436 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT; in getDeviceForStrategyInt()
437 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
438 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET; in getDeviceForStrategyInt()
440 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
441 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_SCO; in getDeviceForStrategyInt()
448 if (device2 != AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
449 device = device2; in getDeviceForStrategyInt()
462 if (device2 != AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
463 device |= device2; in getDeviceForStrategyInt()
504 uint32_t device2 = AUDIO_DEVICE_NONE; in getDeviceForStrategyInt() local
509 device2 = availableOutputDevices.types() & AUDIO_DEVICE_OUT_REMOTE_SUBMIX; in getDeviceForStrategyInt()
518 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
519 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_HEARING_AID; in getDeviceForStrategyInt()
521 if ((device2 == AUDIO_DEVICE_NONE) && in getDeviceForStrategyInt()
524 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP; in getDeviceForStrategyInt()
525 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
526 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES; in getDeviceForStrategyInt()
528 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
529 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER; in getDeviceForStrategyInt()
532 if ((device2 == AUDIO_DEVICE_NONE) && in getDeviceForStrategyInt()
534 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForStrategyInt()
536 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
537 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_WIRED_HEADPHONE; in getDeviceForStrategyInt()
539 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
540 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_LINE; in getDeviceForStrategyInt()
542 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
543 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_WIRED_HEADSET; in getDeviceForStrategyInt()
545 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
546 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_USB_HEADSET; in getDeviceForStrategyInt()
548 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
549 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_USB_ACCESSORY; in getDeviceForStrategyInt()
551 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
552 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_USB_DEVICE; in getDeviceForStrategyInt()
554 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
555 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET; in getDeviceForStrategyInt()
557 if ((device2 == AUDIO_DEVICE_NONE) && (strategy != STRATEGY_SONIFICATION)) { in getDeviceForStrategyInt()
559 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_AUX_DIGITAL; in getDeviceForStrategyInt()
561 if ((device2 == AUDIO_DEVICE_NONE) && in getDeviceForStrategyInt()
563 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET; in getDeviceForStrategyInt()
565 if (device2 == AUDIO_DEVICE_NONE) { in getDeviceForStrategyInt()
566 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForStrategyInt()
576 device2 |= device3; in getDeviceForStrategyInt()
579 device |= device2; in getDeviceForStrategyInt()