Lines Matching refs:devices
672 out_device = voip_usecase->stream.out->devices; in enable_audio_route()
675 out_device = adev->primary_output->devices; in enable_audio_route()
680 out_device = uinfo->stream.out->devices; in enable_audio_route()
1084 audio_devices_t a1 = uc->stream.out->devices; in derive_playback_snd_device()
1085 audio_devices_t a2 = new_uc->stream.out->devices; in derive_playback_snd_device()
1173 (usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND || in check_and_route_playback_usecases()
1174 usecase->devices & (AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_USB_HEADSET)) && in check_and_route_playback_usecases()
1246 usecase->devices == AUDIO_DEVICE_IN_VOICE_CALL) || in check_and_route_capture_usecases()
1492 if ((usecase->stream.out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) && in force_device_switch()
1618 usecase->stream.out->devices); in select_devices_with_force_switch()
1621 usecase->stream.out->devices); in select_devices_with_force_switch()
1622 usecase->devices = usecase->stream.out->devices; in select_devices_with_force_switch()
1635 ((vc_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) || in select_devices_with_force_switch()
1636 (vc_usecase->devices == AUDIO_DEVICE_OUT_HEARING_AID) || in select_devices_with_force_switch()
1637 (usecase->devices == AUDIO_DEVICE_IN_VOICE_CALL))) { in select_devices_with_force_switch()
1644 if (hfp_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) { in select_devices_with_force_switch()
1650 usecase->devices = usecase->stream.out->devices; in select_devices_with_force_switch()
1657 usecase->stream.out->devices); in select_devices_with_force_switch()
1667 usecase->devices = usecase->stream.in->device; in select_devices_with_force_switch()
1683 out_device = voip_usecase->stream.out->devices; in select_devices_with_force_switch()
1686 out_device = adev->primary_output->devices; in select_devices_with_force_switch()
1804 if ((usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) || in select_devices_with_force_switch()
1805 (usecase->devices & (AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_USB_HEADSET)) || in select_devices_with_force_switch()
1806 (usecase->devices & AUDIO_DEVICE_OUT_ALL_A2DP)) in select_devices_with_force_switch()
1940 uc_info->devices = in->device; in start_input_stream()
2201 if (usecase->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) { in allow_hdmi_channel_config()
2250 usecase->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) { in check_and_set_hdmi_channels()
2262 usecase->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) { in check_and_set_hdmi_channels()
2287 (audio_is_usb_out_device(usecase->devices & AUDIO_DEVICE_OUT_ALL_USB))) { in check_and_set_usb_service_interval()
2359 if (out->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) in stop_output_stream()
2361 else if (audio_is_usb_out_device(out->devices & AUDIO_DEVICE_OUT_ALL_USB)) { in stop_output_stream()
2375 out->devices & AUDIO_DEVICE_OUT_SPEAKER_SAFE) { in stop_output_stream()
2442 out->devices); in start_output_stream()
2461 if (out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) { in start_output_stream()
2463 if (out->devices & (AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_SPEAKER_SAFE)) { in start_output_stream()
2486 uc_info->devices = out->devices; in start_output_stream()
2491 if (out->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) in start_output_stream()
2493 else if (audio_is_usb_out_device(out->devices & AUDIO_DEVICE_OUT_ALL_USB)) { in start_output_stream()
2504 if ((out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) && in start_output_stream()
2509 audio_devices_t dev = out->devices; in start_output_stream()
2511 out->devices = AUDIO_DEVICE_OUT_SPEAKER_SAFE; in start_output_stream()
2513 out->devices = AUDIO_DEVICE_OUT_SPEAKER; in start_output_stream()
2515 out->devices = dev; in start_output_stream()
2986 audio_is_usb_out_device(out->devices)) { in out_set_parameters()
3003 if (out->devices == AUDIO_DEVICE_OUT_AUX_DIGITAL && in out_set_parameters()
3015 if ((out->devices & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP) && in out_set_parameters()
3037 out->devices = val; in out_set_parameters()
3080 bool same_dev = out->devices == new_dev; in out_set_parameters()
3081 out->devices = new_dev; in out_set_parameters()
3108 out->devices = AUDIO_DEVICE_OUT_SPEAKER_SAFE; in out_set_parameters()
3110 out->devices = AUDIO_DEVICE_OUT_SPEAKER; in out_set_parameters()
3112 out->devices = new_dev; in out_set_parameters()
3124 (!(out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) || audio_extn_a2dp_is_ready())) { in out_set_parameters()
3295 if (AUDIO_DEVICE_OUT_ALL_A2DP & out->devices) in out_get_latency()
3436 if ((out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) && in out_write()
3438 if (!(out->devices & (AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_SPEAKER_SAFE))) { in out_write()
3732 if (AUDIO_DEVICE_OUT_ALL_A2DP & out->devices) { in out_get_presentation_position()
3776 if (AUDIO_DEVICE_OUT_ALL_A2DP & out->devices) { in out_get_presentation_position()
4899 adev->voice_tx_output->devices = device; in in_update_sink_metadata()
4920 audio_devices_t devices, in adev_open_output_stream() argument
4929 bool is_hdmi = devices & AUDIO_DEVICE_OUT_AUX_DIGITAL; in adev_open_output_stream()
4930 bool is_usb_dev = audio_is_usb_out_device(devices) && in adev_open_output_stream()
4931 (devices != AUDIO_DEVICE_OUT_USB_ACCESSORY); in adev_open_output_stream()
4940 __func__, config->format, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
4947 if (devices == AUDIO_DEVICE_NONE) in adev_open_output_stream()
4948 devices = AUDIO_DEVICE_OUT_SPEAKER; in adev_open_output_stream()
4951 out->devices = devices; in adev_open_output_stream()
5134 } else if (out->devices == AUDIO_DEVICE_OUT_TELEPHONY_TX) { in adev_open_output_stream()
5617 (usecase->devices & AUDIO_DEVICE_OUT_ALL_A2DP)) { in adev_set_parameters()
5803 audio_devices_t devices, in adev_input_allow_hifi_record() argument
5808 if (!audio_is_usb_in_device(devices)) in adev_input_allow_hifi_record()
5840 audio_devices_t devices, in adev_open_input_stream() argument
5852 bool is_usb_dev = audio_is_usb_in_device(devices); in adev_open_input_stream()
5854 devices, in adev_open_input_stream()
5911 in->device = devices; in adev_open_input_stream()
6248 out.devices = audio_device; /* only field needed in select_devices */ in adev_verify_devices()
6250 uc_info.devices = audio_device; in adev_verify_devices()
6366 audio_devices_t devices; in check_a2dp_restore_l() local
6380 if ((out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) && in check_a2dp_restore_l()
6399 devices = out->devices; in check_a2dp_restore_l()
6400 out->devices = AUDIO_DEVICE_OUT_SPEAKER; in check_a2dp_restore_l()
6410 out->devices = devices; in check_a2dp_restore_l()