5cc427496ae03a14c965f9e38944e6d3385d5371
[openwrt/staging/981213.git] /
1 From 8d4837f146cd14cf7041050ddec77b2a5c3f2f27 Mon Sep 17 00:00:00 2001
2 From: Shengjiu Wang <shengjiu.wang@nxp.com>
3 Date: Tue, 23 Jan 2018 13:25:40 +0800
4 Subject: [PATCH] MLK-17442: ASoC: fsl: fix wrong usage of filter_data (part 1)
5
6 The filter_data should be used for dma_filter_fn function,
7 but we used the filter_data wrongly for dma channel name.
8 This patch is to fix the issue.
9
10 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
11 Reviwed-by: Daniel Baluta <daniel.baluta@nxp.com>
12 [ Aisheng: split out esai and pcm changes ]
13 Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
14 ---
15 sound/soc/fsl/fsl_sai.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 --- a/sound/soc/fsl/fsl_sai.c
19 +++ b/sound/soc/fsl/fsl_sai.c
20 @@ -1136,8 +1136,8 @@ static int fsl_sai_probe(struct platform
21 MCLK_DIR(index));
22 }
23
24 - sai->dma_params_rx.filter_data = "rx";
25 - sai->dma_params_tx.filter_data = "tx";
26 + sai->dma_params_rx.chan_name = "rx";
27 + sai->dma_params_tx.chan_name = "tx";
28 sai->dma_params_rx.addr = res->start + FSL_SAI_RDR0;
29 sai->dma_params_tx.addr = res->start + FSL_SAI_TDR0;
30 sai->dma_params_rx.maxburst = FSL_SAI_MAXBURST_RX;