diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-03 14:58:17 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-09 05:49:28 -0500 |
commit | 958e792c7c8f06a9e666adb0ed94fff2cf90156f (patch) | |
tree | 2acc96b83738a593cb19551101583046000ff275 | |
parent | 12a48a8c0087ba39d926cf1d63938ccbdb9752c3 (diff) |
ASoC: Register platform drivers
This is done at modprobe time, mirroring current behaviour, except for
mpc5200_psc_i2s where we do registration at the same time as we register
with soc-of-simple. Since the core currently ignores registration this
has no practical impact.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/atmel/atmel-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/au1x/dbdma2.c | 3 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-ac97-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-i2s-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_dma.c | 12 | ||||
-rw-r--r-- | sound/soc/fsl/mpc5200_psc_i2s.c | 4 | ||||
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c24xx-pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/sh/dma-sh7760.c | 12 |
11 files changed, 114 insertions, 1 deletions
diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c index 8507aa1cd811..d6bcb4e6fda0 100644 --- a/sound/soc/atmel/atmel-pcm.c +++ b/sound/soc/atmel/atmel-pcm.c | |||
@@ -477,6 +477,18 @@ struct snd_soc_platform atmel_soc_platform = { | |||
477 | }; | 477 | }; |
478 | EXPORT_SYMBOL_GPL(atmel_soc_platform); | 478 | EXPORT_SYMBOL_GPL(atmel_soc_platform); |
479 | 479 | ||
480 | static int __devinit atmel_pcm_modinit(void) | ||
481 | { | ||
482 | return snd_soc_register_platform(&atmel_soc_platform); | ||
483 | } | ||
484 | module_init(atmel_pcm_modinit); | ||
485 | |||
486 | static void __exit atmel_pcm_exit(void) | ||
487 | { | ||
488 | snd_soc_unregister_platform(&atmel_soc_platform); | ||
489 | } | ||
490 | module_exit(atmel_pcm_modexit); | ||
491 | |||
480 | MODULE_AUTHOR("Sedji Gaouaou <sedji.gaouaou@atmel.com>"); | 492 | MODULE_AUTHOR("Sedji Gaouaou <sedji.gaouaou@atmel.com>"); |
481 | MODULE_DESCRIPTION("Atmel PCM module"); | 493 | MODULE_DESCRIPTION("Atmel PCM module"); |
482 | MODULE_LICENSE("GPL"); | 494 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c index 1466d9328800..74c823d60f91 100644 --- a/sound/soc/au1x/dbdma2.c +++ b/sound/soc/au1x/dbdma2.c | |||
@@ -406,11 +406,12 @@ static int __init au1xpsc_audio_dbdma_init(void) | |||
406 | { | 406 | { |
407 | au1xpsc_audio_pcmdma[PCM_TX] = NULL; | 407 | au1xpsc_audio_pcmdma[PCM_TX] = NULL; |
408 | au1xpsc_audio_pcmdma[PCM_RX] = NULL; | 408 | au1xpsc_audio_pcmdma[PCM_RX] = NULL; |
409 | return 0; | 409 | return snd_soc_register_platform(&au1xpsc_soc_platform); |
410 | } | 410 | } |
411 | 411 | ||
412 | static void __exit au1xpsc_audio_dbdma_exit(void) | 412 | static void __exit au1xpsc_audio_dbdma_exit(void) |
413 | { | 413 | { |
414 | snd_soc_unregister_platform(&au1xpsc_soc_platform); | ||
414 | } | 415 | } |
415 | 416 | ||
416 | module_init(au1xpsc_audio_dbdma_init); | 417 | module_init(au1xpsc_audio_dbdma_init); |
diff --git a/sound/soc/blackfin/bf5xx-ac97-pcm.c b/sound/soc/blackfin/bf5xx-ac97-pcm.c index d3d51bcb4569..5b27e0d9d0ec 100644 --- a/sound/soc/blackfin/bf5xx-ac97-pcm.c +++ b/sound/soc/blackfin/bf5xx-ac97-pcm.c | |||
@@ -451,6 +451,18 @@ struct snd_soc_platform bf5xx_ac97_soc_platform = { | |||
451 | }; | 451 | }; |
452 | EXPORT_SYMBOL_GPL(bf5xx_ac97_soc_platform); | 452 | EXPORT_SYMBOL_GPL(bf5xx_ac97_soc_platform); |
453 | 453 | ||
454 | static int __devinit bfin_ac97_init(void) | ||
455 | { | ||
456 | return snd_soc_register_platform(&bf5xx_ac97_soc_platform); | ||
457 | } | ||
458 | module_init(bfin_ac97_init); | ||
459 | |||
460 | static void __exit bfin_ac97_exit(void) | ||
461 | { | ||
462 | snd_soc_unregister_platform(&bf5xx_ac97_soc_platform); | ||
463 | } | ||
464 | module_exit(bfin_ac97_exit); | ||
465 | |||
454 | MODULE_AUTHOR("Cliff Cai"); | 466 | MODULE_AUTHOR("Cliff Cai"); |
455 | MODULE_DESCRIPTION("ADI Blackfin AC97 PCM DMA module"); | 467 | MODULE_DESCRIPTION("ADI Blackfin AC97 PCM DMA module"); |
456 | MODULE_LICENSE("GPL"); | 468 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/blackfin/bf5xx-i2s-pcm.c b/sound/soc/blackfin/bf5xx-i2s-pcm.c index 61fccf925192..c58b12a44870 100644 --- a/sound/soc/blackfin/bf5xx-i2s-pcm.c +++ b/sound/soc/blackfin/bf5xx-i2s-pcm.c | |||
@@ -283,6 +283,18 @@ struct snd_soc_platform bf5xx_i2s_soc_platform = { | |||
283 | }; | 283 | }; |
284 | EXPORT_SYMBOL_GPL(bf5xx_i2s_soc_platform); | 284 | EXPORT_SYMBOL_GPL(bf5xx_i2s_soc_platform); |
285 | 285 | ||
286 | static int __devinit bfin_i2s_init(void) | ||
287 | { | ||
288 | return snd_soc_register_platform(&bf5xx_i2s_soc_platform); | ||
289 | } | ||
290 | module_init(bfin_i2s_init); | ||
291 | |||
292 | static void __exit bfin_i2s_exit(void) | ||
293 | { | ||
294 | snd_soc_unregister_platform(&bf5xx_i2s_soc_platform); | ||
295 | } | ||
296 | module_exit(bfin_i2s_exit); | ||
297 | |||
286 | MODULE_AUTHOR("Cliff Cai"); | 298 | MODULE_AUTHOR("Cliff Cai"); |
287 | MODULE_DESCRIPTION("ADI Blackfin I2S PCM DMA module"); | 299 | MODULE_DESCRIPTION("ADI Blackfin I2S PCM DMA module"); |
288 | MODULE_LICENSE("GPL"); | 300 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c index 76feaa657375..f1b6e02d24ed 100644 --- a/sound/soc/davinci/davinci-pcm.c +++ b/sound/soc/davinci/davinci-pcm.c | |||
@@ -384,6 +384,18 @@ struct snd_soc_platform davinci_soc_platform = { | |||
384 | }; | 384 | }; |
385 | EXPORT_SYMBOL_GPL(davinci_soc_platform); | 385 | EXPORT_SYMBOL_GPL(davinci_soc_platform); |
386 | 386 | ||
387 | static int __devinit davinci_soc_platform_init(void) | ||
388 | { | ||
389 | return snd_soc_register_platform(&davinci_soc_platform); | ||
390 | } | ||
391 | module_init(davinci_soc_platform_init); | ||
392 | |||
393 | static void __exit davinci_soc_platform_exit(void) | ||
394 | { | ||
395 | snd_soc_unregister_platform(&davinci_soc_platform); | ||
396 | } | ||
397 | module_exit(davinci_soc_platform_exit); | ||
398 | |||
387 | MODULE_AUTHOR("Vladimir Barinov"); | 399 | MODULE_AUTHOR("Vladimir Barinov"); |
388 | MODULE_DESCRIPTION("TI DAVINCI PCM DMA module"); | 400 | MODULE_DESCRIPTION("TI DAVINCI PCM DMA module"); |
389 | MODULE_LICENSE("GPL"); | 401 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index bf92331b4768..646c807163ab 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c | |||
@@ -853,6 +853,18 @@ int fsl_dma_configure(struct fsl_dma_info *dma_info) | |||
853 | } | 853 | } |
854 | EXPORT_SYMBOL_GPL(fsl_dma_configure); | 854 | EXPORT_SYMBOL_GPL(fsl_dma_configure); |
855 | 855 | ||
856 | static int __devinit fsl_soc_platform_init(void) | ||
857 | { | ||
858 | return snd_soc_register_platform(&fsl_soc_platform); | ||
859 | } | ||
860 | module_init(fsl_soc_platform_init); | ||
861 | |||
862 | static void __exit fsl_soc_platform_exit(void) | ||
863 | { | ||
864 | snd_soc_unregister_platform(&fsl_soc_platform); | ||
865 | } | ||
866 | module_exit(fsl_soc_platform_exit); | ||
867 | |||
856 | MODULE_AUTHOR("Timur Tabi <timur@freescale.com>"); | 868 | MODULE_AUTHOR("Timur Tabi <timur@freescale.com>"); |
857 | MODULE_DESCRIPTION("Freescale Elo DMA ASoC PCM module"); | 869 | MODULE_DESCRIPTION("Freescale Elo DMA ASoC PCM module"); |
858 | MODULE_LICENSE("GPL"); | 870 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/fsl/mpc5200_psc_i2s.c b/sound/soc/fsl/mpc5200_psc_i2s.c index 9ad8f9a2d8e9..9eb1ce185bd0 100644 --- a/sound/soc/fsl/mpc5200_psc_i2s.c +++ b/sound/soc/fsl/mpc5200_psc_i2s.c | |||
@@ -828,6 +828,8 @@ static int __devinit psc_i2s_of_probe(struct of_device *op, | |||
828 | if (rc) | 828 | if (rc) |
829 | dev_info(psc_i2s->dev, "error creating sysfs files\n"); | 829 | dev_info(psc_i2s->dev, "error creating sysfs files\n"); |
830 | 830 | ||
831 | snd_soc_register_platform(&psc_i2s_pcm_soc_platform); | ||
832 | |||
831 | /* Tell the ASoC OF helpers about it */ | 833 | /* Tell the ASoC OF helpers about it */ |
832 | of_snd_soc_register_platform(&psc_i2s_pcm_soc_platform, op->node, | 834 | of_snd_soc_register_platform(&psc_i2s_pcm_soc_platform, op->node, |
833 | &psc_i2s->dai); | 835 | &psc_i2s->dai); |
@@ -841,6 +843,8 @@ static int __devexit psc_i2s_of_remove(struct of_device *op) | |||
841 | 843 | ||
842 | dev_dbg(&op->dev, "psc_i2s_remove()\n"); | 844 | dev_dbg(&op->dev, "psc_i2s_remove()\n"); |
843 | 845 | ||
846 | snd_soc_unregister_platform(&psc_i2s_pcm_soc_platform); | ||
847 | |||
844 | bcom_gen_bd_rx_release(psc_i2s->capture.bcom_task); | 848 | bcom_gen_bd_rx_release(psc_i2s->capture.bcom_task); |
845 | bcom_gen_bd_tx_release(psc_i2s->playback.bcom_task); | 849 | bcom_gen_bd_tx_release(psc_i2s->playback.bcom_task); |
846 | 850 | ||
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index e9084fdd2082..9940de296316 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -354,6 +354,18 @@ struct snd_soc_platform omap_soc_platform = { | |||
354 | }; | 354 | }; |
355 | EXPORT_SYMBOL_GPL(omap_soc_platform); | 355 | EXPORT_SYMBOL_GPL(omap_soc_platform); |
356 | 356 | ||
357 | static int __devinit omap_soc_platform_init(void) | ||
358 | { | ||
359 | return snd_soc_register_platform(&omap_soc_platform); | ||
360 | } | ||
361 | module_init(omap_soc_platform_init); | ||
362 | |||
363 | static void __exit omap_soc_platform_exit(void) | ||
364 | { | ||
365 | snd_soc_unregister_platform(&omap_soc_platform); | ||
366 | } | ||
367 | module_exit(omap_soc_platform_exit); | ||
368 | |||
357 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); | 369 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); |
358 | MODULE_DESCRIPTION("OMAP PCM DMA module"); | 370 | MODULE_DESCRIPTION("OMAP PCM DMA module"); |
359 | MODULE_LICENSE("GPL"); | 371 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index 0f6b7bb2d44b..4fa1578f5d47 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c | |||
@@ -118,6 +118,18 @@ struct snd_soc_platform pxa2xx_soc_platform = { | |||
118 | }; | 118 | }; |
119 | EXPORT_SYMBOL_GPL(pxa2xx_soc_platform); | 119 | EXPORT_SYMBOL_GPL(pxa2xx_soc_platform); |
120 | 120 | ||
121 | static int __devinit pxa2xx_soc_platform_init(void) | ||
122 | { | ||
123 | return snd_soc_register_platform(&pxa2xx_soc_platform); | ||
124 | } | ||
125 | module_init(pxa2xx_soc_platform_init); | ||
126 | |||
127 | static void __exit pxa2xx_soc_platform_exit(void) | ||
128 | { | ||
129 | snd_soc_unregister_platform(&pxa2xx_soc_platform); | ||
130 | } | ||
131 | module_exit(pxa2xx_soc_platform_exit); | ||
132 | |||
121 | MODULE_AUTHOR("Nicolas Pitre"); | 133 | MODULE_AUTHOR("Nicolas Pitre"); |
122 | MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module"); | 134 | MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module"); |
123 | MODULE_LICENSE("GPL"); | 135 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/s3c24xx/s3c24xx-pcm.c b/sound/soc/s3c24xx/s3c24xx-pcm.c index e13e614bada9..ea5a9caec13e 100644 --- a/sound/soc/s3c24xx/s3c24xx-pcm.c +++ b/sound/soc/s3c24xx/s3c24xx-pcm.c | |||
@@ -465,6 +465,18 @@ struct snd_soc_platform s3c24xx_soc_platform = { | |||
465 | }; | 465 | }; |
466 | EXPORT_SYMBOL_GPL(s3c24xx_soc_platform); | 466 | EXPORT_SYMBOL_GPL(s3c24xx_soc_platform); |
467 | 467 | ||
468 | static int __devinit s3c24xx_soc_platform_init(void) | ||
469 | { | ||
470 | return snd_soc_register_platform(&s3c24xx_soc_platform); | ||
471 | } | ||
472 | module_init(s3c24xx_soc_platform_init); | ||
473 | |||
474 | static void __exit s3c24xx_soc_platform_exit(void) | ||
475 | { | ||
476 | snd_soc_unregister_platform(&s3c24xx_soc_platform); | ||
477 | } | ||
478 | module_exit(s3c24xx_soc_platform_exit); | ||
479 | |||
468 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 480 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
469 | MODULE_DESCRIPTION("Samsung S3C24XX PCM DMA module"); | 481 | MODULE_DESCRIPTION("Samsung S3C24XX PCM DMA module"); |
470 | MODULE_LICENSE("GPL"); | 482 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/sh/dma-sh7760.c b/sound/soc/sh/dma-sh7760.c index 9faa12622d09..39ffca0933a2 100644 --- a/sound/soc/sh/dma-sh7760.c +++ b/sound/soc/sh/dma-sh7760.c | |||
@@ -348,6 +348,18 @@ struct snd_soc_platform sh7760_soc_platform = { | |||
348 | }; | 348 | }; |
349 | EXPORT_SYMBOL_GPL(sh7760_soc_platform); | 349 | EXPORT_SYMBOL_GPL(sh7760_soc_platform); |
350 | 350 | ||
351 | static int __devinit sh7760_soc_platform_init(void) | ||
352 | { | ||
353 | return snd_soc_register_platform(&sh7760_soc_platform); | ||
354 | } | ||
355 | module_init(sh7760_soc_platform_init); | ||
356 | |||
357 | static void __exit sh7760_soc_platform_exit(void) | ||
358 | { | ||
359 | snd_soc_unregister_platform(&sh7760_soc_platform); | ||
360 | } | ||
361 | module_exit(sh7760_soc_platform_exit); | ||
362 | |||
351 | MODULE_LICENSE("GPL"); | 363 | MODULE_LICENSE("GPL"); |
352 | MODULE_DESCRIPTION("SH7760 Audio DMA (DMABRG) driver"); | 364 | MODULE_DESCRIPTION("SH7760 Audio DMA (DMABRG) driver"); |
353 | MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); | 365 | MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); |