audio: hal: a workaround to avoid mic no sound while making voice call. am: 6185d57e5c am: dd6a667a2c
am: 5e94267da5

Change-Id: I6ff7559bb0904c4445c48476f6419eabd41a9faa
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 3245fa5..98821d2 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3332,7 +3332,7 @@
     if (check_input_parameters(config->sample_rate, config->format, channel_count) != 0)
         return -EINVAL;
 
-    if (audio_extn_tfa_98xx_is_supported() && audio_extn_hfp_is_active(adev))
+    if (audio_extn_tfa_98xx_is_supported() && (audio_extn_hfp_is_active(adev) || voice_is_in_call(adev)))
         return -EINVAL;
 
     in = (struct stream_in *)calloc(1, sizeof(struct stream_in));