summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/pxa2xx-i2s.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2018-06-27 21:33:57 +0200
committerMark Brown <broonie@kernel.org>2018-06-29 12:05:24 +0100
commitd767d3ce5c48b3378e20e8cfd5d5379c4ca6001b (patch)
tree77f05770bb841824a866d9d3724b860a8d92a703 /sound/soc/pxa/pxa2xx-i2s.c
parent456ec80876564edb74a0fff78499beb7ca286302 (diff)
downloadlinux-stable-d767d3ce5c48b3378e20e8cfd5d5379c4ca6001b.tar.gz
linux-stable-d767d3ce5c48b3378e20e8cfd5d5379c4ca6001b.tar.bz2
linux-stable-d767d3ce5c48b3378e20e8cfd5d5379c4ca6001b.zip
ASoC: pxa: provide PCM ops for ssp, i2s and ac97 components
Now that the functions are now available through pxa2xx-lib, hook them up to pxa-sspi, pxa-ac97 and pxa-i2s. This allows DT platforms to use the DAIs without a platform driver. Signed-off-by: Daniel Mack <daniel@zonque.org> 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 e7184de0de04..42820121e5b9 100644
--- a/sound/soc/pxa/pxa2xx-i2s.c
+++ b/sound/soc/pxa/pxa2xx-i2s.c
@@ -364,6 +364,9 @@ static struct snd_soc_dai_driver pxa_i2s_dai = {
static const struct snd_soc_component_driver pxa_i2s_component = {
.name = "pxa-i2s",
+ .ops = &pxa2xx_pcm_ops,
+ .pcm_new = pxa2xx_soc_pcm_new,
+ .pcm_free = pxa2xx_pcm_free_dma_buffers,
};
static int pxa2xx_i2s_drv_probe(struct platform_device *pdev)