ASoC: rt5670: Set use_single_rw flag for regmap
authorBard Liao <bardliao@realtek.com>
Mon, 9 Feb 2015 06:41:50 +0000 (14:41 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Feb 2015 07:08:35 +0000 (15:08 +0800)
RT5670 doesn't support auto incrementing writes so driver should
set the use_single_rw flag for regmap.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/rt5670.c

index 0632b7458a532260dd4034ff648956743567bf53..6aa4ab24288e0a3341e2f2b21af20833171322bd 100644 (file)
@@ -2614,6 +2614,7 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5670 = {
 static const struct regmap_config rt5670_regmap = {
        .reg_bits = 8,
        .val_bits = 16,
+       .use_single_rw = true,
        .max_register = RT5670_VENDOR_ID2 + 1 + (ARRAY_SIZE(rt5670_ranges) *
                                               RT5670_PR_SPACING),
        .volatile_reg = rt5670_volatile_register,