11 Apr
2011
11 Apr
'11
1:19 a.m.
From: xingchao keroid1@gmail.com
Only drop to the for loop to bind DAI when the work is not finished.
Signed-off-by: xingchao keroid1@gmail.com --- sound/soc/soc-core.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4dda589..0380a26 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1810,8 +1810,10 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) }
/* bind DAIs */ - for (i = 0; i < card->num_links; i++) - soc_bind_dai_link(card, i); + if (card->num_rtds != card->num_links) { + for (i = 0; i < card->num_links; i++) + soc_bind_dai_link(card, i); + }
/* bind completed ? */ if (card->num_rtd != card->num_links) {
--
1.7.1