Commit b05d8dc1 authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 162b187e
...@@ -1489,7 +1489,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) ...@@ -1489,7 +1489,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
snd_soc_dapm_new_widgets(&card->dapm); snd_soc_dapm_new_widgets(&card->dapm);
if (card->fully_routed) 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); snd_soc_dapm_auto_nc_codec_pins(codec);
ret = snd_card_register(card->snd_card); ret = snd_card_register(card->snd_card);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment