summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorb02247 <b02247@freescale.com>2012-03-05 19:12:40 +0800
committerb02247 <b02247@freescale.com>2012-03-06 09:58:50 +0800
commitb69b4f6a2dcda6e95a4dbaca2c625aeb4c0bfbbd (patch)
tree3e38a0b5273afdff42b57baad967280f025b4628 /sound
parent8bed2bce0a21ae7a8243df896deb376dd3b7f4f4 (diff)
ENGR00175844 suspend/resume audio is mute/no clk
reason:the suspend/resume function is called twice. Signed-off-by: b02247 <b02247@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 171c1c720d7c..54099fdb413b 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2425,6 +2425,8 @@ static int wm8994_suspend(struct snd_soc_codec *codec, pm_message_t state)
struct wm8994 *control = codec->control_data;
int i, ret;
+ pm_runtime_disable(codec->dev);
+
switch (control->type) {
case WM8994:
snd_soc_update_bits(codec, WM8994_MICBIAS, WM8994_MICD_ENA, 0);
@@ -2504,6 +2506,8 @@ static int wm8994_resume(struct snd_soc_codec *codec)
break;
}
+ pm_runtime_enable(codec->dev);
+
return 0;
}
#else