audio-hal: Detection of BT devices during voice call

When BT device is connected to target, platform selecting the speaker MIC 
instead of BT SCO as the input device.

No condition check for BT device connection
while source as VOICE_COMMUNICATION

Added condition check for the BT device connection
assigning in_device to BT

Change-Id: If1803737487c41a09593304a98c4822773f43d87
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index d259a70..6115614 100755
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -7557,10 +7557,11 @@
         else if (compare_device_type(out_devices, AUDIO_DEVICE_OUT_USB_DEVICE))
             reassign_device_list(&in_devices, AUDIO_DEVICE_IN_USB_DEVICE, address);
 
-        if (list_empty(out_devices))
+        if (adev->bt_sco_on == true)
+            reassign_device_list(&in_devices, AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET, address);
+        else if (list_empty(out_devices))
             reassign_device_list(&in_devices, AUDIO_DEVICE_IN_BUILTIN_MIC,
                                  address);
-
         if (in)
             snd_device = get_snd_device_for_voice_comm(my_data, in, out_devices, &in_devices);
     } else if (source == AUDIO_SOURCE_MIC) {