aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-19 11:15:35 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-19 11:15:35 -0400
commit9927f327717400a3372ff8931859509986b8ad37 (patch)
tree94077474cf6356bd1426557a7c31dd572371979e /sound/soc/soc-core.c
parent4f066173fe8deb8874f41917e5d26ea2e0c46e3b (diff)
parent02a06d3042e208cb74369838b178ca9512192be4 (diff)
Merge branch 'for-2.6.32' into for-2.6.33
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index fa0da3cac705..2d190df9fccc 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -795,6 +795,9 @@ static int soc_resume(struct device *dev)
795#define soc_resume NULL 795#define soc_resume NULL
796#endif 796#endif
797 797
798static struct snd_soc_dai_ops null_dai_ops = {
799};
800
798static void snd_soc_instantiate_card(struct snd_soc_card *card) 801static void snd_soc_instantiate_card(struct snd_soc_card *card)
799{ 802{
800 struct platform_device *pdev = container_of(card->dev, 803 struct platform_device *pdev = container_of(card->dev,
@@ -838,6 +841,11 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
838 ac97 = 1; 841 ac97 = 1;
839 } 842 }
840 843
844 for (i = 0; i < card->num_links; i++) {
845 if (!card->dai_link[i].codec_dai->ops)
846 card->dai_link[i].codec_dai->ops = &null_dai_ops;
847 }
848
841 /* If we have AC97 in the system then don't wait for the 849 /* If we have AC97 in the system then don't wait for the
842 * codec. This will need revisiting if we have to handle 850 * codec. This will need revisiting if we have to handle
843 * systems with mixed AC97 and non-AC97 parts. Only check for 851 * systems with mixed AC97 and non-AC97 parts. Only check for
@@ -2332,9 +2340,6 @@ static int snd_soc_unregister_card(struct snd_soc_card *card)
2332 return 0; 2340 return 0;
2333} 2341}
2334 2342
2335static struct snd_soc_dai_ops null_dai_ops = {
2336};
2337
2338/** 2343/**
2339 * snd_soc_register_dai - Register a DAI with the ASoC core 2344 * snd_soc_register_dai - Register a DAI with the ASoC core
2340 * 2345 *