diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-05-30 10:23:49 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-06-10 14:07:24 +0200 |
commit | bbfa26c530c108ddb8f5305a1a93756b6a767d88 (patch) | |
tree | c99417326f40d47c103475f33a6afedaa0ab9868 /sound/soc/omap/mcbsp.h | |
parent | ASoC: omap-mcbsp: Rename omap_mcbsp_sysfs_remove() to omap_mcbsp_cleanup() (diff) | |
download | linux-bbfa26c530c108ddb8f5305a1a93756b6a767d88.tar.xz linux-bbfa26c530c108ddb8f5305a1a93756b6a767d88.zip |
ASoC: omap-mcbsp: sidetone: Use the new callback for iclk handling
The McBSP sidetone (in OMAP3 McBSP2 and 3 module) is working with the
module's interface clock. When the sidetone is enabled the iclk must not
idle because it will result in choppy sidetone.
Switch to use the new callback for handling the iclk allow/deny idle
configuration.
For this the driver needs to get the module's ick clock and pass the clk
pointer to the callback.
In DT boot, the pdata-quirk is going to set up the callback for the driver
so save it if it is set in the pdata of the device.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'sound/soc/omap/mcbsp.h')
-rw-r--r-- | sound/soc/omap/mcbsp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/omap/mcbsp.h b/sound/soc/omap/mcbsp.h index ce6cbbf923a4..61e93b1c185d 100644 --- a/sound/soc/omap/mcbsp.h +++ b/sound/soc/omap/mcbsp.h @@ -280,6 +280,7 @@ struct omap_mcbsp_reg_cfg { struct omap_mcbsp_st_data { void __iomem *io_base_st; + struct clk *mcbsp_iclk; bool running; bool enabled; s16 taps[128]; /* Sidetone filter coefficients */ |