diff options
author | John Grossman <johngro@google.com> | 2011-07-12 10:34:36 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-08-30 09:54:54 -0700 |
commit | 3a3cc9a70330ab9c5f00bcbe5f741631fd1f42a5 (patch) | |
tree | c3fe0320733583e128e93cf4bab2f5e4c7f7e927 /sound/soc/omap/omap-mcasp.h | |
parent | 1e0864edf65ffc741a826ebdd78603898b5c59e8 (diff) | |
download | kernel_samsung_espresso10-3a3cc9a70330ab9c5f00bcbe5f741631fd1f42a5.zip kernel_samsung_espresso10-3a3cc9a70330ab9c5f00bcbe5f741631fd1f42a5.tar.gz kernel_samsung_espresso10-3a3cc9a70330ab9c5f00bcbe5f741631fd1f42a5.tar.bz2 |
ASoC: OMAP4: Make supported sample rates and clock gating dynamic
- Instead of requiring the BSP to deliver a list of clock
dividers and an expected fClk rate, simply compute the
rates which can be produced from the provided fClk at
runtime.
- Instead of requiring the BSP to enable the fClk and leave
it enabled at all times, have the driver enable and
disable the clock when it is needed in an attempt to save
some power.
Change-Id: I5c70c8a8179541b570c95046fb96b1a811abb1b7
Signed-off-by: Simon Wilson <simonwilson@google.com>
Diffstat (limited to 'sound/soc/omap/omap-mcasp.h')
-rw-r--r-- | sound/soc/omap/omap-mcasp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/omap/omap-mcasp.h b/sound/soc/omap/omap-mcasp.h index 764a537..25b1aa1 100644 --- a/sound/soc/omap/omap-mcasp.h +++ b/sound/soc/omap/omap-mcasp.h @@ -28,10 +28,9 @@ struct omap_mcasp { struct device *dev; void __iomem *base; struct clk *fclk; - unsigned long fclk_rate; - struct omap_mcasp_configs *configs; - unsigned int num_configs; + int clk_active; int active; + struct omap_hwmod *oh; }; #endif /* OMAP_MCASP_H */ |