Axel Lin b284362b6b ASoC: cs42l51: Fix off-by-one for reg_cache_size
Just checking the code in cs42l51_fill_cache():
The cache pointer points to codec->reg_cache + 1.
I think it is because CS42L51_FIRSTREG is 0x01,
so codec->reg_cache[0] is not used here.

Then we read CS42L51_NUMREGS bytes to cache.
So we need reg_cache_size to be CS42L51_NUMREGS + 1.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-11-23 11:34:21 +00:00
..
2011-09-26 09:58:23 +01:00
2011-03-30 07:17:01 +09:00
2011-11-20 15:46:24 +01:00
2011-08-17 00:53:54 +09:00
2011-06-16 11:24:17 +01:00
2011-06-28 17:11:20 +01:00
2011-10-20 15:02:09 +01:00
2011-05-19 14:10:45 -07:00
2008-11-17 11:45:39 +00:00
2011-03-11 12:07:31 +00:00
2011-03-11 12:01:44 +00:00
2011-11-20 15:46:25 +01:00
2011-09-21 15:52:23 +01:00
2011-11-20 15:46:50 +01:00
2011-03-31 11:26:23 -03:00
2011-02-25 12:58:36 +00:00
2010-11-24 11:33:12 +00:00
2010-11-06 11:35:39 -04:00
2010-09-30 13:32:21 -07:00
2011-03-31 11:26:23 -03:00
2011-11-20 15:46:50 +01:00
2011-07-15 23:39:53 +09:00
2010-11-22 14:04:41 +00:00
2010-09-15 16:11:24 +01:00
2011-11-20 15:46:51 +01:00
2011-08-08 14:30:37 +09:00
2011-11-20 15:46:51 +01:00
2011-11-20 15:46:52 +01:00