Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: da7213: Populate max_register to regmap_config

On the Renesas RZ/G3S SMARC Carrier II board having a DA7212 codec (using
da7213 driver) connected to one SSIF-2 available on the Renesas RZ/G3S SoC
it has been discovered that using the runtime PM API for suspend/resume
(as will be proposed in the following commits) leads to the codec not
being propertly initialized after resume. This is because w/o
max_register populated to regmap_config the regcache_rbtree_sync()
breaks on base_reg > max condition and the regcache_sync_block() call is
skipped.

Fixes: ef5c2eba2412 ("ASoC: codecs: Add da7213 codec")
Cc: stable@vger.kernel.org
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20241106081826.1211088-23-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Claudiu Beznea and committed by
Mark Brown
9d4f9f6a 9b915776

+1
+1
sound/soc/codecs/da7213.c
··· 2136 2136 .reg_bits = 8, 2137 2137 .val_bits = 8, 2138 2138 2139 + .max_register = DA7213_TONE_GEN_OFF_PER, 2139 2140 .reg_defaults = da7213_reg_defaults, 2140 2141 .num_reg_defaults = ARRAY_SIZE(da7213_reg_defaults), 2141 2142 .volatile_reg = da7213_volatile_register,