提交 57996358 编写于 作者: X Xiang Xiao 提交者: Mark Brown

ASoC: dapm: Power off all widgets in the snd_soc_dapm_shutdown

The widgets generated by the machine driver need to power off too.
Signed-off-by: NXiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 26e24ddc
...@@ -4116,7 +4116,7 @@ void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm) ...@@ -4116,7 +4116,7 @@ void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm)
} }
EXPORT_SYMBOL_GPL(snd_soc_dapm_free); EXPORT_SYMBOL_GPL(snd_soc_dapm_free);
static void soc_dapm_shutdown_codec(struct snd_soc_dapm_context *dapm) static void soc_dapm_shutdown_dapm(struct snd_soc_dapm_context *dapm)
{ {
struct snd_soc_card *card = dapm->card; struct snd_soc_card *card = dapm->card;
struct snd_soc_dapm_widget *w; struct snd_soc_dapm_widget *w;
...@@ -4156,12 +4156,12 @@ static void soc_dapm_shutdown_codec(struct snd_soc_dapm_context *dapm) ...@@ -4156,12 +4156,12 @@ static void soc_dapm_shutdown_codec(struct snd_soc_dapm_context *dapm)
*/ */
void snd_soc_dapm_shutdown(struct snd_soc_card *card) void snd_soc_dapm_shutdown(struct snd_soc_card *card)
{ {
struct snd_soc_codec *codec; struct snd_soc_dapm_context *dapm;
list_for_each_entry(codec, &card->codec_dev_list, card_list) { list_for_each_entry(dapm, &card->dapm_list, list) {
soc_dapm_shutdown_codec(&codec->dapm); soc_dapm_shutdown_dapm(dapm);
if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) if (dapm->bias_level == SND_SOC_BIAS_STANDBY)
snd_soc_dapm_set_bias_level(&codec->dapm, snd_soc_dapm_set_bias_level(dapm,
SND_SOC_BIAS_OFF); SND_SOC_BIAS_OFF);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册