audio: codec: un-mute ad82584 in default [1/1]
authorXing Wang <xing.wang@amlogic.com>
Mon, 8 Apr 2019 08:05:48 +0000 (16:05 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 9 Apr 2019 09:14:02 +0000 (02:14 -0700)
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 <xing.wang@amlogic.com>
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
sound/soc/codecs/amlogic/ad82584f.c

index 1cfb5c2..51f61b0 100644 (file)
@@ -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;
 }