diff options
author | Nicolin Chen <b42378@freescale.com> | 2013-07-25 05:41:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-25 15:11:27 -0400 |
commit | 32bd8cd25759411d3e11351db59be05446092f80 (patch) | |
tree | 48e18a2807b2bf69714f523bf4e079ec8afe14d9 /sound/soc/fsl/imx-pcm.h | |
parent | 72192366f4e1385fe6e44600aa5b75d0136e3d52 (diff) |
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/imx-pcm.h')
-rw-r--r-- | sound/soc/fsl/imx-pcm.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/fsl/imx-pcm.h b/sound/soc/fsl/imx-pcm.h index fd56cad43cd6..9136625a3460 100644 --- a/sound/soc/fsl/imx-pcm.h +++ b/sound/soc/fsl/imx-pcm.h | |||
@@ -22,14 +22,11 @@ | |||
22 | 22 | ||
23 | static inline void | 23 | static inline void |
24 | imx_pcm_dma_params_init_data(struct imx_dma_data *dma_data, | 24 | imx_pcm_dma_params_init_data(struct imx_dma_data *dma_data, |
25 | int dma, bool shared) | 25 | int dma, enum sdma_peripheral_type peripheral_type) |
26 | { | 26 | { |
27 | dma_data->dma_request = dma; | 27 | dma_data->dma_request = dma; |
28 | dma_data->priority = DMA_PRIO_HIGH; | 28 | dma_data->priority = DMA_PRIO_HIGH; |
29 | if (shared) | 29 | dma_data->peripheral_type = peripheral_type; |
30 | dma_data->peripheral_type = IMX_DMATYPE_SSI_SP; | ||
31 | else | ||
32 | dma_data->peripheral_type = IMX_DMATYPE_SSI; | ||
33 | } | 30 | } |
34 | 31 | ||
35 | struct imx_pcm_fiq_params { | 32 | struct imx_pcm_fiq_params { |