summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/fsl_ssi.c
diff options
context:
space:
mode:
authorNicolin Chen2013-07-25 11:41:41 +0200
committerMark Brown2013-07-25 21:11:27 +0200
commit32bd8cd25759411d3e11351db59be05446092f80 (patch)
tree48e18a2807b2bf69714f523bf4e079ec8afe14d9 /sound/soc/fsl/fsl_ssi.c
parentASoC: fsl: imx-audmux: Check the return value from clk_prepare_enable() (diff)
downloadkernel-qcow2-linux-32bd8cd25759411d3e11351db59be05446092f80.tar.gz
kernel-qcow2-linux-32bd8cd25759411d3e11351db59be05446092f80.tar.xz
kernel-qcow2-linux-32bd8cd25759411d3e11351db59be05446092f80.zip
ASoC: fsl: Set sdma peripheral type directly
Let CPU DAI drivers set SDMA periperal type directly to support more dma types(SPDIF, ESAI) other than only two for SSI. This will easily allow some non-SSI drivers to use the imx-pcm-dma as well. Signed-off-by: Nicolin Chen <b42378@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/fsl_ssi.c')
-rw-r--r--sound/soc/fsl/fsl_ssi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 11469fe773e2..4d78df7d7f34 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -775,9 +775,9 @@ static int fsl_ssi_probe(struct platform_device *pdev)
"fsl,spba-bus");
imx_pcm_dma_params_init_data(&ssi_private->filter_data_tx,
- dma_events[0], shared);
+ dma_events[0], shared ? IMX_DMATYPE_SSI_SP : IMX_DMATYPE_SSI);
imx_pcm_dma_params_init_data(&ssi_private->filter_data_rx,
- dma_events[1], shared);
+ dma_events[1], shared ? IMX_DMATYPE_SSI_SP : IMX_DMATYPE_SSI);
}
/* Initialize the the device_attribute structure */