[PATCH 09/17] ASoC: max98396: Use maple tree register cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



The maple tree register cache uses a more modern data structure than the
rbtree cache and makes optimisation choices that are more appropriate for
current hardware, unless there is a specific reason to do something else
then maple is a better choice for most devices. Switch to it.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
 sound/soc/codecs/max98396.c | 4 ++--
 sound/soc/codecs/max9850.c  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/max98396.c b/sound/soc/codecs/max98396.c
index e52bb2266fa16792ad5dba79c515b5900ade4b2a..345e04da6d3782b296768d836eb4717d1ea39f7c 100644
--- a/sound/soc/codecs/max98396.c
+++ b/sound/soc/codecs/max98396.c
@@ -1656,7 +1656,7 @@ static const struct regmap_config max98396_regmap = {
 	.num_reg_defaults = ARRAY_SIZE(max98396_reg),
 	.readable_reg = max98396_readable_register,
 	.volatile_reg = max98396_volatile_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static const struct regmap_config max98397_regmap = {
@@ -1667,7 +1667,7 @@ static const struct regmap_config max98397_regmap = {
 	.num_reg_defaults = ARRAY_SIZE(max98397_reg),
 	.readable_reg = max98397_readable_register,
 	.volatile_reg = max98397_volatile_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static void max98396_read_device_property(struct device *dev,
diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c
index c395132689b4ef2e0bca6d1e9a2f3da4990b8600..9ac0b045bc619cd9d55a8083e88a4c2b78fd8cea 100644
--- a/sound/soc/codecs/max9850.c
+++ b/sound/soc/codecs/max9850.c
@@ -46,7 +46,7 @@ static const struct regmap_config max9850_regmap = {
 
 	.max_register = MAX9850_DIGITAL_AUDIO,
 	.volatile_reg = max9850_volatile_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static const DECLARE_TLV_DB_RANGE(max9850_tlv,

-- 
2.39.5





[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux