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 <krzysztofx.frydryk@intel.com>
This commit is contained in:
Krzysztof Frydryk 2022-07-25 02:22:02 +02:00 committed by Liam Girdwood
parent 54ab3c3e86
commit 95e7d9605a
1 changed files with 1 additions and 0 deletions

View File

@ -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: