/hardware/qcom/audio/hal/msm8916/ |
D | platform.c | 662 static struct operator_specific_device *get_operator_specific_device(snd_device_t snd_device) in get_operator_specific_device() argument 673 list_for_each(node, operator_specific_device_table[snd_device]) { in get_operator_specific_device() 683 static int get_operator_specific_device_acdb_id(snd_device_t snd_device) in get_operator_specific_device_acdb_id() argument 686 int ret = acdb_device_table[snd_device]; in get_operator_specific_device_acdb_id() 688 device = get_operator_specific_device(snd_device); in get_operator_specific_device_acdb_id() 695 static const char *get_operator_specific_device_mixer_path(snd_device_t snd_device) in get_operator_specific_device_mixer_path() argument 698 const char *ret = device_table[snd_device]; in get_operator_specific_device_mixer_path() 700 device = get_operator_specific_device(snd_device); in get_operator_specific_device_mixer_path() 716 snd_device_t snd_device = SND_DEVICE_NONE; in platform_set_echo_reference() local 726 snd_device = platform_get_output_snd_device(adev->platform, out_device); in platform_set_echo_reference() [all …]
|
D | hw_info.c | 101 void hw_info_append_hw_type(void *hw_info, snd_device_t snd_device, in hw_info_append_hw_type() argument 115 if (snd_device == (snd_device_t)snd_devices[i]) { in hw_info_append_hw_type()
|
/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 411 const char *platform_get_snd_device_name(snd_device_t snd_device) in platform_get_snd_device_name() argument 413 if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX) in platform_get_snd_device_name() 414 return device_table[snd_device]; in platform_get_snd_device_name() 420 snd_device_t snd_device) in platform_add_backend_name() argument 422 if (snd_device == SND_DEVICE_IN_BT_SCO_MIC) in platform_add_backend_name() 424 else if(snd_device == SND_DEVICE_OUT_BT_SCO) in platform_add_backend_name() 426 else if (snd_device == SND_DEVICE_OUT_HDMI) in platform_add_backend_name() 428 else if (snd_device == SND_DEVICE_OUT_SPEAKER_AND_HDMI) in platform_add_backend_name() 430 else if (snd_device == SND_DEVICE_OUT_BT_SCO_WB || in platform_add_backend_name() 431 snd_device == SND_DEVICE_IN_BT_SCO_MIC_WB) in platform_add_backend_name() [all …]
|
/hardware/qcom/audio/hal/msm8974/ |
D | platform.c | 768 static bool is_usb_snd_dev(snd_device_t snd_device) in is_usb_snd_dev() argument 770 if (snd_device < SND_DEVICE_IN_BEGIN) { in is_usb_snd_dev() 771 if (snd_device == SND_DEVICE_OUT_USB_HEADSET ||\ in is_usb_snd_dev() 772 snd_device == SND_DEVICE_OUT_USB_HEADPHONES ||\ in is_usb_snd_dev() 773 snd_device == SND_DEVICE_OUT_VOICE_USB_HEADPHONES ||\ in is_usb_snd_dev() 774 snd_device == SND_DEVICE_OUT_VOICE_USB_HEADSET ||\ in is_usb_snd_dev() 775 snd_device == SND_DEVICE_OUT_VOICE_TTY_FULL_USB ||\ in is_usb_snd_dev() 776 snd_device == SND_DEVICE_OUT_VOICE_TTY_VCO_USB) in is_usb_snd_dev() 779 if (snd_device == SND_DEVICE_IN_USB_HEADSET_MIC ||\ in is_usb_snd_dev() 780 snd_device == SND_DEVICE_IN_USB_HEADSET_MIC_AEC ||\ in is_usb_snd_dev() [all …]
|
D | hw_info.c | 127 void hw_info_append_hw_type(void *hw_info, snd_device_t snd_device, in hw_info_append_hw_type() argument 141 if (snd_device == (snd_device_t)snd_devices[i]) { in hw_info_append_hw_type()
|
/hardware/qcom/audio/hal/audio_extn/ |
D | dsm_feedback.c | 90 snd_device_t snd_device, in audio_extn_dsm_feedback_enable() argument 96 if( snd_device == SND_DEVICE_OUT_SPEAKER || in audio_extn_dsm_feedback_enable() 97 snd_device == SND_DEVICE_OUT_SPEAKER_REVERSE || in audio_extn_dsm_feedback_enable() 98 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER || in audio_extn_dsm_feedback_enable() 99 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE || in audio_extn_dsm_feedback_enable() 100 snd_device == SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES || in audio_extn_dsm_feedback_enable() 101 snd_device == SND_DEVICE_OUT_SPEAKER_AND_LINE || in audio_extn_dsm_feedback_enable() 102 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE_AND_HEADPHONES || in audio_extn_dsm_feedback_enable() 103 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE_AND_LINE ) in audio_extn_dsm_feedback_enable()
|
D | audio_extn.h | 40 #define audio_extn_spkr_prot_start_processing(snd_device) (-EINVAL) argument 42 #define audio_extn_spkr_prot_stop_processing(snd_device) (0) argument 44 #define audio_extn_get_spkr_prot_snd_device(snd_device) (snd_device) argument 48 int audio_extn_spkr_prot_start_processing(snd_device_t snd_device); 49 void audio_extn_spkr_prot_stop_processing(snd_device_t snd_device); 51 int audio_extn_get_spkr_prot_snd_device(snd_device_t snd_device); 139 void audio_extn_sound_trigger_update_device_status(snd_device_t snd_device, 179 #define audio_extn_dsm_feedback_enable(adev, snd_device, benable) (0) argument 182 snd_device_t snd_device, 214 snd_device, device_name) (0) argument [all …]
|
D | tfa_98xx.h | 22 void audio_extn_tfa_98xx_disable_speaker(snd_device_t snd_device); 32 #define audio_extn_tfa_98xx_disable_speaker(snd_device) (0) argument
|
D | soundtrigger.c | 359 void audio_extn_sound_trigger_update_device_status(snd_device_t snd_device, in audio_extn_sound_trigger_update_device_status() argument 367 if (snd_device >= SND_DEVICE_OUT_BEGIN && in audio_extn_sound_trigger_update_device_status() 368 snd_device < SND_DEVICE_OUT_END) { in audio_extn_sound_trigger_update_device_status() 370 } else if (snd_device >= SND_DEVICE_IN_BEGIN && in audio_extn_sound_trigger_update_device_status() 371 snd_device < SND_DEVICE_IN_END) { in audio_extn_sound_trigger_update_device_status() 372 if (snd_device == SND_DEVICE_IN_CAPTURE_VI_FEEDBACK) in audio_extn_sound_trigger_update_device_status() 377 __func__, snd_device, event); in audio_extn_sound_trigger_update_device_status() 382 __func__, snd_device, device_type, event); in audio_extn_sound_trigger_update_device_status() 393 __func__, event, snd_device); in audio_extn_sound_trigger_update_device_status()
|
D | spkr_protection.c | 788 int audio_extn_get_spkr_prot_snd_device(snd_device_t snd_device) in audio_extn_get_spkr_prot_snd_device() argument 791 return snd_device; in audio_extn_get_spkr_prot_snd_device() 793 switch(snd_device) { in audio_extn_get_spkr_prot_snd_device() 799 return snd_device; in audio_extn_get_spkr_prot_snd_device() 803 int audio_extn_spkr_prot_start_processing(snd_device_t snd_device) in audio_extn_spkr_prot_start_processing() argument 815 snd_device = audio_extn_get_spkr_prot_snd_device(snd_device); in audio_extn_spkr_prot_start_processing() 821 ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, in audio_extn_spkr_prot_start_processing() 822 platform_get_snd_device_name(snd_device)); in audio_extn_spkr_prot_start_processing() 824 platform_get_snd_device_name(snd_device)); in audio_extn_spkr_prot_start_processing() 889 void audio_extn_spkr_prot_stop_processing(snd_device_t snd_device) in audio_extn_spkr_prot_stop_processing() argument [all …]
|
D | utils.c | 42 snd_device_t snd_device) in set_stream_app_type_mixer_ctrl() argument 69 snd_device_be_idx = platform_get_snd_device_backend_index(snd_device); in set_stream_app_type_mixer_ctrl() 123 int pcm_device_id, acdb_dev_id = 0, snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg_hfp() local 141 snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg_hfp() 144 acdb_dev_id = platform_get_snd_device_acdb_id(snd_device); in audio_extn_utils_send_app_type_cfg_hfp() 178 snd_device = usecase->in_snd_device; in audio_extn_utils_send_app_type_cfg_hfp() 179 acdb_dev_id = platform_get_snd_device_acdb_id(snd_device); in audio_extn_utils_send_app_type_cfg_hfp()
|
D | cirrus_playback.c | 801 int audio_extn_spkr_prot_start_processing(snd_device_t snd_device) { in audio_extn_spkr_prot_start_processing() argument 820 platform_get_snd_device_name(snd_device)); in audio_extn_spkr_prot_start_processing() 889 void audio_extn_spkr_prot_stop_processing(snd_device_t snd_device) { in audio_extn_spkr_prot_stop_processing() argument 913 platform_get_snd_device_name(snd_device)); in audio_extn_spkr_prot_stop_processing() 925 int audio_extn_get_spkr_prot_snd_device(snd_device_t snd_device) { in audio_extn_get_spkr_prot_snd_device() argument 926 switch(snd_device) { in audio_extn_get_spkr_prot_snd_device() 935 return snd_device; in audio_extn_get_spkr_prot_snd_device()
|
D | tfa_98xx.c | 298 void audio_extn_tfa_98xx_disable_speaker(snd_device_t snd_device) in audio_extn_tfa_98xx_disable_speaker() argument 307 if ((current_audio_mode == Audio_Mode_None) || (snd_device > SND_DEVICE_OUT_END)) in audio_extn_tfa_98xx_disable_speaker() 310 switch(snd_device) { in audio_extn_tfa_98xx_disable_speaker()
|
/hardware/qcom/audio/hal/ |
D | platform_api.h | 63 const char *platform_get_snd_device_name(snd_device_t snd_device); 64 int platform_get_snd_device_name_extn(void *platform, snd_device_t snd_device, 67 snd_device_t snd_device); 71 int platform_set_snd_device_acdb_id(snd_device_t snd_device, unsigned int acdb_id); 72 int platform_get_snd_device_acdb_id(snd_device_t snd_device); 73 int platform_set_effect_config_data(snd_device_t snd_device, 76 int platform_get_effect_config_data(snd_device_t snd_device, 79 int platform_send_audio_calibration(void *platform, snd_device_t snd_device); 99 snd_device_t snd_device, 110 void platform_add_operator_specific_device(snd_device_t snd_device, [all …]
|
D | audio_hw.c | 654 snd_device_t snd_device; in enable_audio_route() local 667 snd_device = usecase->in_snd_device; in enable_audio_route() 694 snd_device = usecase->out_snd_device; in enable_audio_route() 703 platform_add_backend_name(adev->platform, mixer_path, snd_device); in enable_audio_route() 715 snd_device_t snd_device; in disable_audio_route() local 723 snd_device = usecase->in_snd_device; in disable_audio_route() 725 snd_device = usecase->out_snd_device; in disable_audio_route() 731 platform_add_backend_name(adev->platform, mixer_path, snd_device); in disable_audio_route() 749 snd_device_t snd_device) in enable_snd_device() argument 754 if (snd_device < SND_DEVICE_MIN || in enable_snd_device() [all …]
|
D | platform_info.c | 465 snd_device_t snd_device = SND_DEVICE_NONE; in process_operator_specific() local 472 snd_device = platform_get_snd_device_index((char *)attr[1]); in process_operator_specific() 473 if (snd_device < 0) { in process_operator_specific() 494 …platform_add_operator_specific_device(snd_device, (char *)attr[3], (char *)attr[5], atoi((char *)a… in process_operator_specific() 502 snd_device_t snd_device = SND_DEVICE_NONE; in process_external_dev() local 509 snd_device = platform_get_snd_device_index((char *)attr[1]); in process_external_dev() 510 if (snd_device < 0) { in process_external_dev() 526 platform_add_external_specific_device(snd_device, (char *)attr[3], atoi((char *)attr[5])); in process_external_dev()
|
D | audio_hw.h | 444 snd_device_t snd_device); 447 snd_device_t snd_device);
|