Merge "hal: Fix input device selection for camcorder stereo recording"

This commit is contained in:
Linux Build Service Account 2014-06-01 18:10:50 -07:00 committed by Gerrit - the friendly Code Review server
commit c6b2c751dc
1 changed files with 5 additions and 1 deletions

View File

@ -1408,7 +1408,11 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
} else if (source == AUDIO_SOURCE_CAMCORDER) {
if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC ||
in_device & AUDIO_DEVICE_IN_BACK_MIC) {
snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
if (my_data->fluence_type & FLUENCE_DUAL_MIC &&
channel_count == 2)
snd_device = SND_DEVICE_IN_SPEAKER_DMIC;
else
snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
}
} else if (source == AUDIO_SOURCE_VOICE_RECOGNITION) {
if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC) {