aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-20 12:29:34 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-23 05:39:54 -0400
commit0ff97ebf0804d2e519d578fcb4db03f104d2ca8c (patch)
tree865b72a3b646671a6cd7be3f3aafe5a64f5173f7 /sound
parent409b78cc17a4a3d07a541037575da648ced99437 (diff)
ASoC: dapm: Fix _PRE and _POST events for DAPM performance improvements
Ever since the DAPM performance improvements we've been marking all widgets as not dirty after each DAPM run. Since _PRE and _POST events aren't part of the DAPM graph this has rendered them non-functional, they will never be marked dirty again and thus will never be run again. Fix this by skipping them when marking widgets as not dirty. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-dapm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index f7a13f720529..025060b26fb7 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1598,7 +1598,15 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event)
1598 } 1598 }
1599 1599
1600 list_for_each_entry(w, &card->widgets, list) { 1600 list_for_each_entry(w, &card->widgets, list) {
1601 list_del_init(&w->dirty); 1601 switch (w->id) {
1602 case snd_soc_dapm_pre:
1603 case snd_soc_dapm_post:
1604 /* These widgets always need to be powered */
1605 break;
1606 default:
1607 list_del_init(&w->dirty);
1608 break;
1609 }
1602 1610
1603 if (w->power) { 1611 if (w->power) {
1604 d = w->dapm; 1612 d = w->dapm;