From 653aaefa4f0a3b503976aa6f0bfd59a8cacfea42 Mon Sep 17 00:00:00 2001 From: Vidyakumar Athota Date: Thu, 16 Mar 2017 11:11:31 -0700 Subject: [PATCH] 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 --- hal/audio_extn/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c index caa177a0..5d98ee15 100644 --- a/hal/audio_extn/utils.c +++ b/hal/audio_extn/utils.c @@ -1268,7 +1268,7 @@ void audio_extn_utils_send_audio_calibration(struct audio_device *adev, 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),