diff options
| author | Markus Pargmann <mpa@pengutronix.de> | 2014-01-11 08:48:30 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-01-13 07:34:51 -0500 |
| commit | 6d0d5103bdc45242b8d02e4130fbe5a3ea9f668a (patch) | |
| tree | 7955e71f4f933e96f06743ed71fa4292fc94d7be | |
| parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
ASoC: codec: tlv320aic32x4: Fix regmap range config
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>
Cc: stable@vger.kernel.org (v3.13 if the fix misses -final)
| -rw-r--r-- | sound/soc/codecs/tlv320aic32x4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c index 18cdcca9014c..6941fa9baf6a 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[] = { | |||
| 268 | .window_start = 0, | 268 | .window_start = 0, |
| 269 | .window_len = 128, | 269 | .window_len = 128, |
| 270 | .range_min = AIC32X4_PAGE1, | 270 | .range_min = AIC32X4_PAGE1, |
| 271 | .range_max = AIC32X4_PAGE1 + 127, | 271 | .range_max = AIC32X4_RMICPGAVOL, |
| 272 | }, | 272 | }, |
| 273 | }; | 273 | }; |
| 274 | 274 | ||
