summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/pxa2xx-i2s.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2015-09-30 22:51:52 +0200
committerMark Brown <broonie@kernel.org>2015-09-30 23:21:16 +0100
commit58ceb57ec1be928bec2faeca11fe0752f930669d (patch)
tree398273b3be0584f5ea59039776a2017b433dd98d /sound/soc/pxa/pxa2xx-i2s.c
parent5c0e869357454c2aab3d02d002ffc1f0a0ab2782 (diff)
downloadlinux-stable-58ceb57ec1be928bec2faeca11fe0752f930669d.tar.gz
linux-stable-58ceb57ec1be928bec2faeca11fe0752f930669d.tar.bz2
linux-stable-58ceb57ec1be928bec2faeca11fe0752f930669d.zip
ASoC: pxa: pxa-pcm-lib: switch over to snd-soc-dmaengine-pcm
This patch removes the old PXA DMA API usage and switches over to generic functions provided by snd-soc-dmaengine-pcm. More cleanups may be done on top of this, and some function stubs can now be removed completetly. However, the intention here was to keep the transition as small as possible. This was tested on the mioa701 pxa27x board. Signed-off-by: Daniel Mack <zonque@gmail.com> [trivial change from mmp-dma to pxa-dma] Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa/pxa2xx-i2s.c')
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c
index 6b4e40036910..0389cf7b4b1e 100644
--- a/sound/soc/pxa/pxa2xx-i2s.c
+++ b/sound/soc/pxa/pxa2xx-i2s.c
@@ -319,6 +319,9 @@ static int pxa2xx_i2s_probe(struct snd_soc_dai *dai)
/* Along with FIFO servicing */
SAIMR &= ~(SAIMR_RFS | SAIMR_TFS);
+ snd_soc_dai_init_dma_data(dai, &pxa2xx_i2s_pcm_stereo_out,
+ &pxa2xx_i2s_pcm_stereo_in);
+
return 0;
}