Skip to content

Commit 855ac8e

Browse files
ipc3: dai: change channel decoding function for native SAI and ESAI
The native SAI and ESAI drivers use a different handshake encoding. As such, when using native Zephyr drivers use a different function for decoding the channel from the handshake. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
1 parent 6bc1803 commit 855ac8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ipc/ipc3/dai.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ int dai_config_dma_channel(struct dai_data *dd, struct comp_dev *dev, const void
6363
case SOF_DAI_IMX_ESAI:
6464
handshake = dai_get_handshake(dd->dai, dai->direction,
6565
dd->stream_id);
66+
/* TODO: remove this when transition to native drivers is complete on all NXP platforms */
67+
#ifndef CONFIG_ZEPHYR_NATIVE_DRIVERS
6668
channel = EDMA_HS_GET_CHAN(handshake);
69+
#else
70+
channel = handshake & GENMASK(7, 0);
71+
#endif /* CONFIG_ZEPHYR_NATIVE_DRIVERS */
6772
break;
6873
case SOF_DAI_IMX_MICFIL:
6974
channel = dai_get_handshake(dd->dai, dai->direction,

0 commit comments

Comments
 (0)