diff options
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 4 |
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 |