audio: codec: fix to resume ad82584's volume after suspend [1/1]
authorXing Wang <xing.wang@amlogic.com>
Wed, 26 Dec 2018 11:42:37 +0000 (19:42 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 28 Dec 2018 11:55:11 +0000 (03:55 -0800)
commit029980f85f5dfb6f769c0254ce986f98429241d8
tree4c93ff6d3a9f4c29de190401dcee90b8449f4b33
parentf4761444c4c99ff89fdc5acafb2c384d5a3fb2bd
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>
sound/soc/codecs/amlogic/ad82584f.c
sound/soc/codecs/amlogic/ad82584f.h