diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2010-09-10 13:14:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-10 17:21:23 -0400 |
commit | e5eec34c68eab7af8fe10d070cb0c948f73a8464 (patch) | |
tree | bcfa506768bd8bbaa0302bb123234e7ba64a3f22 /sound/soc/codecs/wm9081.c | |
parent | c7bad06f1305be2cfa68ad58dc3391261162db4e (diff) |
ASoC: Fix incorrect register cache size configuration
The reg_cache_size is the number of elements in the register cache,
not the size of the cache itself. This is not a problem if the size
of each element of the cache is 1 byte but it matters in any other
case.
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/wm9081.c')
-rw-r--r-- | sound/soc/codecs/wm9081.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c index 00249d5b6793..ecc7c37180c7 100644 --- a/sound/soc/codecs/wm9081.c +++ b/sound/soc/codecs/wm9081.c | |||
@@ -1317,7 +1317,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm9081 = { | |||
1317 | .suspend = wm9081_suspend, | 1317 | .suspend = wm9081_suspend, |
1318 | .resume = wm9081_resume, | 1318 | .resume = wm9081_resume, |
1319 | .set_bias_level = wm9081_set_bias_level, | 1319 | .set_bias_level = wm9081_set_bias_level, |
1320 | .reg_cache_size = sizeof(wm9081_reg_defaults), | 1320 | .reg_cache_size = ARRAY_SIZE(wm9081_reg_defaults), |
1321 | .reg_word_size = sizeof(u16), | 1321 | .reg_word_size = sizeof(u16), |
1322 | .reg_cache_default = wm9081_reg_defaults, | 1322 | .reg_cache_default = wm9081_reg_defaults, |
1323 | .volatile_register = wm9081_volatile_register, | 1323 | .volatile_register = wm9081_volatile_register, |