Skip to content

Commit 29654ed

Browse files
mcdermjbroonie
authored andcommitted
ASoC: tlv320aic32x4: Increase maximum register in regmap
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: stable@vger.kernel.org Signed-off-by: Annaliese McDermond <nh6z@nh6z.net> Link: https://lore.kernel.org/r/0101017889851cab-ce60cfdb-d88c-43d8-bbd2-7fbf34a0c912-000000@us-west-2.amazonses.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e7a48c7 commit 29654ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)