Skip to content

Commit e16b6d8

Browse files
mcdermjpelwell
authored andcommitted
ASoC: tlv320aic32x4: Increase maximum register in regmap
Commit 29654ed upstream AIC32X4_REFPOWERUP was added as a register, but the maximum register value in the regmap and regmap range was not correspondingly increased. This caused an error when this register was attempted to be written. Fixes: ec96690 ("ASoC: tlv320aic32x4: Enable fast charge") Cc: [email protected] Signed-off-by: Annaliese McDermond <[email protected]> Link: https://lore.kernel.org/r/0101017889851cab-ce60cfdb-d88c-43d8-bbd2-7fbf34a0c912-000000@us-west-2.amazonses.com Signed-off-by: Mark Brown <[email protected]>
1 parent dd3535f commit e16b6d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/tlv320aic32x4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,12 @@ static const struct regmap_range_cfg aic32x4_regmap_pages[] = {
577577
.window_start = 0,
578578
.window_len = 128,
579579
.range_min = 0,
580-
.range_max = AIC32X4_RMICPGAVOL,
580+
.range_max = AIC32X4_REFPOWERUP,
581581
},
582582
};
583583

584584
const struct regmap_config aic32x4_regmap_config = {
585-
.max_register = AIC32X4_RMICPGAVOL,
585+
.max_register = AIC32X4_REFPOWERUP,
586586
.ranges = aic32x4_regmap_pages,
587587
.num_ranges = ARRAY_SIZE(aic32x4_regmap_pages),
588588
};

0 commit comments

Comments
 (0)