aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-13 16:48:38 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-13 16:48:38 +0000
commit90986dc98d71242e764e1f98017c041511e1c3b1 (patch)
tree006488f1b82c8d645510a8718b2f2875b9c15e54
parentMerge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 into for-2.6.38 (diff)
parentASoC: Fix bias power down of non-DAPM codec (diff)
downloadlinux-dev-90986dc98d71242e764e1f98017c041511e1c3b1.tar.xz
linux-dev-90986dc98d71242e764e1f98017c041511e1c3b1.zip
Merge branch 'for-2.6.37' into for-2.6.38
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 9af2d8ad0895..45e6a1120cbd 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -981,6 +981,9 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event)
case SND_SOC_DAPM_STREAM_RESUME:
sys_power = 1;
break;
+ case SND_SOC_DAPM_STREAM_STOP:
+ sys_power = !!codec->active;
+ break;
case SND_SOC_DAPM_STREAM_SUSPEND:
sys_power = 0;
break;