Skip to content

Commit

Permalink
ALSA: hda: Use maple tree register cache
Browse files Browse the repository at this point in the history
HDA 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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
broonie authored and tiwai committed Jun 11, 2023
1 parent 10b98a4 commit 1525307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/hda/hdac_regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static const struct regmap_config hda_regmap_cfg = {
.writeable_reg = hda_writeable_reg,
.readable_reg = hda_readable_reg,
.volatile_reg = hda_volatile_reg,
.cache_type = REGCACHE_RBTREE,
.cache_type = REGCACHE_MAPLE,
.reg_read = hda_reg_read,
.reg_write = hda_reg_write,
.use_single_read = true,
Expand Down

0 comments on commit 1525307

Please sign in to comment.