All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Oder Chiou <oder_chiou@realtek.com>, Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>
Subject: [PATCH 04/16] ASoC: rt1308: Use maple tree register cache
Date: Sat, 10 Jun 2023 14:57:50 +0100	[thread overview]
Message-ID: <20230609-asoc-rt-maple-v1-4-729c6553cdcf@kernel.org> (raw)
In-Reply-To: <20230609-asoc-rt-maple-v1-0-729c6553cdcf@kernel.org>

The rt1308 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>
---
 sound/soc/codecs/rt1308.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1308.c b/sound/soc/codecs/rt1308.c
index d2a8e9fe3e23..c7da8f5459d4 100644
--- a/sound/soc/codecs/rt1308.c
+++ b/sound/soc/codecs/rt1308.c
@@ -773,7 +773,7 @@ static const struct regmap_config rt1308_regmap = {
 	.max_register = RT1308_MAX_REG,
 	.volatile_reg = rt1308_volatile_register,
 	.readable_reg = rt1308_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt1308_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt1308_reg),
 	.use_single_read = true,

-- 
2.30.2


  parent reply	other threads:[~2023-06-10 14:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
2023-06-10 13:57 ` [PATCH 01/16] ASoC: rt1011: Use " Mark Brown
2023-06-10 13:57 ` [PATCH 02/16] ASoC: rt1019: " Mark Brown
2023-06-10 13:57 ` [PATCH 03/16] ASoC: rt1305: " Mark Brown
2023-06-10 13:57 ` Mark Brown [this message]
2023-06-10 13:57 ` [PATCH 05/16] ASoC: rt5514: " Mark Brown
2023-06-10 13:57 ` [PATCH 06/16] ASoC: rt5616: " Mark Brown
2023-06-10 13:57 ` [PATCH 07/16] ASoC: rt5631: " Mark Brown
2023-06-10 13:57 ` [PATCH 08/16] ASoC: rt5640: " Mark Brown
2023-06-10 13:57 ` [PATCH 09/16] ASoC: rt5645: " Mark Brown
2023-06-10 13:57 ` [PATCH 10/16] ASoC: rt5651: " Mark Brown
2023-06-10 13:57 ` [PATCH 11/16] ASoC: rt5660: " Mark Brown
2023-06-10 13:57 ` [PATCH 12/16] ASoC: rt5665: " Mark Brown
2023-06-10 13:57 ` [PATCH 13/16] " Mark Brown
2023-06-10 13:58 ` [PATCH 14/16] ASoC: rt5668: " Mark Brown
2023-06-10 13:58 ` [PATCH 15/16] ASoC: rt5670: " Mark Brown
2023-06-10 13:58 ` [PATCH 16/16] ASoC: rt5682: " Mark Brown
2023-06-15 12:53 ` [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use " 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=20230609-asoc-rt-maple-v1-4-729c6553cdcf@kernel.org \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=lgirdwood@gmail.com \
    --cc=oder_chiou@realtek.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.