ASoC: wsa883x: Update to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Wed, 12 Jul 2023 18:29:35 +0000 (19:29 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2023 05:15:23 +0000 (06:15 +0100)
The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache. In
v6.5 it has also acquired the ability to generate multi-register writes in
sync operations, bringing performance up to parity with the rbtree cache
there.

Update the wsa883x driver to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230712-asoc-qcom-maple-v1-4-15f8089664b9@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa883x.c

index e40d583a1ce64aac9b9eb6c17a20a9288b9fa5ed..197fae23762f533b03b7364efe44e66ad9701639 100644 (file)
@@ -938,7 +938,7 @@ static bool wsa883x_volatile_register(struct device *dev, unsigned int reg)
 static struct regmap_config wsa883x_regmap_config = {
        .reg_bits = 32,
        .val_bits = 8,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
        .reg_defaults = wsa883x_defaults,
        .max_register = WSA883X_MAX_REGISTER,
        .num_reg_defaults = ARRAY_SIZE(wsa883x_defaults),