提交 6d0d5103 编写于 作者: M Markus Pargmann 提交者: Mark Brown

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: 4d208ca4 (ASoC: tlv320aic32x4: Convert to direct regmap API usage)
Signed-off-by: NMarkus Pargmann <mpa@pengutronix.de>
Signed-off-by: NMark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org (v3.13 if the fix misses -final)
上级 6ce4eac1
...@@ -268,7 +268,7 @@ static const struct regmap_range_cfg aic32x4_regmap_pages[] = { ...@@ -268,7 +268,7 @@ static const struct regmap_range_cfg aic32x4_regmap_pages[] = {
.window_start = 0, .window_start = 0,
.window_len = 128, .window_len = 128,
.range_min = AIC32X4_PAGE1, .range_min = AIC32X4_PAGE1,
.range_max = AIC32X4_PAGE1 + 127, .range_max = AIC32X4_RMICPGAVOL,
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册