Merge "hal: Set echo reference from mixer file"

This commit is contained in:
Linux Build Service Account 2014-05-08 17:36:44 -07:00 committed by Gerrit - the friendly Code Review server
commit ffb548ed73
1 changed files with 2 additions and 2 deletions

View File

@ -1445,7 +1445,7 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
}
} else if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET) {
snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC;
set_echo_reference(adev->mixer, EC_REF_RX);
set_echo_reference(adev, true);
} else if (out_device & AUDIO_DEVICE_OUT_ALL_SCO) {
if (my_data->btsco_sample_rate == SAMPLE_RATE_16KHZ)
snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
@ -1467,7 +1467,7 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
}
} else {
snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
set_echo_reference(adev->mixer, EC_REF_RX);
set_echo_reference(adev, true);
}
}
} else if (source == AUDIO_SOURCE_CAMCORDER) {