mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ASoC: dapm: Use card_list during DAPM shutdown
commit 445632ad6d upstream.
DAPM shutdown incorrectly uses "list" field of codec struct while
iterating over probed components (codec_dev_list). "list" field
refers to codecs registered in the system, "card_list" field is
used for probed components.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dd5df62c48
commit
bb71076311
|
|
@ -2634,7 +2634,7 @@ void snd_soc_dapm_shutdown(struct snd_soc_card *card)
|
|||
{
|
||||
struct snd_soc_codec *codec;
|
||||
|
||||
list_for_each_entry(codec, &card->codec_dev_list, list) {
|
||||
list_for_each_entry(codec, &card->codec_dev_list, card_list) {
|
||||
soc_dapm_shutdown_codec(&codec->dapm);
|
||||
if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY)
|
||||
snd_soc_dapm_set_bias_level(&codec->dapm,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user