diff options
author | Mark Brown <broonie@kernel.org> | 2023-06-10 14:58:00 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-06-19 12:58:45 +0100 |
commit | 470cb1d9b605557696791ca0ef6c151c3d92212d (patch) | |
tree | 681f380d4ee42db6000e1cc759ceb29db66632b8 /sound/soc/codecs | |
parent | 487c9129c9d856eb8dd0dfa6e09c646649c91399 (diff) | |
download | linux-stable-470cb1d9b605557696791ca0ef6c151c3d92212d.tar.gz linux-stable-470cb1d9b605557696791ca0ef6c151c3d92212d.tar.bz2 linux-stable-470cb1d9b605557696791ca0ef6c151c3d92212d.zip |
ASoC: rt5668: Use maple tree register cache
The rt5668 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230609-asoc-rt-maple-v1-14-729c6553cdcf@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/rt5668.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c index 13fec49d4824..f04c810fd710 100644 --- a/sound/soc/codecs/rt5668.c +++ b/sound/soc/codecs/rt5668.c @@ -2370,7 +2370,7 @@ static const struct regmap_config rt5668_regmap = { .max_register = RT5668_I2C_MODE, .volatile_reg = rt5668_volatile_register, .readable_reg = rt5668_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = rt5668_reg, .num_reg_defaults = ARRAY_SIZE(rt5668_reg), .use_single_read = true, |