hal: Add support for Mic break detection
Send request to driver, to enable mic break detection algorithm in ADSP
based on system feature flag during the start of a voice call.
CRs-Fixed: 2314972
Change-Id: I78b0c0ad839dfe513d05c4e8fdc8db7277549124
diff --git a/hal/voice.c b/hal/voice.c
index f9e3562..2c698bd 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -281,6 +281,9 @@
goto error_start_voice;
}
+ if(adev->mic_break_enabled)
+ platform_set_mic_break_det(adev->platform, true);
+
pcm_start(session->pcm_tx);
pcm_start(session->pcm_rx);