diff options
Diffstat (limited to 'sound/soc/fsl/imx-pcm.h')
-rw-r--r-- | sound/soc/fsl/imx-pcm.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-pcm.h b/sound/soc/fsl/imx-pcm.h index 67f656c7c320..fd56cad43cd6 100644 --- a/sound/soc/fsl/imx-pcm.h +++ b/sound/soc/fsl/imx-pcm.h | |||
@@ -32,6 +32,15 @@ imx_pcm_dma_params_init_data(struct imx_dma_data *dma_data, | |||
32 | dma_data->peripheral_type = IMX_DMATYPE_SSI; | 32 | dma_data->peripheral_type = IMX_DMATYPE_SSI; |
33 | } | 33 | } |
34 | 34 | ||
35 | struct imx_pcm_fiq_params { | ||
36 | int irq; | ||
37 | void __iomem *base; | ||
38 | |||
39 | /* Pointer to original ssi driver to setup tx rx sizes */ | ||
40 | struct snd_dmaengine_dai_dma_data *dma_params_rx; | ||
41 | struct snd_dmaengine_dai_dma_data *dma_params_tx; | ||
42 | }; | ||
43 | |||
35 | #ifdef CONFIG_SND_SOC_IMX_PCM_DMA | 44 | #ifdef CONFIG_SND_SOC_IMX_PCM_DMA |
36 | int imx_pcm_dma_init(struct platform_device *pdev); | 45 | int imx_pcm_dma_init(struct platform_device *pdev); |
37 | void imx_pcm_dma_exit(struct platform_device *pdev); | 46 | void imx_pcm_dma_exit(struct platform_device *pdev); |
@@ -47,10 +56,12 @@ static inline void imx_pcm_dma_exit(struct platform_device *pdev) | |||
47 | #endif | 56 | #endif |
48 | 57 | ||
49 | #ifdef CONFIG_SND_SOC_IMX_PCM_FIQ | 58 | #ifdef CONFIG_SND_SOC_IMX_PCM_FIQ |
50 | int imx_pcm_fiq_init(struct platform_device *pdev); | 59 | int imx_pcm_fiq_init(struct platform_device *pdev, |
60 | struct imx_pcm_fiq_params *params); | ||
51 | void imx_pcm_fiq_exit(struct platform_device *pdev); | 61 | void imx_pcm_fiq_exit(struct platform_device *pdev); |
52 | #else | 62 | #else |
53 | static inline int imx_pcm_fiq_init(struct platform_device *pdev) | 63 | static inline int imx_pcm_fiq_init(struct platform_device *pdev, |
64 | struct imx_pcm_fiq_params *params) | ||
54 | { | 65 | { |
55 | return -ENODEV; | 66 | return -ENODEV; |
56 | } | 67 | } |