hal: send audio calibration for VI capture path
Audio calibration is not sent for VI capture path because the
input stream is NULL. This results failure in speaker thermal
calibration. Send audio calibration with default app_type for
VI capture path.
Change-Id: Ic3c5d46b5de4f9b914a9fc880726d7658ce3ca8b
diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c
index caa177a..5d98ee1 100644
--- a/hal/audio_extn/utils.c
+++ b/hal/audio_extn/utils.c
@@ -1268,7 +1268,7 @@
platform_send_audio_calibration(adev->platform, usecase,
usecase->stream.in->app_type_cfg.app_type,
usecase->stream.in->app_type_cfg.sample_rate);
- } else if (type == PCM_HFP_CALL) {
+ } else if (type == PCM_HFP_CALL || type == PCM_CAPTURE) {
/* when app type is default. the sample rate is not used to send cal */
platform_send_audio_calibration(adev->platform, usecase,
platform_get_default_app_type_v2(adev->platform, usecase->type),