Lines Matching defs:snd_device
379 const char *platform_get_snd_device_name(snd_device_t snd_device)
381 if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX)
382 return device_table[snd_device];
388 snd_device_t snd_device)
390 if (snd_device == SND_DEVICE_IN_BT_SCO_MIC)
392 else if(snd_device == SND_DEVICE_OUT_BT_SCO)
394 else if (snd_device == SND_DEVICE_OUT_HDMI)
396 else if (snd_device == SND_DEVICE_OUT_SPEAKER_AND_HDMI)
398 else if (snd_device == SND_DEVICE_OUT_BT_SCO_WB ||
399 snd_device == SND_DEVICE_IN_BT_SCO_MIC_WB)
418 int platform_set_snd_device_acdb_id(snd_device_t snd_device __unused,
431 int platform_get_snd_device_acdb_id(snd_device_t snd_device __unused)
437 void platform_add_operator_specific_device(snd_device_t snd_device __unused,
444 snd_device)
449 acdb_dev_id = acdb_device_table[snd_device];
452 __func__, snd_device);
456 ("%s: sending audio calibration for snd_device(%d) acdb_id(%d)",
457 __func__, snd_device, acdb_dev_id);
458 if (snd_device >= SND_DEVICE_OUT_BEGIN &&
459 snd_device < SND_DEVICE_OUT_END)
562 snd_device_t snd_device __unused,
621 snd_device_t snd_device = SND_DEVICE_NONE;
634 snd_device = SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES;
636 snd_device = SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES;
638 snd_device = SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET;
640 snd_device = SND_DEVICE_OUT_VOICE_HEADPHONES;
643 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
645 snd_device = SND_DEVICE_OUT_BT_SCO;
648 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER;
651 snd_device = SND_DEVICE_OUT_VOICE_HANDSET_TMUS;
653 snd_device = SND_DEVICE_OUT_HANDSET;
655 if (snd_device != SND_DEVICE_NONE) {
663 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
666 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
669 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI;
674 if (snd_device != SND_DEVICE_NONE) {
686 snd_device = SND_DEVICE_OUT_HEADPHONES;
689 snd_device = SND_DEVICE_OUT_SPEAKER_REVERSE;
691 snd_device = SND_DEVICE_OUT_SPEAKER;
694 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
696 snd_device = SND_DEVICE_OUT_BT_SCO;
699 snd_device = SND_DEVICE_OUT_HDMI ;
701 snd_device = SND_DEVICE_OUT_HANDSET;
706 ALOGV("%s: exit: snd_device(%s)", __func__, device_table[snd_device]);
707 return snd_device;
723 snd_device_t snd_device = SND_DEVICE_NONE;
733 snd_device = SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC;
736 snd_device = SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC;
739 snd_device = SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC;
750 snd_device = SND_DEVICE_IN_HANDSET_MIC;
754 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF_TMUS;
756 snd_device = SND_DEVICE_IN_VOICE_DMIC_EF;
758 snd_device = SND_DEVICE_IN_VOICE_DMIC_BS;
760 snd_device = SND_DEVICE_IN_HANDSET_MIC;
763 snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC;
766 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
768 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
773 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_EF;
776 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_BS;
778 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
784 snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
790 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF;
792 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_EF_FLUENCE;
795 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS;
797 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_BS_FLUENCE;
800 if (snd_device == SND_DEVICE_NONE) {
801 snd_device = SND_DEVICE_IN_VOICE_REC_MIC;
811 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC;
813 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC;
815 snd_device = SND_DEVICE_IN_HEADSET_MIC_AEC;
826 if (snd_device != SND_DEVICE_NONE) {
834 snd_device = SND_DEVICE_IN_HANDSET_MIC;
836 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
838 snd_device = SND_DEVICE_IN_HEADSET_MIC;
841 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
843 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
846 snd_device = SND_DEVICE_IN_HDMI_MIC;
850 snd_device = SND_DEVICE_IN_HANDSET_MIC;
854 snd_device = SND_DEVICE_IN_HANDSET_MIC;
856 snd_device = SND_DEVICE_IN_HEADSET_MIC;
858 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
860 snd_device = SND_DEVICE_IN_HANDSET_MIC;
863 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
865 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
868 snd_device = SND_DEVICE_IN_HDMI_MIC;
872 snd_device = SND_DEVICE_IN_HANDSET_MIC;
876 ALOGV("%s: exit: in_snd_device(%s)", __func__, device_table[snd_device]);
877 return snd_device;
1099 snd_device_t snd_device,
1102 strlcpy(device_name, platform_get_snd_device_name(snd_device),
1109 snd_device_t snd_device __unused)