Lines Matching refs:snd_device
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()
455 int platform_set_snd_device_acdb_id(snd_device_t snd_device __unused, in platform_set_snd_device_acdb_id()
468 int platform_get_snd_device_acdb_id(snd_device_t snd_device __unused) in platform_get_snd_device_acdb_id()
474 void platform_add_external_specific_device(snd_device_t snd_device __unused, in platform_add_external_specific_device()
481 void platform_add_operator_specific_device(snd_device_t snd_device __unused, in platform_add_operator_specific_device()
488 int platform_send_audio_calibration(void *platform, snd_device_t snd_device) in platform_send_audio_calibration() argument
493 acdb_dev_id = acdb_device_table[snd_device]; in platform_send_audio_calibration()
496 __func__, snd_device); in platform_send_audio_calibration()
501 __func__, snd_device, acdb_dev_id); in platform_send_audio_calibration()
502 if (snd_device >= SND_DEVICE_OUT_BEGIN && in platform_send_audio_calibration()
503 snd_device < SND_DEVICE_OUT_END) in platform_send_audio_calibration()
606 snd_device_t snd_device __unused, in platform_set_speaker_gain_in_combo()
665 snd_device_t snd_device = SND_DEVICE_NONE; in platform_get_output_snd_device() local
678 snd_device = SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES; in platform_get_output_snd_device()
680 snd_device = SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES; in platform_get_output_snd_device()
682 snd_device = SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET; in platform_get_output_snd_device()
684 snd_device = SND_DEVICE_OUT_VOICE_HEADSET; in platform_get_output_snd_device()
686 snd_device = SND_DEVICE_OUT_VOICE_HEADPHONES; in platform_get_output_snd_device()
689 snd_device = SND_DEVICE_OUT_BT_SCO_WB; in platform_get_output_snd_device()
691 snd_device = SND_DEVICE_OUT_BT_SCO; in platform_get_output_snd_device()
694 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER; in platform_get_output_snd_device()
697 snd_device = SND_DEVICE_OUT_VOICE_HANDSET_TMUS; in platform_get_output_snd_device()
699 snd_device = SND_DEVICE_OUT_HANDSET; in platform_get_output_snd_device()
701 if (snd_device != SND_DEVICE_NONE) { in platform_get_output_snd_device()
709 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES; in platform_get_output_snd_device()
712 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES; in platform_get_output_snd_device()
715 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI; in platform_get_output_snd_device()
720 if (snd_device != SND_DEVICE_NONE) { in platform_get_output_snd_device()
732 snd_device = SND_DEVICE_OUT_HEADPHONES; in platform_get_output_snd_device()
741 snd_device = SND_DEVICE_OUT_SPEAKER_REVERSE; in platform_get_output_snd_device()
743 snd_device = SND_DEVICE_OUT_SPEAKER; in platform_get_output_snd_device()
746 snd_device = SND_DEVICE_OUT_BT_SCO_WB; in platform_get_output_snd_device()
748 snd_device = SND_DEVICE_OUT_BT_SCO; in platform_get_output_snd_device()
751 snd_device = SND_DEVICE_OUT_HDMI ; in platform_get_output_snd_device()
753 snd_device = SND_DEVICE_OUT_HANDSET; in platform_get_output_snd_device()
758 ALOGV("%s: exit: snd_device(%s)", __func__, device_table[snd_device]); in platform_get_output_snd_device()
759 return snd_device; in platform_get_output_snd_device()
769 snd_device_t snd_device = SND_DEVICE_NONE; in platform_get_input_snd_device() local
788 snd_device = SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC; in platform_get_input_snd_device()
791 snd_device = SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC; in platform_get_input_snd_device()
794 snd_device = SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC; in platform_get_input_snd_device()
805 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
809 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF_TMUS; in platform_get_input_snd_device()
811 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF; in platform_get_input_snd_device()
813 snd_device = SND_DEVICE_IN_VOICE_DMIC_BS; in platform_get_input_snd_device()
815 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
818 snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC; in platform_get_input_snd_device()
821 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB; in platform_get_input_snd_device()
823 snd_device = SND_DEVICE_IN_BT_SCO_MIC; in platform_get_input_snd_device()
828 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_EF; in platform_get_input_snd_device()
831 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_BS; in platform_get_input_snd_device()
833 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC; in platform_get_input_snd_device()
839 snd_device = SND_DEVICE_IN_CAMCORDER_MIC; in platform_get_input_snd_device()
845 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF; in platform_get_input_snd_device()
847 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF_FLUENCE; in platform_get_input_snd_device()
850 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS; in platform_get_input_snd_device()
852 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS_FLUENCE; in platform_get_input_snd_device()
855 if (snd_device == SND_DEVICE_NONE) { in platform_get_input_snd_device()
856 snd_device = SND_DEVICE_IN_VOICE_REC_MIC; in platform_get_input_snd_device()
866 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC; in platform_get_input_snd_device()
868 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC; in platform_get_input_snd_device()
870 snd_device = SND_DEVICE_IN_HEADSET_MIC_AEC; in platform_get_input_snd_device()
881 if (snd_device != SND_DEVICE_NONE) { in platform_get_input_snd_device()
889 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
891 snd_device = SND_DEVICE_IN_SPEAKER_MIC; in platform_get_input_snd_device()
893 snd_device = SND_DEVICE_IN_HEADSET_MIC; in platform_get_input_snd_device()
896 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB; in platform_get_input_snd_device()
898 snd_device = SND_DEVICE_IN_BT_SCO_MIC; in platform_get_input_snd_device()
901 snd_device = SND_DEVICE_IN_HDMI_MIC; in platform_get_input_snd_device()
905 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
909 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
911 snd_device = SND_DEVICE_IN_HEADSET_MIC; in platform_get_input_snd_device()
913 snd_device = SND_DEVICE_IN_SPEAKER_MIC; in platform_get_input_snd_device()
915 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
918 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB; in platform_get_input_snd_device()
920 snd_device = SND_DEVICE_IN_BT_SCO_MIC; in platform_get_input_snd_device()
923 snd_device = SND_DEVICE_IN_HDMI_MIC; in platform_get_input_snd_device()
927 snd_device = SND_DEVICE_IN_HANDSET_MIC; in platform_get_input_snd_device()
931 ALOGV("%s: exit: in_snd_device(%s)", __func__, device_table[snd_device]); in platform_get_input_snd_device()
932 return snd_device; in platform_get_input_snd_device()
1348 snd_device_t snd_device, in platform_get_snd_device_name_extn() argument
1351 strlcpy(device_name, platform_get_snd_device_name(snd_device), in platform_get_snd_device_name_extn()
1358 snd_device_t snd_device __unused) in platform_check_and_set_playback_backend_cfg()
1364 struct audio_usecase *usecase __unused, snd_device_t snd_device __unused) in platform_check_and_set_capture_backend_cfg()
1386 int platform_get_snd_device_backend_index(snd_device_t snd_device __unused) in platform_get_snd_device_backend_index()
1391 void platform_check_and_update_copp_sample_rate(void* platform __unused, snd_device_t snd_device __… in platform_check_and_update_copp_sample_rate()
1483 snd_device_t snd_device __unused, in platform_set_backend_cfg()