diff options
author | Koro Chen <koro.chen@mediatek.com> | 2015-07-22 17:39:35 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-22 11:11:18 +0100 |
commit | 775b07de4fa470ac10cd74f1b1a8d441b4f5838d (patch) | |
tree | ad567428fbf34b608dd911cf8a9c29538f3a1030 /sound/soc/mediatek/mtk-afe-common.h | |
parent | 27bc1dd24488ce2a13e5c59aaf6d3202e519e21e (diff) | |
download | op-kernel-dev-775b07de4fa470ac10cd74f1b1a8d441b4f5838d.zip op-kernel-dev-775b07de4fa470ac10cd74f1b1a8d441b4f5838d.tar.gz |
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>
Diffstat (limited to 'sound/soc/mediatek/mtk-afe-common.h')
-rw-r--r-- | sound/soc/mediatek/mtk-afe-common.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/mediatek/mtk-afe-common.h b/sound/soc/mediatek/mtk-afe-common.h index a88b175..cc4393c 100644 --- a/sound/soc/mediatek/mtk-afe-common.h +++ b/sound/soc/mediatek/mtk-afe-common.h @@ -98,12 +98,4 @@ struct mtk_afe_memif { const struct mtk_afe_irq_data *irqdata; }; -struct mtk_afe { - /* address for ioremap audio hardware register */ - void __iomem *base_addr; - struct device *dev; - struct regmap *regmap; - struct mtk_afe_memif memif[MTK_AFE_MEMIF_NUM]; - struct clk *clocks[MTK_CLK_NUM]; -}; #endif |