audio: dai-zephyr: Allow dai_set_config() to work for NXP's SAI

Since now there's a Zephyr driver for NXP's SAI, the dai_set_config()
should be modified to also allow the configuration of the SAI.
As such, this commit introduces a new case for NXP's SAI that does
exactly that.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2023-11-24 11:09:19 +02:00 committed by Liam Girdwood
parent 4887b777a6
commit 2c56be62ab
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ int dai_set_config(struct dai *dai, struct ipc_config_dai *common_config,
cfg.type = is_blob ? DAI_INTEL_HDA_NHLT : DAI_INTEL_HDA;
cfg_params = is_blob ? spec_config : &sof_cfg->hda;
break;
case SOF_DAI_IMX_SAI:
cfg.type = DAI_IMX_SAI;
cfg_params = &sof_cfg->sai;
break;
default:
return -EINVAL;
}