ASoC: mediatek: Add suspend/resume callbacks
authorKoro Chen <koro.chen@mediatek.com>
Wed, 22 Jul 2015 09:39:35 +0000 (17:39 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2015 10:11:18 +0000 (11:11 +0100)
commit775b07de4fa470ac10cd74f1b1a8d441b4f5838d
treead567428fbf34b608dd911cf8a9c29538f3a1030
parent27bc1dd24488ce2a13e5c59aaf6d3202e519e21e
ASoC: mediatek: Add suspend/resume callbacks

This adds suspend/resume callbacks, which are common for each DAI.
To be able to continue the last playback/capture after resume
when suspend was done during a playback/capture, in the callbacks
we do backup/restore of registers which were set before prepare stage.
Registers to be backup/restore are defined in a backup list array.

Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mtk-afe-common.h
sound/soc/mediatek/mtk-afe-pcm.c