audio-hal: select right input device while enable fluence
regular0 device(a source device, defined in pulseaudio
conf file) using 2 channels, will not use right device
while enabled fluence, because limited to 1 channels in
function 'platform_get_input_snd_device' of platform.c
Change-Id: I584ae06329b7881344620af2468f8b0004412dbd
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 933e3c7..68b91b4 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -7849,7 +7849,7 @@
snd_device = get_snd_device_for_voice_comm(my_data, in, out_devices, &in_devices);
} else if (source == AUDIO_SOURCE_MIC) {
if (compare_device_type(&in_devices, AUDIO_DEVICE_IN_BUILTIN_MIC) &&
- channel_count == 1 ) {
+ (channel_count == 1 || channel_count == 2)) {
if(my_data->fluence_in_audio_rec) {
if ((my_data->fluence_type & FLUENCE_QUAD_MIC) &&
(my_data->source_mic_type & SOURCE_QUAD_MIC)) {