[alsa-devel] [PATCH] ASoC: Fix CODEC enumeration for auto_nc_codec_pins

Mark Brown broonie at opensource.wolfsonmicro.com
Sun Nov 27 20:39:50 CET 2011

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 <broonie at opensource.wolfsonmicro.com>
 sound/soc/soc-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 169ab29..e0f4515 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)
 	if (card->fully_routed)
-		list_for_each_entry(codec, &codec_list, list)
+		list_for_each_entry(codec, &card->codec_dev_list, card_list)
 	ret = snd_card_register(card->snd_card);

More information about the Alsa-devel mailing list