diff options
author | Nikesh Oswal <noswal@nvidia.com> | 2011-11-18 14:59:12 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:50:23 -0800 |
commit | ab8abd6275cfe826002956d13a72d290ae344474 (patch) | |
tree | dee88307d894907f8894e97d2db1786003230f18 /sound/soc/tegra/tegra30_dam.h | |
parent | 9f655d719048c0eda67e041f365325f07ac0eef5 (diff) |
asoc: tegra: add power management functionality in t30 drivers
add code for handling register save/restore and clocks
disable/enable during suspend/resume
Bug: 862023
Change-Id: I1b709b6bf674c9a2d93c2a21c1f44bbadff64aab
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/65478
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Rebase-Id: R2383486dac0892e317dbd25044df59284031b6c4
Diffstat (limited to 'sound/soc/tegra/tegra30_dam.h')
-rw-r--r-- | sound/soc/tegra/tegra30_dam.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/tegra/tegra30_dam.h b/sound/soc/tegra/tegra30_dam.h index 199730fc1563..ea76a2315655 100644 --- a/sound/soc/tegra/tegra30_dam.h +++ b/sound/soc/tegra/tegra30_dam.h @@ -129,7 +129,9 @@ struct tegra30_dam_context { bool ch_alloc[TEGRA30_DAM_NUM_INPUT_CHANNELS]; int ch_enable_refcnt[TEGRA30_DAM_NUM_INPUT_CHANNELS]; int ch_insamplerate[TEGRA30_DAM_NUM_INPUT_CHANNELS]; - int ctrlreg_cache[TEGRA30_DAM_CTRL_REGINDEX + 1]; +#ifdef CONFIG_PM + int reg_cache[TEGRA30_DAM_CTRL_REGINDEX + 1]; +#endif struct clk *dam_clk; bool in_use; void __iomem *damregs; @@ -143,7 +145,6 @@ struct tegra30_dam_src_step_table { }; #ifdef CONFIG_PM -int tegra30_dam_suspend(int ifc); int tegra30_dam_resume(int ifc); #endif void tegra30_dam_disable_clock(int ifc); |