[alsa-devel] [PATCH 2/2] ASoC: cs42l51: Fix off-by-one for reg_cache_size

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Nov 23 12:37:02 CET 2011

On Wed, Nov 23, 2011 at 12:46:11PM +0800, Axel Lin wrote:
> 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.

Applied, thanks.

More information about the Alsa-devel mailing list