Skip to contentSkip to conversation

ASoC: rt5670: Set use_single_rw flag for regmap

PATCH Applied Bard Liao 2 participants 2 messages Feb 9, 2015

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author
#0 lore raw

PATCH 1/1 ASoC: rt5670: Set use_single_rw flag for regmap

RT5670 doesn't support auto incrementing writes so driver should set the use_single_rw flag for regmap.

---
 sound/soc/codecs/rt5670.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/rt5670.c +1 -0
index 0632b74..6aa4ab2 100644
@@ -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,
Signature · 1 line
1.8.1.1.439.g50a6b54
maintainer Applied
#1 lore raw
Quoted 2 lines · Bard Liao

RT5670 doesn't support auto incrementing writes so driver should set the use_single_rw flag for regmap.

Applied, thanks.