ASoC: Remove unused DAPM suspend flag
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 7 May 2010 17:40:54 +0000 (18:40 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 May 2010 09:35:55 +0000 (10:35 +0100)
We now manage suspend within the main power analysis rather than by
flipping the state of widgets.

Tested-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c

index d5d6ba862dfedf4a2aef1aea1831a4a72239dbd5..55c6d3d1894f50a1ab9c0d1cd95010f780648175 100644 (file)
@@ -427,7 +427,6 @@ struct snd_soc_dapm_widget {
        unsigned char connected:1;              /* connected codec pin */
        unsigned char new:1;                    /* cnew complete */
        unsigned char ext:1;                    /* has external widgets */
-       unsigned char suspend:1;                /* was active before suspend */
        unsigned char force:1;                  /* force state */
 
        int (*power_check)(struct snd_soc_dapm_widget *w);
index 476dbe6dabad182da3e15ee707275e4890876ee5..b30b0a255cd5ac19a137d4705630293eb6269fa3 100644 (file)
@@ -2012,18 +2012,8 @@ int snd_soc_dapm_stream_event(struct snd_soc_codec *codec,
                                w->active = 0;
                                break;
                        case SND_SOC_DAPM_STREAM_SUSPEND:
-                               if (w->active)
-                                       w->suspend = 1;
-                               w->active = 0;
-                               break;
                        case SND_SOC_DAPM_STREAM_RESUME:
-                               if (w->suspend) {
-                                       w->active = 1;
-                                       w->suspend = 0;
-                               }
-                               break;
                        case SND_SOC_DAPM_STREAM_PAUSE_PUSH:
-                               break;
                        case SND_SOC_DAPM_STREAM_PAUSE_RELEASE:
                                break;
                        }