aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-07 18:40:54 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-10 10:35:55 +0100
commit50ae8384cde9a67714ff03010493c5052690624e (patch)
treed2757bae97d2e6b88c85e2ff953e2eac1a580e4d /sound/soc/soc-dapm.c
parent29e189c29d33d273424327ca4c1a74d8cdc04f48 (diff)
downloadkernel_samsung_aries-50ae8384cde9a67714ff03010493c5052690624e.zip
kernel_samsung_aries-50ae8384cde9a67714ff03010493c5052690624e.tar.gz
kernel_samsung_aries-50ae8384cde9a67714ff03010493c5052690624e.tar.bz2
ASoC: Remove unused DAPM suspend flag
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>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 476dbe6..b30b0a2 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -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;
}