Loading hal/msm8974/platform.c +9 −4 Original line number Diff line number Diff line Loading @@ -2686,11 +2686,16 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC) { if (channel_count == 2) { snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_STEREO; } else if (adev->active_input->enable_ns) snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS; else if (my_data->fluence_type != FLUENCE_NONE && } else if (my_data->fluence_type != FLUENCE_NONE && my_data->fluence_in_voice_rec) { if (my_data->fluence_type & FLUENCE_QUAD_MIC) { snd_device = SND_DEVICE_IN_HANDSET_QMIC; } else { snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE; } platform_set_echo_reference(adev->platform, true, out_device); } else if (adev->active_input->enable_ns) { snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS; } else { snd_device = SND_DEVICE_IN_VOICE_REC_MIC; } Loading Loading
hal/msm8974/platform.c +9 −4 Original line number Diff line number Diff line Loading @@ -2686,11 +2686,16 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC) { if (channel_count == 2) { snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_STEREO; } else if (adev->active_input->enable_ns) snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS; else if (my_data->fluence_type != FLUENCE_NONE && } else if (my_data->fluence_type != FLUENCE_NONE && my_data->fluence_in_voice_rec) { if (my_data->fluence_type & FLUENCE_QUAD_MIC) { snd_device = SND_DEVICE_IN_HANDSET_QMIC; } else { snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE; } platform_set_echo_reference(adev->platform, true, out_device); } else if (adev->active_input->enable_ns) { snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS; } else { snd_device = SND_DEVICE_IN_VOICE_REC_MIC; } Loading