]> Pileus Git - ~andy/linux/blobdiff - sound/soc/soc-dapm.c
ASoC: dapm: Fix _PRE and _POST events for DAPM performance improvements
[~andy/linux] / sound / soc / soc-dapm.c
index f7a13f720529966f011fd767b224b6503eed68f4..025060b26fb7271a96f8bf53684809e5f7dcdc7f 100644 (file)
@@ -1598,7 +1598,15 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event)
        }
 
        list_for_each_entry(w, &card->widgets, list) {
-               list_del_init(&w->dirty);
+               switch (w->id) {
+               case snd_soc_dapm_pre:
+               case snd_soc_dapm_post:
+                       /* These widgets always need to be powered */
+                       break;
+               default:
+                       list_del_init(&w->dirty);
+                       break;
+               }
 
                if (w->power) {
                        d = w->dapm;