From: Joonyoung Shim <jy0922.shim@samsung.com>
To: alsa-devel@alsa-project.org
Cc: kyungmin.park@samsung.com, broonie@opensource.wolfsonmicro.com
Subject: [PATCH] ASoC: Add power down of widget powered up for suspend
Date: Mon, 23 Nov 2009 14:45:16 +0900 [thread overview]
Message-ID: <4B0A216C.1030807@samsung.com> (raw)
If the widget was powered up when the device enters to the suspend, it
remains on because the power of the widget doesn't change, but we need
to power down the widget on suspend.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
sound/soc/soc-dapm.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index d2af872..099d3b6 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -978,8 +978,11 @@ static int dapm_power_widgets(struct snd_soc_codec *codec, int event)
continue;
power = w->power_check(w);
- if (power)
+ if (power) {
sys_power = 1;
+ if (event == SND_SOC_DAPM_STREAM_SUSPEND)
+ power = 0;
+ }
if (w->power == power)
continue;
--
1.6.3.3
next reply other threads:[~2009-11-23 5:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-23 5:45 Joonyoung Shim [this message]
2009-11-23 12:22 ` [PATCH] ASoC: Add power down of widget powered up for suspend Mark Brown
2009-11-23 12:48 ` Joonyoung Shim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0A216C.1030807@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=kyungmin.park@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.