mirror of https://github.com/thesofproject/sof.git
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:
parent
4887b777a6
commit
2c56be62ab
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue