ASoC: pxa: provide PCM ops for ssp, i2s and ac97 components
authorDaniel Mack <daniel@zonque.org>
Wed, 27 Jun 2018 19:33:57 +0000 (21:33 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 Jun 2018 11:05:24 +0000 (12:05 +0100)
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>
sound/soc/pxa/pxa-ssp.c
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-i2s.c

index c1f4af869289764dc23352c75c1d63ed5ee04304..01d54697ede47142882b3f21a14841fc5c0f83b7 100644 (file)
@@ -841,6 +841,9 @@ static struct snd_soc_dai_driver pxa_ssp_dai = {
 
 static const struct snd_soc_component_driver pxa_ssp_component = {
        .name           = "pxa-ssp",
+       .ops            = &pxa2xx_pcm_ops,
+       .pcm_new        = pxa2xx_soc_pcm_new,
+       .pcm_free       = pxa2xx_pcm_free_dma_buffers,
 };
 
 #ifdef CONFIG_OF
index c52b33802bf241f7c369cc9d0105a6b3db33d86b..9f779657bc8611e1b3b4ae23d2678cb9a706e4fd 100644 (file)
@@ -214,6 +214,9 @@ static struct snd_soc_dai_driver pxa_ac97_dai_driver[] = {
 
 static const struct snd_soc_component_driver pxa_ac97_component = {
        .name           = "pxa-ac97",
+       .ops            = &pxa2xx_pcm_ops,
+       .pcm_new        = pxa2xx_soc_pcm_new,
+       .pcm_free       = pxa2xx_pcm_free_dma_buffers,
 };
 
 #ifdef CONFIG_OF
index e7184de0de042d00843e54aef56aff47f40fec18..42820121e5b9f910b37f9a6ffe5281cd47266e2f 100644 (file)
@@ -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)