[alsa-devel] [PATCH 3/3] ASoC: soc-cache: Ignore !codec->writable_register() during syncing

Mark Brown broonie at opensource.wolfsonmicro.com
Sat Mar 26 18:29:41 CET 2011


On Thu, Mar 24, 2011 at 01:45:19PM +0000, Dimitris Papastamos wrote:
> When syncing the cache, if the driver has given us a writable_register()
> callback, use it to not sync any non-writable registers.
> 
> Signed-off-by: Dimitris Papastamos <dp at opensource.wolfsonmicro.com>

Thinking about this again I'm actually thinking we should really be
warning if we ever find a need to sync a non-writable register - given
that we suppress writes of the default value this'd mean that we'd have
had to have written to the register at some point in the past which
means that something messed up somewhere.


More information about the Alsa-devel mailing list