hal: Set sample rate to 96 KHz for ultrasound

Change-Id: I812378aeedde583d7ebec249bd9e36dda3ced028
This commit is contained in:
Alexander Winkowski 2024-10-07 15:31:06 +00:00
parent 1e52928de5
commit 3658980760
No known key found for this signature in database
GPG Key ID: 72762A66704CDE44
1 changed files with 5 additions and 0 deletions

View File

@ -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);