Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm8974: set cache type for regmap

Attempting to use this codec driver triggers a BUG() in regcache_sync()
since no cache type is set. The register map of this device is fairly
small and has few holes so a flat cache is suitable.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org

authored by

Mans Rullgard and committed by
Mark Brown
1ea5998a 8005c49d

+1
+1
sound/soc/codecs/wm8974.c
··· 574 574 .max_register = WM8974_MONOMIX, 575 575 .reg_defaults = wm8974_reg_defaults, 576 576 .num_reg_defaults = ARRAY_SIZE(wm8974_reg_defaults), 577 + .cache_type = REGCACHE_FLAT, 577 578 }; 578 579 579 580 static int wm8974_probe(struct snd_soc_codec *codec)