summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2018-06-27 15:33:57 -0400
committerMark Brown <broonie@kernel.org>2018-06-29 07:05:24 -0400
commitd767d3ce5c48b3378e20e8cfd5d5379c4ca6001b (patch)
tree77f05770bb841824a866d9d3724b860a8d92a703
parent456ec80876564edb74a0fff78499beb7ca286302 (diff)
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>
-rw-r--r--sound/soc/pxa/pxa-ssp.c3
-rw-r--r--sound/soc/pxa/pxa2xx-ac97.c3
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c
index c1f4af869289..01d54697ede4 100644
--- a/sound/soc/pxa/pxa-ssp.c
+++ b/sound/soc/pxa/pxa-ssp.c
@@ -841,6 +841,9 @@ static struct snd_soc_dai_driver pxa_ssp_dai = {
841 841
842static const struct snd_soc_component_driver pxa_ssp_component = { 842static const struct snd_soc_component_driver pxa_ssp_component = {
843 .name = "pxa-ssp", 843 .name = "pxa-ssp",
844 .ops = &pxa2xx_pcm_ops,
845 .pcm_new = pxa2xx_soc_pcm_new,
846 .pcm_free = pxa2xx_pcm_free_dma_buffers,
844}; 847};
845 848
846#ifdef CONFIG_OF 849#ifdef CONFIG_OF
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index c52b33802bf2..9f779657bc86 100644
--- a/sound/soc/pxa/pxa2xx-ac97.c
+++ b/sound/soc/pxa/pxa2xx-ac97.c
@@ -214,6 +214,9 @@ static struct snd_soc_dai_driver pxa_ac97_dai_driver[] = {
214 214
215static const struct snd_soc_component_driver pxa_ac97_component = { 215static const struct snd_soc_component_driver pxa_ac97_component = {
216 .name = "pxa-ac97", 216 .name = "pxa-ac97",
217 .ops = &pxa2xx_pcm_ops,
218 .pcm_new = pxa2xx_soc_pcm_new,
219 .pcm_free = pxa2xx_pcm_free_dma_buffers,
217}; 220};
218 221
219#ifdef CONFIG_OF 222#ifdef CONFIG_OF
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 = {
364 364
365static const struct snd_soc_component_driver pxa_i2s_component = { 365static const struct snd_soc_component_driver pxa_i2s_component = {
366 .name = "pxa-i2s", 366 .name = "pxa-i2s",
367 .ops = &pxa2xx_pcm_ops,
368 .pcm_new = pxa2xx_soc_pcm_new,
369 .pcm_free = pxa2xx_pcm_free_dma_buffers,
367}; 370};
368 371
369static int pxa2xx_i2s_drv_probe(struct platform_device *pdev) 372static int pxa2xx_i2s_drv_probe(struct platform_device *pdev)