ASoC: tlv320aic32x4: Fix regmap range_min
authorMarkus Pargmann <mpa@pengutronix.de>
Wed, 15 Jan 2014 17:12:40 +0000 (18:12 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 15 Jan 2014 23:12:44 +0000 (23:12 +0000)
range_min is the lowest address in the virtual register range. This is
the first register with address 0, not the first register of page 1.

Currently all writes to page 1 are mapped to page 0, so the codec fails
to operate.

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)
sound/soc/codecs/tlv320aic32x4.c

index 6941fa9baf6aa0bc8b34c54a8c3977464dc9bfa5..385dec16eb8a18150a7d6005f310af8c44001938 100644 (file)
@@ -267,7 +267,7 @@ static const struct regmap_range_cfg aic32x4_regmap_pages[] = {
                .selector_mask  = 0xff,
                .window_start = 0,
                .window_len = 128,
-               .range_min = AIC32X4_PAGE1,
+               .range_min = 0,
                .range_max = AIC32X4_RMICPGAVOL,
        },
 };