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