8a01eaf87870d704067298cd202df13c975c3ce5
[openwrt/staging/ynezz.git] /
1 From af52be88c689521364e06924e26c8989a075e0e3 Mon Sep 17 00:00:00 2001
2 From: Shengjiu Wang <shengjiu.wang@nxp.com>
3 Date: Fri, 28 Sep 2018 15:33:34 +0800
4 Subject: [PATCH] MLK-15975-3: ASoC: fsl_sai: The offset of fifo_off is changed
5
6 Commit 786c8bd56324 ("MLK-19734-3: dmaengine: imx-sdma: change
7 fifo offset of fifo_num") change the offset of fifo_off, so
8 the sai driver need to be updated.
9
10 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
11 (cherry picked from commit c94ce8776e01f1f40a866d4da89603ab042dde0f)
12 ---
13 sound/soc/fsl/fsl_sai.c | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
15
16 --- a/sound/soc/fsl/fsl_sai.c
17 +++ b/sound/soc/fsl/fsl_sai.c
18 @@ -726,19 +726,19 @@ static int fsl_sai_hw_params(struct snd_
19 FSL_SAI_MAXBURST_TX * pins;
20 if (sai->is_dsd)
21 sai->dma_params_tx.fifo_num = pins +
22 - (sai->dataline_off_dsd[tx] << 8);
23 + (sai->dataline_off_dsd[tx] << 4);
24 else
25 sai->dma_params_tx.fifo_num = pins +
26 - (sai->dataline_off[tx] << 8);
27 + (sai->dataline_off[tx] << 4);
28 } else {
29 sai->dma_params_rx.maxburst =
30 FSL_SAI_MAXBURST_RX * pins;
31 if (sai->is_dsd)
32 sai->dma_params_rx.fifo_num = pins +
33 - (sai->dataline_off_dsd[tx] << 8);
34 + (sai->dataline_off_dsd[tx] << 4);
35 else
36 sai->dma_params_rx.fifo_num = pins +
37 - (sai->dataline_off[tx] << 8);
38 + (sai->dataline_off[tx] << 4);
39 }
40 }
41