From: Mark Brown <broonie@kernel.org>
To: Liam Girdwood <lgirdwood@gmail.com>, Peter Rosin <peda@axentia.se>
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: [PATCH 09/17] ASoC: max98396: Use maple tree register cache
Date: Mon, 11 Nov 2024 18:47:41 +0000 [thread overview]
Message-ID: <20241111-asoc-maxim-maple-v1-9-baa315dc546b@kernel.org> (raw)
In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org>
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@kernel.org>
---
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
next prev parent reply other threads:[~2024-11-11 18:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 18:47 [PATCH 00/17] ASoC: maxim: Convert to use maple tree caches Mark Brown
2024-11-11 18:47 ` [PATCH 01/17] ASoC: max98088: Use maple tree register cache Mark Brown
2024-11-11 18:47 ` [PATCH 02/17] ASoC: max98095: " Mark Brown
2024-11-11 18:47 ` [PATCH 03/17] " Mark Brown
2024-11-11 18:47 ` [PATCH 04/17] ASoC: max98363: " Mark Brown
2024-11-11 18:47 ` [PATCH 05/17] ASoC: max98371: " Mark Brown
2024-11-11 18:47 ` [PATCH 06/17] ASoC: max98373: " Mark Brown
2024-11-11 18:47 ` [PATCH 07/17] ASoC: max98388: " Mark Brown
2024-11-11 18:47 ` [PATCH 08/17] ASoC: max98390: " Mark Brown
2024-11-11 18:47 ` Mark Brown [this message]
2024-11-11 18:47 ` [PATCH 10/17] ASoC: max98504: " Mark Brown
2024-11-11 18:47 ` [PATCH 11/17] ASoC: max98520: " Mark Brown
2024-11-11 18:47 ` [PATCH 12/17] ASoC: max9860: " Mark Brown
2024-11-11 18:47 ` [PATCH 13/17] ASoC: max9867: " Mark Brown
2024-11-11 18:47 ` [PATCH 14/17] ASoC: max9877: " Mark Brown
2024-11-11 18:47 ` [PATCH 15/17] ASoC: max98925: " Mark Brown
2024-11-11 18:47 ` [PATCH 16/17] ASoC: max98926: " Mark Brown
2024-11-11 18:47 ` [PATCH 17/17] ASoC: max98927: " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241111-asoc-maxim-maple-v1-9-baa315dc546b@kernel.org \
--to=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=peda@axentia.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®