Lines Matching defs:device2
428 uint32_t device2 = AUDIO_DEVICE_NONE;
429 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT;
430 if (device2 == AUDIO_DEVICE_NONE) {
431 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET;
433 if (device2 == AUDIO_DEVICE_NONE) {
434 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_SCO;
437 if (device2 != AUDIO_DEVICE_NONE) {
438 device |= device2;
476 uint32_t device2 = AUDIO_DEVICE_NONE;
481 device2 = availableOutputDevices.types() & AUDIO_DEVICE_OUT_REMOTE_SUBMIX;
489 if ((device2 == AUDIO_DEVICE_NONE) &&
492 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP;
493 if (device2 == AUDIO_DEVICE_NONE) {
494 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES;
496 if (device2 == AUDIO_DEVICE_NONE) {
497 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER;
500 if ((device2 == AUDIO_DEVICE_NONE) &&
502 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER;
504 if (device2 == AUDIO_DEVICE_NONE) {
505 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_WIRED_HEADPHONE;
507 if (device2 == AUDIO_DEVICE_NONE) {
508 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_LINE;
510 if (device2 == AUDIO_DEVICE_NONE) {
511 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_WIRED_HEADSET;
513 if (device2 == AUDIO_DEVICE_NONE) {
514 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_USB_HEADSET;
516 if (device2 == AUDIO_DEVICE_NONE) {
517 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_USB_ACCESSORY;
519 if (device2 == AUDIO_DEVICE_NONE) {
520 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_USB_DEVICE;
522 if (device2 == AUDIO_DEVICE_NONE) {
523 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET;
525 if ((device2 == AUDIO_DEVICE_NONE) && (strategy != STRATEGY_SONIFICATION)) {
527 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_AUX_DIGITAL;
529 if ((device2 == AUDIO_DEVICE_NONE) &&
531 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET;
533 if (device2 == AUDIO_DEVICE_NONE) {
534 device2 = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER;
544 device2 |= device3;
547 device |= device2;