Lines Matching refs:snd_device
374 const char *platform_get_snd_device_name(snd_device_t snd_device)
376 if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX)
377 return device_table[snd_device];
383 snd_device_t snd_device)
385 if (snd_device == SND_DEVICE_IN_BT_SCO_MIC)
387 else if(snd_device == SND_DEVICE_OUT_BT_SCO)
389 else if (snd_device == SND_DEVICE_OUT_HDMI)
391 else if (snd_device == SND_DEVICE_OUT_SPEAKER_AND_HDMI)
393 else if (snd_device == SND_DEVICE_OUT_BT_SCO_WB ||
394 snd_device == SND_DEVICE_IN_BT_SCO_MIC_WB)
413 int platform_set_snd_device_acdb_id(snd_device_t snd_device __unused,
419 int platform_send_audio_calibration(void *platform, snd_device_t snd_device)
424 acdb_dev_id = acdb_device_table[snd_device];
427 __func__, snd_device);
431 ("%s: sending audio calibration for snd_device(%d) acdb_id(%d)",
432 __func__, snd_device, acdb_dev_id);
433 if (snd_device >= SND_DEVICE_OUT_BEGIN &&
434 snd_device < SND_DEVICE_OUT_END)
591 snd_device_t snd_device = SND_DEVICE_NONE;
604 snd_device = SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES;
606 snd_device = SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES;
608 snd_device = SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET;
610 snd_device = SND_DEVICE_OUT_VOICE_HEADPHONES;
613 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
615 snd_device = SND_DEVICE_OUT_BT_SCO;
618 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER;
621 snd_device = SND_DEVICE_OUT_VOICE_HANDSET_TMUS;
623 snd_device = SND_DEVICE_OUT_HANDSET;
625 if (snd_device != SND_DEVICE_NONE) {
633 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
636 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
639 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI;
644 if (snd_device != SND_DEVICE_NONE) {
656 snd_device = SND_DEVICE_OUT_HEADPHONES;
659 snd_device = SND_DEVICE_OUT_SPEAKER_REVERSE;
661 snd_device = SND_DEVICE_OUT_SPEAKER;
664 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
666 snd_device = SND_DEVICE_OUT_BT_SCO;
669 snd_device = SND_DEVICE_OUT_HDMI ;
671 snd_device = SND_DEVICE_OUT_HANDSET;
676 ALOGV("%s: exit: snd_device(%s)", __func__, device_table[snd_device]);
677 return snd_device;
693 snd_device_t snd_device = SND_DEVICE_NONE;
703 snd_device = SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC;
706 snd_device = SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC;
709 snd_device = SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC;
720 snd_device = SND_DEVICE_IN_HANDSET_MIC;
724 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF_TMUS;
726 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF;
728 snd_device = SND_DEVICE_IN_VOICE_DMIC_BS;
730 snd_device = SND_DEVICE_IN_HANDSET_MIC;
733 snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC;
736 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
738 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
743 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_EF;
746 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_BS;
748 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
754 snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
760 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF;
762 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF_FLUENCE;
765 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS;
767 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS_FLUENCE;
770 if (snd_device == SND_DEVICE_NONE) {
771 snd_device = SND_DEVICE_IN_VOICE_REC_MIC;
780 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC;
782 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC;
784 snd_device = SND_DEVICE_IN_HEADSET_MIC_AEC;
795 if (snd_device != SND_DEVICE_NONE) {
803 snd_device = SND_DEVICE_IN_HANDSET_MIC;
805 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
807 snd_device = SND_DEVICE_IN_HEADSET_MIC;
810 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
812 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
815 snd_device = SND_DEVICE_IN_HDMI_MIC;
819 snd_device = SND_DEVICE_IN_HANDSET_MIC;
823 snd_device = SND_DEVICE_IN_HANDSET_MIC;
825 snd_device = SND_DEVICE_IN_HEADSET_MIC;
827 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
829 snd_device = SND_DEVICE_IN_HANDSET_MIC;
832 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
834 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
837 snd_device = SND_DEVICE_IN_HDMI_MIC;
841 snd_device = SND_DEVICE_IN_HANDSET_MIC;
845 ALOGV("%s: exit: in_snd_device(%s)", __func__, device_table[snd_device]);
846 return snd_device;