lib: dai: Add entry for NXP's SAI

Since the Zephyr SAI driver is now enabled, add an entry in
the zephyr_dev array, which will resolve to multiple
"struct device *", one for each SAI node specified in the DTS.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2023-11-23 16:52:49 +02:00 committed by Liam Girdwood
parent c375a95245
commit 237a2faca4
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,9 @@ const struct device *zephyr_dev[] = {
#if CONFIG_DAI_INTEL_HDA
DT_FOREACH_STATUS_OKAY(intel_hda_dai, GET_DEVICE_LIST)
#endif
#if CONFIG_DAI_NXP_SAI
DT_FOREACH_STATUS_OKAY(nxp_dai_sai, GET_DEVICE_LIST)
#endif
};
static const struct device *dai_get_zephyr_device(uint32_t type, uint32_t index)