[alsa-devel] [PATCH] ASoC: Add MAX9850 codec driver

Dimitris Papastamos dp at opensource.wolfsonmicro.com
Tue Mar 8 13:09:52 CET 2011


On Tue, Mar 08, 2011 at 12:52:54PM +0100, Christian Glindkamp wrote:
> Do I understand it correctly, that all register writes that I do in the
> probe function would be overridden by the syncing so they would have to
> be moved to the standby code or put into the register cache array as
> default values?

If you do any registers writes in the probe() function, in effect you
will be changing the hardware state as well as the cache state.  If
after that point you sync the cache to the hardware, the altered cache
will be synced, not the defaults cache.  The core makes a copy of the
defaults cache and uses that for syncing, or if you don't provide a
default's cache it will use a zero-ed cache.

Note that volatile registers don't affect the cache, they bypass it
completely.

Thanks,
Dimitris


More information about the Alsa-devel mailing list