mirror of https://github.com/thesofproject/sof.git
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:
parent
54ab3c3e86
commit
95e7d9605a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue