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>
此提交包含在:
@@ -750,7 +750,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8940 = {
|
||||
.suspend = wm8940_suspend,
|
||||
.resume = wm8940_resume,
|
||||
.set_bias_level = wm8940_set_bias_level,
|
||||
.reg_cache_size = sizeof(wm8940_reg_defaults),
|
||||
.reg_cache_size = ARRAY_SIZE(wm8940_reg_defaults),
|
||||
.reg_word_size = sizeof(u16),
|
||||
.reg_cache_default = wm8940_reg_defaults,
|
||||
};
|
||||
|
新增問題並參考
封鎖使用者