mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
audio: codec: add suspend and resume for ad82584f
PD#165897: audio: codec: add suspend and resume for ad82584f Change-Id: I5a98b4d19f4cc411ea2f94ab62bd323658fb1c25 Signed-off-by: Xing Wang <xing.wang@amlogic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user