diff options
author | Mans Rullgard <mans@mansr.com> | 2015-12-11 11:27:08 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-28 21:57:08 -0800 |
commit | f4e1e1f2924e1d199182b7ad4643085dd61c11e0 (patch) | |
tree | 12b78ad80d13daced6bc960079840201701eb4ed | |
parent | b0f400767dccda1ebe81f6d450e99a7e60bae483 (diff) | |
download | linux-stable-f4e1e1f2924e1d199182b7ad4643085dd61c11e0.tar.gz linux-stable-f4e1e1f2924e1d199182b7ad4643085dd61c11e0.tar.bz2 linux-stable-f4e1e1f2924e1d199182b7ad4643085dd61c11e0.zip |
ASoC: wm8974: set cache type for regmap
commit 1ea5998afe903384ddc16391d4c023cd4c867bea upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | sound/soc/codecs/wm8974.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index 15f45c7bd833..31bd73066790 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c @@ -587,6 +587,7 @@ static const struct regmap_config wm8974_regmap = { .max_register = WM8974_MONOMIX, .reg_defaults = wm8974_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8974_reg_defaults), + .cache_type = REGCACHE_FLAT, }; static int wm8974_probe(struct snd_soc_codec *codec) |