[alsa-devel] [PATCH 1/2] ASoC: uda1380: make driver more powersave-friendly

Mark Brown broonie at opensource.wolfsonmicro.com
Sat Aug 28 11:14:46 CEST 2010


On Sat, Aug 28, 2010 at 12:07:54PM +0300, Vasily Khoruzhick wrote:

> It seems that you misunderstood me, chip defaults are ok for first power up, 
> but resume is not first power up and codec defaults differ from cache, so we 
> want to sync cache with codec regs on resume, but it is not possible to sync 
> mixer regs until i2s clock is not applied, so we just mark them as dirty to 
> sync them later (just before playback, when i2s clock is already applied)

The normal flow for this is to mark things as dirty when you cut the
power rather than in one particular restore path - that is more robust
against code changes which alter the set of situations which can turn
off the power.


More information about the Alsa-devel mailing list