exynos: audiohal_comv1: Support BT_NREC_HEADSET_MIC

Change-Id: I14627724bf7618469fff9770db9867f8eb762410
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
index adab758..3331f38 100644
--- a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
+++ b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
@@ -537,7 +537,15 @@
                 in = DEVICE_HEADPHONE_MIC;
                 break;
             case DEVICE_BT_SCO_HEADSET:
-                in = DEVICE_BT_SCO_HEADSET_MIC;
+                if (isAPCallMode(adev)) {
+                    if (adev->voice->bluetooth_nrec) {
+                        in = DEVICE_BT_SCO_HEADSET_MIC; // nrec is supported by BT side
+                    } else {
+                        in = DEVICE_BT_NREC_HEADSET_MIC;
+                    }
+                } else {
+                    in = DEVICE_BT_SCO_HEADSET_MIC;
+                }
                 break;
             case DEVICE_USB_HEADSET:
                 if (is_usb_in_device(adev->actual_capture_device))