]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ASoC: Fix widget powerdown on shutdown
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 26 Jun 2009 14:36:56 +0000 (15:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 26 Jun 2009 14:36:56 +0000 (15:36 +0100)
We need to set the widget power state we want to implement.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c

index b9129efeedf325dc1c7775fe9148d66375e622fe..5157ec110cfa0dafa94008060ee50b8f0403785c 100644 (file)
@@ -2045,6 +2045,7 @@ void snd_soc_dapm_shutdown(struct snd_soc_device *socdev)
        list_for_each_entry(w, &codec->dapm_widgets, list) {
                if (w->power) {
                        dapm_seq_insert(w, &down_list, dapm_down_seq);
+                       w->power = 0;
                        powerdown = 1;
                }
        }