Lines Matching refs:snd_device
389 const char *platform_get_snd_device_name(snd_device_t snd_device)
391 if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX)
392 return device_table[snd_device];
398 snd_device_t snd_device)
400 if (snd_device == SND_DEVICE_IN_BT_SCO_MIC)
402 else if(snd_device == SND_DEVICE_OUT_BT_SCO)
404 else if (snd_device == SND_DEVICE_OUT_HDMI)
406 else if (snd_device == SND_DEVICE_OUT_SPEAKER_AND_HDMI)
408 else if (snd_device == SND_DEVICE_OUT_BT_SCO_WB ||
409 snd_device == SND_DEVICE_IN_BT_SCO_MIC_WB)
428 int platform_set_snd_device_acdb_id(snd_device_t snd_device __unused,
441 snd_device __unused)
447 void platform_add_operator_specific_device(snd_device_t snd_device __unused,
454 int platform_send_audio_calibration(void *platform, snd_device_t snd_device)
459 acdb_dev_id = acdb_device_table[snd_device];
462 __func__, snd_device);
466 ("%s: sending audio calibration for snd_device(%d) acdb_id(%d)",
467 __func__, snd_device, acdb_dev_id);
468 if (snd_device >= SND_DEVICE_OUT_BEGIN &&
469 snd_device < SND_DEVICE_OUT_END)
572 snd_device_t snd_device __unused,
631 snd_device_t snd_device = SND_DEVICE_NONE;
644 snd_device = SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES;
646 snd_device = SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES;
648 snd_device = SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET;
650 snd_device = SND_DEVICE_OUT_VOICE_HEADPHONES;
653 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
655 snd_device = SND_DEVICE_OUT_BT_SCO;
658 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER;
661 snd_device = SND_DEVICE_OUT_VOICE_HANDSET_TMUS;
663 snd_device = SND_DEVICE_OUT_HANDSET;
665 if (snd_device != SND_DEVICE_NONE) {
673 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
676 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
679 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI;
684 if (snd_device != SND_DEVICE_NONE) {
696 snd_device = SND_DEVICE_OUT_HEADPHONES;
699 snd_device = SND_DEVICE_OUT_SPEAKER_REVERSE;
701 snd_device = SND_DEVICE_OUT_SPEAKER;
704 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
706 snd_device = SND_DEVICE_OUT_BT_SCO;
709 snd_device = SND_DEVICE_OUT_HDMI ;
711 snd_device = SND_DEVICE_OUT_HANDSET;
716 ALOGV("%s: exit: snd_device(%s)", __func__, device_table[snd_device]);
717 return snd_device;
733 snd_device_t snd_device = SND_DEVICE_NONE;
743 snd_device = SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC;
746 snd_device = SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC;
749 snd_device = SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC;
760 snd_device = SND_DEVICE_IN_HANDSET_MIC;
764 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF_TMUS;
766 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF;
768 snd_device = SND_DEVICE_IN_VOICE_DMIC_BS;
770 snd_device = SND_DEVICE_IN_HANDSET_MIC;
773 snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC;
776 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
778 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
783 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_EF;
786 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_BS;
788 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
794 snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
800 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF;
802 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF_FLUENCE;
805 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS;
807 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS_FLUENCE;
810 if (snd_device == SND_DEVICE_NONE) {
811 snd_device = SND_DEVICE_IN_VOICE_REC_MIC;
821 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC;
823 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC;
825 snd_device = SND_DEVICE_IN_HEADSET_MIC_AEC;
836 if (snd_device != SND_DEVICE_NONE) {
844 snd_device = SND_DEVICE_IN_HANDSET_MIC;
846 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
848 snd_device = SND_DEVICE_IN_HEADSET_MIC;
851 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
853 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
856 snd_device = SND_DEVICE_IN_HDMI_MIC;
860 snd_device = SND_DEVICE_IN_HANDSET_MIC;
864 snd_device = SND_DEVICE_IN_HANDSET_MIC;
866 snd_device = SND_DEVICE_IN_HEADSET_MIC;
868 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
870 snd_device = SND_DEVICE_IN_HANDSET_MIC;
873 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
875 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
878 snd_device = SND_DEVICE_IN_HDMI_MIC;
882 snd_device = SND_DEVICE_IN_HANDSET_MIC;
886 ALOGV("%s: exit: in_snd_device(%s)", __func__, device_table[snd_device]);
887 return snd_device;
1230 snd_device_t snd_device,
1233 strlcpy(device_name, platform_get_snd_device_name(snd_device),
1240 snd_device_t snd_device __unused)
1246 struct audio_usecase *usecase __unused, snd_device_t snd_device __unused)
1268 int platform_get_snd_device_backend_index(snd_device_t snd_device __unused)
1273 void platform_check_and_update_copp_sample_rate(void* platform __unused, snd_device_t snd_device __unused,