diff options
author | Daniel Mack <daniel@zonque.org> | 2018-06-27 15:33:57 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-29 07:05:24 -0400 |
commit | d767d3ce5c48b3378e20e8cfd5d5379c4ca6001b (patch) | |
tree | 77f05770bb841824a866d9d3724b860a8d92a703 | |
parent | 456ec80876564edb74a0fff78499beb7ca286302 (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.c | 3 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 3 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 3 |
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 | ||
842 | static const struct snd_soc_component_driver pxa_ssp_component = { | 842 | static 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 | ||
215 | static const struct snd_soc_component_driver pxa_ac97_component = { | 215 | static 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 | ||
365 | static const struct snd_soc_component_driver pxa_i2s_component = { | 365 | static 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 | ||
369 | static int pxa2xx_i2s_drv_probe(struct platform_device *pdev) | 372 | static int pxa2xx_i2s_drv_probe(struct platform_device *pdev) |