From b1e14283bb760f5d8c08a663dae30425bb563d89 Mon Sep 17 00:00:00 2001 From: Xing Wang Date: Wed, 26 Dec 2018 19:42:37 +0800 Subject: [PATCH] audio: codec: fix to resume ad82584's volume after suspend [1/1] PD#SWPL-3456 Problem: 1) After suspend, volume is not resume 2) ARC connected, still sound out from spk Solution: 1) save channel volume when suspend, then resume the volume 2) add mute mixer control for ad82584 Verify: x301 Change-Id: Ic6e7502e3f9689cc2d1053295f26aaf4d5be2603 Signed-off-by: Xing Wang Conflicts: sound/soc/codecs/amlogic/ad82584f.c --- sound/soc/codecs/amlogic/ad82584f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/amlogic/ad82584f.c b/sound/soc/codecs/amlogic/ad82584f.c index c66a18b62512..1e6bb4b57f43 100644 --- a/sound/soc/codecs/amlogic/ad82584f.c +++ b/sound/soc/codecs/amlogic/ad82584f.c @@ -831,7 +831,7 @@ static int ad82584f_init(struct snd_soc_codec *codec) udelay(100); /* unmute, default power-on is mute. */ - snd_soc_write(codec, 0x02, 0x00); + snd_soc_write(codec, MUTE, 0x00); return 0; }