Lines Matching refs:snd_device
414 snd_device_t snd_device = SND_DEVICE_NONE;
424 snd_device = platform_get_output_snd_device(adev->platform, out_device);
425 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device);
812 const char *platform_get_snd_device_name(snd_device_t snd_device)
814 if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX)
815 return device_table[snd_device];
821 snd_device_t snd_device)
825 if ((snd_device < SND_DEVICE_MIN) || (snd_device >= SND_DEVICE_MAX)) {
826 ALOGE("%s: Invalid snd_device = %d", __func__, snd_device);
830 const char * suffix = backend_table[snd_device];
889 int platform_set_snd_device_acdb_id(snd_device_t snd_device, unsigned int acdb_id)
893 if ((snd_device < SND_DEVICE_MIN) || (snd_device >= SND_DEVICE_MAX)) {
894 ALOGE("%s: Invalid snd_device = %d",
895 __func__, snd_device);
900 acdb_device_table[snd_device] = acdb_id;
905 int platform_send_audio_calibration(void *platform, snd_device_t snd_device)
910 acdb_dev_id = acdb_device_table[snd_device];
913 __func__, snd_device);
917 ALOGD("%s: sending audio calibration for snd_device(%d) acdb_id(%d)",
918 __func__, snd_device, acdb_dev_id);
919 if (snd_device >= SND_DEVICE_OUT_BEGIN &&
920 snd_device < SND_DEVICE_OUT_END)
1182 snd_device_t snd_device = SND_DEVICE_NONE;
1197 snd_device = SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES;
1200 snd_device = SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES;
1203 snd_device = SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET;
1206 snd_device = SND_DEVICE_OUT_VOICE_LINE;
1208 snd_device = SND_DEVICE_OUT_VOICE_HEADPHONES;
1212 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
1214 snd_device = SND_DEVICE_OUT_BT_SCO;
1217 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER;
1220 snd_device = SND_DEVICE_OUT_VOICE_HAC_HANDSET;
1222 snd_device = SND_DEVICE_OUT_VOICE_HANDSET_TMUS;
1224 snd_device = SND_DEVICE_OUT_VOICE_HANDSET;
1226 snd_device = SND_DEVICE_OUT_VOICE_TX;
1228 if (snd_device != SND_DEVICE_NONE) {
1236 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
1239 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
1242 snd_device = SND_DEVICE_OUT_SPEAKER_AND_LINE;
1245 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI;
1250 if (snd_device != SND_DEVICE_NONE) {
1262 snd_device = SND_DEVICE_OUT_HEADPHONES;
1264 snd_device = SND_DEVICE_OUT_LINE;
1266 snd_device = SND_DEVICE_OUT_SPEAKER_SAFE;
1269 snd_device = SND_DEVICE_OUT_SPEAKER_REVERSE;
1271 snd_device = SND_DEVICE_OUT_SPEAKER;
1274 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
1276 snd_device = SND_DEVICE_OUT_BT_SCO;
1279 snd_device = SND_DEVICE_OUT_HDMI ;
1283 snd_device = SND_DEVICE_OUT_VOICE_HAC_HANDSET;
1285 snd_device = SND_DEVICE_OUT_HANDSET;
1290 ALOGV("%s: exit: snd_device(%s)", __func__, device_table[snd_device]);
1291 return snd_device;
1307 snd_device_t snd_device = SND_DEVICE_NONE;
1319 snd_device = SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC;
1322 snd_device = SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC;
1325 snd_device = SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC;
1335 snd_device = SND_DEVICE_IN_HANDSET_MIC;
1338 snd_device = SND_DEVICE_IN_VOICE_DMIC_TMUS;
1340 snd_device
1343 snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC;
1346 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
1348 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
1356 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC;
1358 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
1361 snd_device = SND_DEVICE_IN_VOICE_RX;
1365 snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
1371 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_STEREO;
1374 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE;
1377 if (snd_device == SND_DEVICE_NONE) {
1379 snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS;
1381 snd_device = SND_DEVICE_IN_VOICE_REC_MIC;
1394 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS;
1396 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC_NS;
1400 snd_device = SND_DEVICE_IN_HANDSET_DMIC_AEC_NS;
1402 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC_NS;
1404 snd_device = SND_DEVICE_IN_HEADSET_MIC_AEC;
1412 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC;
1414 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC;
1418 snd_device = SND_DEVICE_IN_HANDSET_DMIC_AEC;
1420 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC;
1422 snd_device = SND_DEVICE_IN_HEADSET_MIC_AEC;
1430 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_NS;
1432 snd_device = SND_DEVICE_IN_SPEAKER_MIC_NS;
1436 snd_device = SND_DEVICE_IN_HANDSET_DMIC_NS;
1438 snd_device = SND_DEVICE_IN_HANDSET_MIC_NS;
1447 if (snd_device != SND_DEVICE_NONE) {
1457 snd_device = SND_DEVICE_IN_HANDSET_DMIC_STEREO;
1459 snd_device = SND_DEVICE_IN_HANDSET_MIC;
1463 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_STEREO;
1465 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
1467 snd_device = SND_DEVICE_IN_HEADSET_MIC;
1470 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
1472 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
1475 snd_device = SND_DEVICE_IN_HDMI_MIC;
1479 snd_device = SND_DEVICE_IN_HANDSET_MIC;
1483 snd_device = SND_DEVICE_IN_HANDSET_MIC;
1485 snd_device = SND_DEVICE_IN_HEADSET_MIC;
1491 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_STEREO;
1493 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
1496 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
1498 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
1501 snd_device = SND_DEVICE_IN_HDMI_MIC;
1505 snd_device = SND_DEVICE_IN_HANDSET_MIC;
1509 ALOGV("%s: exit: in_snd_device(%s)", __func__, device_table[snd_device]);
1510 return snd_device;
1706 ALOGE("%s: Invalid snd_device = %d",