aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorLiam Girdwood <lg@opensource.wolfsonmicro.com>2008-01-10 08:38:24 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:50 -0500
commit3c1c47e0eb92264d555003ee2003f836e432615b (patch)
treee8db15488a910779ca6c1d131f19af9b8985f0b8 /sound/soc
parenta7a4ac86b4754f44eb06221f3087debb4775d588 (diff)
[ALSA] soc - Add D1 power event to power down event sequence
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e748b00466b7..7d51be8ee069 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -287,6 +287,14 @@ static void close_delayed_work(struct work_struct *work)
287 /* are we waiting on this codec DAI stream */ 287 /* are we waiting on this codec DAI stream */
288 if (codec_dai->pop_wait == 1) { 288 if (codec_dai->pop_wait == 1) {
289 289
290 /* power down the codec to D1 if no longer active */
291 if (codec->active == 0) {
292 dbg("pop wq D1 %s %s\n", codec->name,
293 codec_dai->playback.stream_name);
294 snd_soc_dapm_device_event(socdev,
295 SNDRV_CTL_POWER_D1);
296 }
297
290 codec_dai->pop_wait = 0; 298 codec_dai->pop_wait = 0;
291 snd_soc_dapm_stream_event(codec, 299 snd_soc_dapm_stream_event(codec,
292 codec_dai->playback.stream_name, 300 codec_dai->playback.stream_name,