diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-03 14:26:35 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-09 05:49:27 -0500 |
commit | 3f4b783cfdebb559814690572041a17bc9744cf3 (patch) | |
tree | b390f3ad74fe3f9d9e2144fc1f0f120af0705412 /sound/soc/s3c24xx | |
parent | 9115171a6b79b6b4d5c6697f123556b6efc37f1f (diff) |
ASoC: Register platform DAIs
Register all platform DAIs with the core. In line with current behaviour
this is done at module probe time rather than when the devices are probed
(since currently that only happens as the entire ASoC card is registered
except for those drivers that currently implement some kind of hotplug).
Since the core currently ignores DAI registration this has no practical
effect.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx')
-rw-r--r-- | sound/soc/s3c24xx/s3c2412-i2s.c | 13 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c2443-ac97.c | 13 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c24xx-i2s.c | 12 |
3 files changed, 38 insertions, 0 deletions
diff --git a/sound/soc/s3c24xx/s3c2412-i2s.c b/sound/soc/s3c24xx/s3c2412-i2s.c index 75f87c3c74d0..2cf050791562 100644 --- a/sound/soc/s3c24xx/s3c2412-i2s.c +++ b/sound/soc/s3c24xx/s3c2412-i2s.c | |||
@@ -736,6 +736,19 @@ struct snd_soc_dai s3c2412_i2s_dai = { | |||
736 | }; | 736 | }; |
737 | EXPORT_SYMBOL_GPL(s3c2412_i2s_dai); | 737 | EXPORT_SYMBOL_GPL(s3c2412_i2s_dai); |
738 | 738 | ||
739 | static int __devinit s3c2412_i2s_init(void) | ||
740 | { | ||
741 | return snd_soc_register_dai(&s3c2412_i2s_dai); | ||
742 | } | ||
743 | module_init(s3c2412_i2s_init); | ||
744 | |||
745 | static void __exit s3c2412_i2s_exit(void) | ||
746 | { | ||
747 | snd_soc_unregister_dai(&s3c2412_i2s_dai); | ||
748 | } | ||
749 | module_exit(s3c2412_i2s_exit); | ||
750 | |||
751 | |||
739 | /* Module information */ | 752 | /* Module information */ |
740 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 753 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
741 | MODULE_DESCRIPTION("S3C2412 I2S SoC Interface"); | 754 | MODULE_DESCRIPTION("S3C2412 I2S SoC Interface"); |
diff --git a/sound/soc/s3c24xx/s3c2443-ac97.c b/sound/soc/s3c24xx/s3c2443-ac97.c index f0bc9b7e0840..7360c6d913bd 100644 --- a/sound/soc/s3c24xx/s3c2443-ac97.c +++ b/sound/soc/s3c24xx/s3c2443-ac97.c | |||
@@ -396,6 +396,19 @@ struct snd_soc_dai s3c2443_ac97_dai[] = { | |||
396 | EXPORT_SYMBOL_GPL(s3c2443_ac97_dai); | 396 | EXPORT_SYMBOL_GPL(s3c2443_ac97_dai); |
397 | EXPORT_SYMBOL_GPL(soc_ac97_ops); | 397 | EXPORT_SYMBOL_GPL(soc_ac97_ops); |
398 | 398 | ||
399 | static int __devinit s3c2443_ac97_init(void) | ||
400 | { | ||
401 | return snd_soc_register_dai(&s3c2443_ac97_dai); | ||
402 | } | ||
403 | module_init(s3c2443_ac97_init); | ||
404 | |||
405 | static void __exit s3c2443_ac97_exit(void) | ||
406 | { | ||
407 | snd_soc_unregister_dai(&s3c2443_ac97_dai); | ||
408 | } | ||
409 | module_exit(s3c2443_ac97_exit); | ||
410 | |||
411 | |||
399 | MODULE_AUTHOR("Graeme Gregory"); | 412 | MODULE_AUTHOR("Graeme Gregory"); |
400 | MODULE_DESCRIPTION("AC97 driver for the Samsung s3c2443 chip"); | 413 | MODULE_DESCRIPTION("AC97 driver for the Samsung s3c2443 chip"); |
401 | MODULE_LICENSE("GPL"); | 414 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/s3c24xx/s3c24xx-i2s.c b/sound/soc/s3c24xx/s3c24xx-i2s.c index 45fe8f7c88ab..897b1ac92cef 100644 --- a/sound/soc/s3c24xx/s3c24xx-i2s.c +++ b/sound/soc/s3c24xx/s3c24xx-i2s.c | |||
@@ -482,6 +482,18 @@ struct snd_soc_dai s3c24xx_i2s_dai = { | |||
482 | }; | 482 | }; |
483 | EXPORT_SYMBOL_GPL(s3c24xx_i2s_dai); | 483 | EXPORT_SYMBOL_GPL(s3c24xx_i2s_dai); |
484 | 484 | ||
485 | static int __devinit s3c24xx_i2s_init(void) | ||
486 | { | ||
487 | return snd_soc_register_dai(&s3c24xx_i2s_dai); | ||
488 | } | ||
489 | module_init(s3c24xx_i2s_init); | ||
490 | |||
491 | static void __exit s3c24xx_i2s_exit(void) | ||
492 | { | ||
493 | snd_soc_unregister_dai(&s3c24xx_i2s_dai); | ||
494 | } | ||
495 | module_exit(s3c24xx_i2s_exit); | ||
496 | |||
485 | /* Module information */ | 497 | /* Module information */ |
486 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 498 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
487 | MODULE_DESCRIPTION("s3c24xx I2S SoC Interface"); | 499 | MODULE_DESCRIPTION("s3c24xx I2S SoC Interface"); |