From 95e7d9605aa8833f5b289b1f5592998617237d9e Mon Sep 17 00:00:00 2001 From: Krzysztof Frydryk Date: Mon, 25 Jul 2022 02:22:02 +0200 Subject: [PATCH] dai-zephyr: Set dai rate in config Fill in cfg.rate to be used by zephyr native drivers as rate is not always present in ipc config. Signed-off-by: Krzysztof Frydryk --- src/audio/dai-zephyr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audio/dai-zephyr.c b/src/audio/dai-zephyr.c index 62b794701..08ea58bea 100644 --- a/src/audio/dai-zephyr.c +++ b/src/audio/dai-zephyr.c @@ -136,6 +136,7 @@ int dai_set_config(struct dai *dai, struct ipc_config_dai *common_config, is_blob = common_config->is_config_blob; cfg.format = sof_cfg->format; cfg.options = sof_cfg->flags; + cfg.rate = common_config->sampling_frequency; switch (common_config->type) { case SOF_DAI_INTEL_SSP: