Home
last modified time | relevance | path

Searched refs:out_device (Results 1 – 11 of 11) sorted by relevance

/hardware/qcom/audio/hal/msm8960/
Dplatform.c703 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device) in platform_get_input_snd_device() argument
719 __func__, out_device, in_device); in platform_get_input_snd_device()
720 if ((out_device != AUDIO_DEVICE_NONE) && voice_is_in_call(adev)) { in platform_get_input_snd_device()
722 if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_input_snd_device()
723 out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
740 if (out_device & AUDIO_DEVICE_OUT_EARPIECE || in platform_get_input_snd_device()
741 out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) { in platform_get_input_snd_device()
755 } else if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
757 } else if (out_device & AUDIO_DEVICE_OUT_ALL_SCO) { in platform_get_input_snd_device()
763 } else if (out_device & AUDIO_DEVICE_OUT_SPEAKER) { in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/msm8909/hal/msm8960/
Dplatform.c743 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device) in platform_get_input_snd_device() argument
759 __func__, out_device, in_device); in platform_get_input_snd_device()
761 if (out_device == AUDIO_DEVICE_NONE) { in platform_get_input_snd_device()
766 if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_input_snd_device()
767 out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
784 if (out_device & AUDIO_DEVICE_OUT_EARPIECE || in platform_get_input_snd_device()
785 out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) { in platform_get_input_snd_device()
793 } else if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
795 } else if (out_device & AUDIO_DEVICE_OUT_ALL_SCO) { in platform_get_input_snd_device()
800 } else if (out_device & AUDIO_DEVICE_OUT_SPEAKER) { in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c662 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device) in platform_set_echo_reference() argument
674 if (out_device != AUDIO_DEVICE_NONE) { in platform_set_echo_reference()
675 snd_device = platform_get_output_snd_device(adev->platform, out_device); in platform_set_echo_reference()
1977 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device) in platform_get_input_snd_device() argument
1994 __func__, out_device, in_device, channel_count, channel_mask); in platform_get_input_snd_device()
1995 if ((out_device != AUDIO_DEVICE_NONE) && voice_is_in_call(adev)) { in platform_get_input_snd_device()
1997 if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_input_snd_device()
1998 out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET || in platform_get_input_snd_device()
1999 out_device & AUDIO_DEVICE_OUT_LINE) { in platform_get_input_snd_device()
2016 if (out_device & AUDIO_DEVICE_OUT_EARPIECE) { in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/hal/
Dplatform_api.h53 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device);
78 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device
Dvoice.c55 static bool voice_is_sidetone_device(snd_device_t out_device, in voice_is_sidetone_device() argument
60 switch (out_device) { in voice_is_sidetone_device()
Daudio_hw.c672 audio_devices_t out_device = AUDIO_DEVICE_NONE; in select_devices() local
678 out_device = AUDIO_DEVICE_OUT_TELEPHONY_TX; in select_devices()
680 out_device = adev->primary_output->devices; in select_devices()
683 in_snd_device = platform_get_input_snd_device(adev->platform, out_device); in select_devices()
/hardware/qcom/audio/msm8909/hal/msm8974/
Dplatform.c1896 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device) in platform_get_input_snd_device() argument
1913 __func__, out_device, in_device); in platform_get_input_snd_device()
1915 if (((out_device != AUDIO_DEVICE_NONE) && (mode == AUDIO_MODE_IN_CALL)) || in platform_get_input_snd_device()
1917 if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_input_snd_device()
1918 out_device & AUDIO_DEVICE_OUT_EARPIECE || in platform_get_input_snd_device()
1919 out_device & AUDIO_DEVICE_OUT_SPEAKER ) in platform_get_input_snd_device()
1930 if ((out_device != AUDIO_DEVICE_NONE) && ((mode == AUDIO_MODE_IN_CALL) || in platform_get_input_snd_device()
1934 if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_input_snd_device()
1935 out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
1952 if (out_device & AUDIO_DEVICE_OUT_EARPIECE || in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/msm8909/hal/msm8916/
Dplatform.c2037 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device) in platform_get_input_snd_device() argument
2054 __func__, out_device, in_device); in platform_get_input_snd_device()
2055 if ((out_device != AUDIO_DEVICE_NONE) && ((mode == AUDIO_MODE_IN_CALL) || in platform_get_input_snd_device()
2059 if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_input_snd_device()
2060 out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
2078 if (out_device & AUDIO_DEVICE_OUT_EARPIECE || in platform_get_input_snd_device()
2079 out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) { in platform_get_input_snd_device()
2080 if (out_device & AUDIO_DEVICE_OUT_EARPIECE && in platform_get_input_snd_device()
2086 } else if (out_device & AUDIO_DEVICE_OUT_EARPIECE && in platform_get_input_snd_device()
2098 } else if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/msm8909/hal/
Dplatform_api.h63 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device);
Daudio_hw.h270 audio_devices_t out_device; member
Daudio_hw.c833 audio_devices_t out_device = AUDIO_DEVICE_NONE; in select_devices() local
838 out_device = adev->primary_output->devices; in select_devices()
841 out_device = AUDIO_DEVICE_OUT_TELEPHONY_TX; in select_devices()
843 in_snd_device = platform_get_input_snd_device(adev->platform, out_device); in select_devices()
3431 adev->out_device = AUDIO_DEVICE_NONE; in adev_open()