aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-01-11 14:48:30 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-06 11:34:02 -0800
commit5609fd11c56addf3b3ce48b4e0f599282cdf0b62 (patch)
tree5d463724fb0b649d1445650fe66ab42f34db0001 /sound
parent81c828ddd476183a7c6fa23f0a52b31eb099e538 (diff)
ASoC: codec: tlv320aic32x4: Fix regmap range config
commit 6d0d5103bdc45242b8d02e4130fbe5a3ea9f668a upstream. This codec driver fails to probe because it has a higher regmap range_max value than max_register. This patch sets the range_max to the max_register value as described in the for struct regmap_range_cfg: "@range_max: Address of the highest register in virtual range." Fixes: 4d208ca429ad (ASoC: tlv320aic32x4: Convert to direct regmap API usage) Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic32x4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 18cdcca9014..6941fa9baf6 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -268,7 +268,7 @@ static const struct regmap_range_cfg aic32x4_regmap_pages[] = {
.window_start = 0,
.window_len = 128,
.range_min = AIC32X4_PAGE1,
- .range_max = AIC32X4_PAGE1 + 127,
+ .range_max = AIC32X4_RMICPGAVOL,
},
};