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 <xing.wang@amlogic.com>

Conflicts:
	sound/soc/codecs/amlogic/ad82584f.c
This commit is contained in:
Xing Wang
2018-12-26 19:42:37 +08:00
committed by Luke Go
parent da0fc7e205
commit b1e14283bb

View File

@@ -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;
}