Skip to content

Commit

Permalink
ASoC: Fix CODEC enumeration for auto_nc_codec_pins
Browse files Browse the repository at this point in the history
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@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Nov 27, 2011
1 parent 162b187 commit b05d8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b05d8dc

Please sign in to comment.