From 26ef72c4e129b740eaccee5305bcea3b304b6c62 Mon Sep 17 00:00:00 2001 From: Alexander Winkowski Date: Mon, 7 Oct 2024 15:31:06 +0000 Subject: [PATCH] hal: Set sample rate to 96 KHz for ultrasound Change-Id: I812378aeedde583d7ebec249bd9e36dda3ced028 --- hal/msm8974/platform.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c index a4924202..fd84c3da 100644 --- a/hal/msm8974/platform.c +++ b/hal/msm8974/platform.c @@ -10689,6 +10689,11 @@ static bool platform_check_codec_backend_cfg(struct audio_device* adev, } } +#ifdef ELLIPTIC_ULTRASOUND_ENABLED + if (!backend_idx) + sample_rate = 96000; +#endif + ALOGI("%s:becf: afe: Codec selected backend: %d updated bit width: %d and sample rate: %d", __func__, backend_idx , bit_width, sample_rate);