Merge "hal: add support for fluence in voice recognition" into av-userspace.lnx.1.0-dev.1.0

This commit is contained in:
Linux Build Service Account 2016-03-16 07:47:32 -07:00 committed by Gerrit - the friendly Code Review server
commit 4a137d2026
1 changed files with 9 additions and 4 deletions

View File

@ -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) {
snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE;
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;
}