Skip to content

Commit 7950215

Browse files
claudiubezneagregkh
authored andcommitted
ASoC: da7213: Populate max_register to regmap_config
commit 9d4f9f6 upstream. 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: ef5c2eb ("ASoC: codecs: Add da7213 codec") Cc: [email protected] Signed-off-by: Claudiu Beznea <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cafcd19 commit 7950215

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/codecs/da7213.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,7 @@ static const struct regmap_config da7213_regmap_config = {
21362136
.reg_bits = 8,
21372137
.val_bits = 8,
21382138

2139+
.max_register = DA7213_TONE_GEN_OFF_PER,
21392140
.reg_defaults = da7213_reg_defaults,
21402141
.num_reg_defaults = ARRAY_SIZE(da7213_reg_defaults),
21412142
.volatile_reg = da7213_volatile_register,

0 commit comments

Comments
 (0)