Merge "hal: Add support for EC in regular audio recording"

This commit is contained in:
Linux Build Service Account 2014-03-12 20:12:45 -07:00 committed by Gerrit - the friendly Code Review server
commit 140302b6b1
1 changed files with 3 additions and 1 deletions

View File

@ -1393,8 +1393,10 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC &&
channel_count == 1 ) {
if(my_data->fluence_type & FLUENCE_DUAL_MIC &&
my_data->fluence_in_audio_rec)
my_data->fluence_in_audio_rec) {
snd_device = SND_DEVICE_IN_HANDSET_DMIC;
set_echo_reference(adev->mixer, EC_REF_RX);
}
}
} else if (source == AUDIO_SOURCE_FM_RX ||
source == AUDIO_SOURCE_FM_RX_A2DP) {