summaryrefslogtreecommitdiff
path: root/sound/soc/samsung/dma.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-19 15:23:15 +0100
committerMark Brown <broonie@linaro.org>2013-12-12 00:28:57 +0000
commit3688569e8173e84cd95d98f158245e17bca4f593 (patch)
tree7f163d739333a2249ef7155d17a7cc00fdea814d /sound/soc/samsung/dma.c
parentbeaec3aab661e450511b8d84f079e47a4145dfb7 (diff)
ASoC: samsung: Provide helper for DMA init
In preparation for using the dmaengine helpers in ASoC rather than the dmaengine wrappers for the Samsung API wrap the configuration of dma_data. The dmaengine code expects different data to that used by the legacy API. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/samsung/dma.c')
-rw-r--r--sound/soc/samsung/dma.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c
index fe2748b494d4..ee23194f7ab8 100644
--- a/sound/soc/samsung/dma.c
+++ b/sound/soc/samsung/dma.c
@@ -441,6 +441,14 @@ static struct snd_soc_platform_driver samsung_asoc_platform = {
.pcm_free = dma_free_dma_buffers,
};
+void samsung_asoc_init_dma_data(struct snd_soc_dai *dai,
+ struct s3c_dma_params *playback,
+ struct s3c_dma_params *capture)
+{
+ snd_soc_dai_init_dma_data(dai, playback, capture);
+}
+EXPORT_SYMBOL_GPL(samsung_asoc_init_dma_data);
+
int samsung_asoc_dma_platform_register(struct device *dev)
{
return snd_soc_register_platform(dev, &samsung_asoc_platform);