ASoC: mediatek: Add suspend/resume callbacks
Subsystems (3)
PATCH 1/1 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.
--- sound/soc/mediatek/mtk-afe-common.h | 8 ---- sound/soc/mediatek/mtk-afe-pcm.c | 77 +++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 8 deletions(-)
sound/soc/mediatek/mtk-afe-common.h +0 -8
@@ -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
sound/soc/mediatek/mtk-afe-pcm.c +77 -0
124 lines not on this page · raw message
Signature · 1 line
1.8.1.1.dirty
Mark Brown
maintainerApplied "ASoC: mediatek: Add suspend/resume callbacks" to the asoc tree
The patch
ASoC: mediatek: Add suspend/resume callbacks
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
775b07de4fa470ac10cd74f1b1a8d441b4f5838dMon Sep 17 00:00:00 2001
From: Koro Chen <[email protected]>
Date: Wed, 22 Jul 2015 17:39:35 +0800
Subject: [PATCH] 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.
--- sound/soc/mediatek/mtk-afe-common.h | 8 ---- sound/soc/mediatek/mtk-afe-pcm.c | 77 +++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 8 deletions(-)
sound/soc/mediatek/mtk-afe-common.h +0 -8
@@ -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
sound/soc/mediatek/mtk-afe-pcm.c +77 -0
124 lines not on this page · raw message
Signature · 1 line
2.1.4