drivers: imx: sai: Select correct EDMA channel number

The SAI doesn't use channel 0, but channels 14 and 15. The handshake
contains the correct channel number.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2019-11-01 13:55:37 +02:00 committed by Daniel Baluta
parent 3cbc289c0c
commit 18e7c88b1e
1 changed files with 1 additions and 0 deletions

View File

@ -795,6 +795,7 @@ static int dai_config(struct comp_dev *dev, struct sof_ipc_dai_config *config)
channel);
break;
case SOF_DAI_IMX_SAI:
channel = EDMA_HS_GET_CHAN(handshake);
dd->config.burst_elems =
dd->dai->plat_data.fifo[dev->params.direction].depth;
break;