hal: Fix improper input device selection for camcorder stereo recording

- Same TX device would be seleted in camcorder and voice call.
- SND_DEVICE_IN_VOICE_SPEAKER_DMIC would be used for speaker mode when
  in call, which was same as camcorder used.Thus, the tuning updation
  in camcorder stereo recording would affect voice call performance.
- Fix by selecting SND_DEVICE_IN_HANDSET_STEREO_DMIC as input devices
  in camcorder, only when the fluence type is dual mic and the channel
  count is 2.

CRs-Fixed: 685263
Change-Id: Iba521f13a3d51e99f0f8ba4d8d4fd721975bc5ae
This commit is contained in:
kunleiz 2014-06-24 15:12:02 +08:00 committed by Gerrit - the friendly Code Review server
parent 96161ed7b9
commit 8f7e9e20a5
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
in_device & AUDIO_DEVICE_IN_BACK_MIC) {
if (my_data->fluence_type & FLUENCE_DUAL_MIC &&
channel_count == 2)
snd_device = SND_DEVICE_IN_SPEAKER_DMIC;
snd_device = SND_DEVICE_IN_HANDSET_STEREO_DMIC;
else
snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
}