Skip to contentSkip to conversation

ASoC: Use maple tree register cache for Everest Semi CODECs

PATCH In review Mark Brown 1 participant 4 messages Jun 10, 2023 – Jun 20, 2023

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

cover ASoC: Use maple tree register cache for Everest Semi CODECs

Several of the Everest Semi CODECs only support single register read and write operations and therefore do not benefit from using the rbtree cache over the maple tree cache, convert them to the more modern maple tree cache.

---
Mark Brown (2):
ASoC: es8316: Use maple tree register cache
ASoC: es8328: Use maple tree register cache

 sound/soc/codecs/es8316.c | 2 +-
 sound/soc/codecs/es8328.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

---
base-commit: 9561de3a55bed6bdd44a12820ba81ec416e705a7
change-id: 20230609-asoc-es-maple-3b696631e609

Best regards,

Signature · 1 line
Mark Brown <[email protected]>
author maintainer
#1 lore raw

PATCH 1/2 ASoC: es8316: Use maple tree register cache

The es8316 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.

---
 sound/soc/codecs/es8316.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/es8316.c +1 -1
index a27d80956459..1ee95e89c3a7 100644
@@ -820,7 +820,7 @@ static const struct regmap_config es8316_regmap = {
 	.use_single_write = true,
 	.max_register = 0x53,
 	.volatile_reg = es8316_volatile_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static int es8316_i2c_probe(struct i2c_client *i2c_client)
Signature · 1 line
2.30.2
author maintainer
#2 lore raw

PATCH 2/2 ASoC: es8328: Use maple tree register cache

In reply to Mark Brown

The es8328 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.

---
 sound/soc/codecs/es8328.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/es8328.c +1 -1
index 160adc706cc6..0bd9ba5a11b4 100644
@@ -822,7 +822,7 @@ const struct regmap_config es8328_regmap_config = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= ES8328_REG_MAX,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 	.use_single_read = true,
 	.use_single_write = true,
 };
Signature · 1 line
2.30.2
author maintainer
#3 lore raw
In reply to Mark Brown
Quoted 6 lines · Mark Brown

Several of the Everest Semi CODECs only support single register read and write operations and therefore do not benefit from using the rbtree cache over the maple tree cache, convert them to the more modern maple tree cache.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: es8316: Use maple tree register cache

      commit: 7ae8039f87918e2f108d352f228e2ccee03994bc
[2/2] ASoC: es8328: Use maple tree register cache
      commit: 9321015a5f40891e7cb094c6f68f6d4f67b5f3dc

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark