projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f790c9b
)
audio: codec: add suspend and resume for ad82584f
author
Xing Wang
<xing.wang@amlogic.com>
Wed, 16 May 2018 03:33:41 +0000
(11:33 +0800)
committer
Yixun Lan
<yixun.lan@amlogic.com>
Thu, 17 May 2018 05:30:23 +0000
(22:30 -0700)
PD#165897: audio: codec: add suspend and resume for
ad82584f
Change-Id: I5a98b4d19f4cc411ea2f94ab62bd323658fb1c25
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
sound/soc/codecs/amlogic/ad82584f.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/amlogic/ad82584f.c
b/sound/soc/codecs/amlogic/ad82584f.c
index
6ced497
..
b30cf81
100644
(file)
--- a/
sound/soc/codecs/amlogic/ad82584f.c
+++ b/
sound/soc/codecs/amlogic/ad82584f.c
@@
-846,6
+846,8
@@
static int ad82584f_suspend(struct snd_soc_codec *codec)
{
dev_info(codec->dev, "ad82584f_suspend!\n");
+ ad82584f_set_bias_level(codec, SND_SOC_BIAS_OFF);
+
return 0;
}
@@
-853,6
+855,9
@@
static int ad82584f_resume(struct snd_soc_codec *codec)
{
dev_info(codec->dev, "ad82584f_resume!\n");
+ ad82584f_init(codec);
+ ad82584f_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
+
return 0;
}
#else