/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 703 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/ |
D | platform.c | 743 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/ |
D | platform.c | 662 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/ |
D | platform_api.h | 53 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…
|
D | voice.c | 55 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()
|
D | audio_hw.c | 672 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/ |
D | platform.c | 1896 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/ |
D | platform.c | 2037 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/ |
D | platform_api.h | 63 snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device);
|
D | audio_hw.h | 270 audio_devices_t out_device; member
|
D | audio_hw.c | 833 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()
|