From: Mark Brown Date: Sun, 27 Nov 2011 19:38:34 +0000 (+0000) Subject: ASoC: Fix CODEC enumeration for auto_nc_codec_pins X-Git-Tag: v3.3-rc1~14^2~277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b05d8dc15f346224306bda4b4ae39fc5ace74ee6;p=platform%2Fkernel%2Flinux-3.10.git ASoC: Fix CODEC enumeration for auto_nc_codec_pins We need to enumerate all the CODECs that are part of the card we're instantiating, not all the CODECs that are in the system as the system may have multiple cards. Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 2abaf6d..ec783f0 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1489,7 +1489,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) snd_soc_dapm_new_widgets(&card->dapm); if (card->fully_routed) - list_for_each_entry(codec, &codec_list, list) + list_for_each_entry(codec, &card->codec_dev_list, card_list) snd_soc_dapm_auto_nc_codec_pins(codec); ret = snd_card_register(card->snd_card);