aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/atmel-pcm.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-11-27 22:46:13 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-01 23:29:19 -0500
commit3951e4aae2ce7e4593e575e91cbb22f1ba153596 (patch)
treef210f5e34e8172e1d8c5b2aa96db70b9a2d16922 /sound/soc/atmel/atmel-pcm.h
parent92dfa61986237f849bb6ff5190380b3bf69335d2 (diff)
ASoC: atmel-pcm: dma support based on pcm dmaengine
Specify overrun bit in interrupt mask Add dmaengine specific routines Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> [voice.shen@atmel.com: adapt to soc dmaengine framework] Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/atmel/atmel-pcm.h')
-rw-r--r--sound/soc/atmel/atmel-pcm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sound/soc/atmel/atmel-pcm.h b/sound/soc/atmel/atmel-pcm.h
index 6bd63b0e95e2..bb45d20e7250 100644
--- a/sound/soc/atmel/atmel-pcm.h
+++ b/sound/soc/atmel/atmel-pcm.h
@@ -52,6 +52,7 @@ struct atmel_pdc_regs {
52struct atmel_ssc_mask { 52struct atmel_ssc_mask {
53 u32 ssc_enable; /* SSC recv/trans enable */ 53 u32 ssc_enable; /* SSC recv/trans enable */
54 u32 ssc_disable; /* SSC recv/trans disable */ 54 u32 ssc_disable; /* SSC recv/trans disable */
55 u32 ssc_error; /* SSC error conditions */
55 u32 ssc_endx; /* SSC ENDTX or ENDRX */ 56 u32 ssc_endx; /* SSC ENDTX or ENDRX */
56 u32 ssc_endbuf; /* SSC TXBUFE or RXBUFF */ 57 u32 ssc_endbuf; /* SSC TXBUFE or RXBUFF */
57 u32 pdc_enable; /* PDC recv/trans enable */ 58 u32 pdc_enable; /* PDC recv/trans enable */
@@ -100,4 +101,17 @@ static inline void atmel_pcm_pdc_platform_unregister(struct device *dev)
100} 101}
101#endif 102#endif
102 103
104#ifdef CONFIG_SND_ATMEL_SOC_DMA
105int atmel_pcm_dma_platform_register(struct device *dev);
106void atmel_pcm_dma_platform_unregister(struct device *dev);
107#else
108static inline int atmel_pcm_dma_platform_register(struct device *dev)
109{
110 return 0;
111}
112static inline void atmel_pcm_dma_platform_unregister(struct device *dev)
113{
114}
115#endif
116
103#endif /* _ATMEL_PCM_H */ 117#endif /* _ATMEL_PCM_H */