path: root/sound
diff options
authorCharles Keepax <ckeepax@opensource.cirrus.com>2021-05-11 18:57:17 +0100
committerMark Brown <broonie@kernel.org>2021-05-12 13:00:39 +0100
commitb1078e9869531af4f968ba1b9edad51264943bb8 (patch)
tree9def6b29374376d573fe344c4aa65fc9c5df013a /sound
parent2a682f821941e28fb9ceaa1dd03ccfaea0448101 (diff)
ASoC: cs35l32: Add missing regmap use_single config
This device requires single register transactions, this will definely cause problems with the new device ID parsing which uses regmap_bulk_read but might also show up in the cache sync sometimes. Add the missing flags to the regmap_config. Fixes: 283160f1419d ("ASoC: cs35l32: Minor error paths fixups") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20210511175718.15416-4-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c
index f4067230ac42..88e79b9f52ed 100644
--- a/sound/soc/codecs/cs35l32.c
+++ b/sound/soc/codecs/cs35l32.c
@@ -261,6 +261,9 @@ static const struct regmap_config cs35l32_regmap = {
.readable_reg = cs35l32_readable_register,
.precious_reg = cs35l32_precious_register,
.cache_type = REGCACHE_RBTREE,
+ .use_single_read = true,
+ .use_single_write = true,
static int cs35l32_handle_of_data(struct i2c_client *i2c_client,

Privacy Policy