summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-dma-v2.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-01-23 13:29:19 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:26 +0800
commit7047fb026bdb3128e2f8d5407210f66eb85623ed (patch)
tree24a7bf8d3d864d06f160efdc106cff3bbffda161 /sound/soc/fsl/imx-pcm-dma-v2.c
parentda6c85af864281d306b189b56319e9753a7f7875 (diff)
MLK-16224-3: ASoC: imx-pcm-dma-v2: fifo_num is used by dma slave config
fifo_num is a new added parameter for dma slave config Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-pcm-dma-v2.c')
-rw-r--r--sound/soc/fsl/imx-pcm-dma-v2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-pcm-dma-v2.c b/sound/soc/fsl/imx-pcm-dma-v2.c
index 24364e1c77c1..f8e89588b8e2 100644
--- a/sound/soc/fsl/imx-pcm-dma-v2.c
+++ b/sound/soc/fsl/imx-pcm-dma-v2.c
@@ -80,6 +80,11 @@ static int imx_pcm_hw_params(struct snd_pcm_substream *substream,
dma_data,
&config);
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
+ config.dst_fifo_num = dma_data->fifo_num;
+ else
+ config.src_fifo_num = dma_data->fifo_num;
+
return dmaengine_slave_config(chan, &config);
}