From f3f2d6028767f89bb4b7ecdee957473348e314dc Mon Sep 17 00:00:00 2001 From: Xing Wang Date: Mon, 8 Apr 2019 16:05:48 +0800 Subject: [PATCH] audio: codec: un-mute ad82584 in default [1/1] PD#SWPL-6810 Problem: android version, no sound for spk ad82584 is mute in default. Solution: un-mute ad82584, and add delay for de-pop Verify: ac200 Change-Id: Id78eb77b5e1a0ebed0a16a9b97992c6a07f78cde Signed-off-by: Xing Wang Signed-off-by: Jian Xu --- sound/soc/codecs/amlogic/ad82584f.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/amlogic/ad82584f.c b/sound/soc/codecs/amlogic/ad82584f.c index 1cfb5c2cef56..51f61b05fd1c 100644 --- a/sound/soc/codecs/amlogic/ad82584f.c +++ b/sound/soc/codecs/amlogic/ad82584f.c @@ -824,11 +824,14 @@ static int ad82584f_init(struct snd_soc_codec *codec) 0x1 << 0 /* 64x bclk/fs */ ); - /*eq and drc*/ + /* eq and drc */ ad82584f_set_eq_drc(codec); - /*unmute,default power-on is mute.*/ - /*snd_soc_write(codec, 0x02, 0x00);*/ + /* for de-pop */ + udelay(100); + + /* unmute, default power-on is mute. */ + snd_soc_write(codec, 0x02, 0x00); return 0; }