summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-dma.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-03-28 11:34:56 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-01 14:28:29 +0400
commitb46b373f4084cc02d4d41a5a42199fe8462c2f13 (patch)
tree8f621f753dad4454bec0766b07ebe94d51d2ac18 /sound/soc/fsl/imx-pcm-dma.c
parentff9062c60e4b8e01980b1a81dcabe3965f71df77 (diff)
downloadlinux-b46b373f4084cc02d4d41a5a42199fe8462c2f13.tar.xz
ASoC: fsl: assign dma peripheral type according to bus topology
The dma peripheral_type for SSI should be IMX_DMATYPE_SSI_SP if the SSI is on SPBA bus. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/imx-pcm-dma.c')
-rw-r--r--sound/soc/fsl/imx-pcm-dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-dma.c b/sound/soc/fsl/imx-pcm-dma.c
index 6b818de2fc03..f3c0a5ef35c8 100644
--- a/sound/soc/fsl/imx-pcm-dma.c
+++ b/sound/soc/fsl/imx-pcm-dma.c
@@ -109,7 +109,8 @@ static int snd_imx_open(struct snd_pcm_substream *substream)
dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
dma_data = kzalloc(sizeof(*dma_data), GFP_KERNEL);
- dma_data->peripheral_type = IMX_DMATYPE_SSI;
+ dma_data->peripheral_type = dma_params->shared_peripheral ?
+ IMX_DMATYPE_SSI_SP : IMX_DMATYPE_SSI;
dma_data->priority = DMA_PRIO_HIGH;
dma_data->dma_request = dma_params->dma;