]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: dapm: Ignore isolated signal generators for power purposes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 Jan 2012 19:55:22 +0000 (19:55 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 26 Jan 2012 16:22:53 +0000 (16:22 +0000)
A signal generator has no power control itself and so shouldn't cause a
power up of the device.

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

index 4973545f2a325f7d6b976ee4fbd4b40c16cbc869..ec58a31465694ba53747e5d8f73b7e212257b05c 100644 (file)
@@ -1435,9 +1435,13 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event)
                        /* Supplies and micbiases only bring the
                         * context up to STANDBY as unless something
                         * else is active and passing audio they
-                        * generally don't require full power.
+                        * generally don't require full power.  Signal
+                        * generators are virtual pins and have no
+                        * power impact themselves.
                         */
                        switch (w->id) {
+                       case snd_soc_dapm_siggen:
+                               break;
                        case snd_soc_dapm_supply:
                        case snd_soc_dapm_regulator_supply:
                        case snd_soc_dapm_micbias: