Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1289455 > unrolled thread
| Started by | Mans Rullgard <mans@mansr.com> |
|---|---|
| First post | 2015-12-11 12:30 +0100 |
| Last post | 2015-12-11 14:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] ASoC: wm8974: set cache type for regmap Mans Rullgard <mans@mansr.com> - 2015-12-11 12:30 +0100
Re: [PATCH] ASoC: wm8974: set cache type for regmap Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-12-11 14:00 +0100
| From | Mans Rullgard <mans@mansr.com> |
|---|---|
| Date | 2015-12-11 12:30 +0100 |
| Subject | [PATCH] ASoC: wm8974: set cache type for regmap |
| Message-ID | <qEu3G-3z9-57@gated-at.bofh.it> |
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>
---
sound/soc/codecs/wm8974.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c
index 45ba828..c284c7b 100644
--- a/sound/soc/codecs/wm8974.c
+++ b/sound/soc/codecs/wm8974.c
@@ -574,6 +574,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)
--
2.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> |
|---|---|
| Date | 2015-12-11 14:00 +0100 |
| Message-ID | <qEvsK-4sJ-13@gated-at.bofh.it> |
| In reply to | #1289455 |
On Fri, Dec 11, 2015 at 11:27:08AM +0000, Mans Rullgard wrote: > 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> Thanks, Charles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web