Lines Matching defs:devices
429 * because of the limitation that both the devices cannot be enabled
442 usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND &&
469 specified usecase to new snd devices */
499 * because of the limitation that two devices cannot be enabled
536 specified usecase to new snd devices */
626 usecase->stream.out->devices);
627 in_snd_device = platform_get_input_snd_device(adev->platform, usecase->stream.out->devices);
628 usecase->devices = usecase->stream.out->devices;
631 * If the voice call is active, use the sound devices of voice call usecase
634 * usecase. This is to avoid switching devices for voice call when
641 ((vc_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) ||
642 (usecase->devices == AUDIO_DEVICE_IN_VOICE_CALL))) {
649 if (hfp_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) {
655 usecase->devices = usecase->stream.out->devices;
659 usecase->stream.out->devices);
669 usecase->devices = usecase->stream.in->device;
680 out_device = adev->primary_output->devices;
726 * and enable both RX and TX devices though one of them is same as current
738 /* Disable current sound devices */
751 * the devices to reduce in-call device switch time.
761 /* Enable new sound devices */
763 if (usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND)
850 uc_info->devices = in->device;
1081 if (usecase->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) {
1084 * disabling/enabling both RX and TX devices, CSD calls, etc.
1130 usecase->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) {
1142 usecase->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) {
1184 if (out->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL)
1197 ALOGV("%s: enter: usecase(%d: %s) devices(%#x)",
1198 __func__, out->usecase, use_case_table[out->usecase], out->devices);
1211 uc_info->devices = out->devices;
1216 if (out->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL)
1505 if (out->devices == AUDIO_DEVICE_OUT_AUX_DIGITAL &&
1518 * and headset devices at the same time, select_devices() switches the music
1524 * NOTE: We should not check if the current devices are same as new devices.
1529 out->devices = val;
2232 audio_devices_t devices,
2242 ALOGV("%s: enter: sample_rate(%d) channel_mask(%#x) devices(%#x) flags(%#x)",
2243 __func__, config->sample_rate, config->channel_mask, devices, flags);
2247 if (devices == AUDIO_DEVICE_NONE)
2248 devices = AUDIO_DEVICE_OUT_SPEAKER;
2251 out->devices = devices;
2262 out->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) {
2333 } else if (out->devices == AUDIO_DEVICE_OUT_TELEPHONY_TX) {
2664 audio_devices_t devices,
2704 in->device = devices;
2818 /* verifies input and output devices and their capabilities.
2826 * Has a side-effect that it needs to configure audio routing / devices
2827 * in order to power up the devices and read the device parameters.
2828 * It does not acquire any hw device lock. Should restore the devices
2916 out.devices = audio_device; /* only field needed in select_devices */
2918 uc_info.devices = audio_device;