From 2ba9fe003c850346420b2b41fb9f9ffa5421d0dc Mon Sep 17 00:00:00 2001 From: Shuai Li Date: Tue, 8 Jan 2019 22:16:41 +0800 Subject: [PATCH] audio: fix pop snd after bootup [2/2] PD#SWPL-3178 Problem: output big pop noise after system boot up. Solution: Add zero and then unmute the stream. NOTICE: user should unmute the AD82584F after boot. Verify: local verified. Change-Id: I21555318f9347c5340a28f7e5cf0e3e2cde849a0 Signed-off-by: Shuai Li Conflicts: sound/soc/codecs/amlogic/ad82584f.c --- sound/soc/codecs/amlogic/ad82584f.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/amlogic/ad82584f.c b/sound/soc/codecs/amlogic/ad82584f.c index 1e6bb4b57f43..da82c73f6565 100644 --- a/sound/soc/codecs/amlogic/ad82584f.c +++ b/sound/soc/codecs/amlogic/ad82584f.c @@ -827,11 +827,8 @@ static int ad82584f_init(struct snd_soc_codec *codec) /* eq and drc */ ad82584f_set_eq_drc(codec); - /* for de-pop */ - udelay(100); - - /* unmute, default power-on is mute. */ - snd_soc_write(codec, MUTE, 0x00); + /*unmute,default power-on is mute.*/ + /*snd_soc_write(codec, 0x02, 0x00);*/ return 0; }