diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2010-09-10 13:24:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-11 05:45:00 -0400 |
commit | 6946e037ee9e94a560a931fdb2e3e66964216cfe (patch) | |
tree | ec8c9c47bbea26eaf9c6b7a2232bc825085e5c22 /sound/soc/codecs | |
parent | e5eec34c68eab7af8fe10d070cb0c948f73a8464 (diff) |
ASoC: Fix off-by-one bug in WM8962 register cache size configuration
This is a simple off-by-one bug, the size of the register cache is
incorrectly set to the maximum register index. Fix it by adding one.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 58ba2d3ca533..30984dd15c48 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -1780,7 +1780,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8962 = { | |||
1780 | .remove = wm8962_remove, | 1780 | .remove = wm8962_remove, |
1781 | .resume = wm8962_resume, | 1781 | .resume = wm8962_resume, |
1782 | .set_bias_level = wm8962_set_bias_level, | 1782 | .set_bias_level = wm8962_set_bias_level, |
1783 | .reg_cache_size = WM8962_MAX_REGISTER, | 1783 | .reg_cache_size = WM8962_MAX_REGISTER + 1, |
1784 | .reg_word_size = sizeof(u16), | 1784 | .reg_word_size = sizeof(u16), |
1785 | .reg_cache_default = wm8962_reg, | 1785 | .reg_cache_default = wm8962_reg, |
1786 | .volatile_register = wm8962_volatile_register, | 1786 | .volatile_register = wm8962_volatile_register, |