st-hal: Initialize sample rate for acdb calibration to 16kHz
Initialize the sample rate used for acdb calibration to resolve the issue
where ADM mixer controls are sent to the DSP for LPI sessions without an
ADM profile type configured. Currently there is a sample rate mismatch between
the acdb calibration and ADM mixer control sample rates for the single mic
usecase.
Change-Id: I46eaba91168e99720b3c3a61741a3dfed7af95d6
diff --git a/sound_trigger_platform.c b/sound_trigger_platform.c
index 303d761..fce06e8 100644
--- a/sound_trigger_platform.c
+++ b/sound_trigger_platform.c
@@ -3306,7 +3306,7 @@
struct listnode *p_node, *temp_node;
struct adm_cfg_info *cfg_info;;
/* default device sampling rate in acdb */
- int sample_rate = SOUND_TRIGGER_SAMPLING_RATE_48000;
+ int sample_rate = SOUND_TRIGGER_SAMPLING_RATE_16000;
list_for_each_safe(p_node, temp_node, &stdev->adm_cfg_list) {
cfg_info = node_to_item(p_node, struct adm_cfg_info, list_node);