On Tue, May 19, 2015 at 03:57:42PM +0100, Richard Fitzgerald wrote: > The WM5102, WM8997, WM8998 and WM1814 codecs have an internal dynamic > clock booster. When this booster is active, the DCVDD voltage must be > increased. If all the currently active audio paths can run with the root > SYSCLK we can disable the booster, allowing us to turn down DCVDD voltage > to save power. > > Previously this was being done by having the booster enable bit set > as a side-effect of the LDO1 regulator driver, which is unexpected > behaviour of a regulator and not compatible with using an external > regulator. > > This patch exports functions to handle the booster enable and > DCVDD voltage, with each relevant subsystem flagging whether it can > currently run without the booster. Note that these subsystems are > stateless and none of them are nestable, so there's no need for > reference counting, we only need a simple boolean for each subsystem > of whether their current condition could require the booster or will > allow us to turn the codec down to lower operating power. > > Signed-off-by: Richard Fitzgerald <r...@opensource.wolfsonmicro.com> > ---
Reviewed-by: Charles Keepax <ckee...@opensource.wolfsonmicro.com> Thanks, Charles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/