Skip to content

Commit

Permalink
ASoC: cs35l34: Add missing regmap use_single config
Browse files Browse the repository at this point in the history
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: 8cb9b00 ("ASoC: cs35l34: Minor error paths fixups")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210511175718.15416-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
charleskeepax authored and broonie committed May 12, 2021
1 parent 27fb585 commit 2a682f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/cs35l34.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ static struct regmap_config cs35l34_regmap = {
.readable_reg = cs35l34_readable_register,
.precious_reg = cs35l34_precious_register,
.cache_type = REGCACHE_RBTREE,

.use_single_read = true,
.use_single_write = true,
};

static int cs35l34_handle_of_data(struct i2c_client *i2c_client,
Expand Down

0 comments on commit 2a682f8

Please sign in to comment.