diff options
author | Nicolin Chen <b42378@freescale.com> | 2013-07-25 13:41:41 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-25 23:11:27 +0400 |
commit | 32bd8cd25759411d3e11351db59be05446092f80 (patch) | |
tree | 48e18a2807b2bf69714f523bf4e079ec8afe14d9 /sound/soc/fsl/imx-pcm.h | |
parent | 72192366f4e1385fe6e44600aa5b75d0136e3d52 (diff) | |
download | linux-32bd8cd25759411d3e11351db59be05446092f80.tar.xz |
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 @@ static inline void imx_pcm_dma_params_init_data(struct imx_dma_data *dma_data, - int dma, bool shared) + int dma, enum sdma_peripheral_type peripheral_type) { dma_data->dma_request = dma; dma_data->priority = DMA_PRIO_HIGH; - if (shared) - dma_data->peripheral_type = IMX_DMATYPE_SSI_SP; - else - dma_data->peripheral_type = IMX_DMATYPE_SSI; + dma_data->peripheral_type = peripheral_type; } struct imx_pcm_fiq_params { |