9 May
2013
9 May
'13
11:30 a.m.
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.