[alsa-devel] [PATCH] ASoC: sgtl5000: Fix driver probe after reset

Mark Brown broonie at kernel.org
Thu May 9 11:30:46 CEST 2013

On Wed, May 08, 2013 at 02:04:06PM -0300, Fabio Estevam wrote:

> As the sgtl5000 codec did not go through a real reset, we cannot rely on the 
> reg_defaults array, since these are only valid after a clean power-on reset.

> To fix this issue, use 'reg_defaults_raw' which tells the regcache driver
> to actually read the codec registers and then fill the cache.

No, this isn't what raw defaults are for - they're for cases where the
power on defaults can be changed (eg, by setting pins on the board).
If we do this cases where we rely on defaults actually being chip
defaults can get broken.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130509/86fe8805/attachment.sig>

More information about the Alsa-devel mailing list