summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-02-18 23:01:44 +0100
committerBen Hutchings <ben@decadent.org.uk>2018-06-16 22:22:20 +0100
commit57b60ea00db754dd5478577c369d09c1cdbb2870 (patch)
tree8565c1f10cf0f8a1ea2a1e60c9e599f30387e3f7 /sound
parentcd5306140bfca65d472002efe535c28a6ff07bdc (diff)
downloadlinux-stable-57b60ea00db754dd5478577c369d09c1cdbb2870.tar.gz
linux-stable-57b60ea00db754dd5478577c369d09c1cdbb2870.tar.bz2
linux-stable-57b60ea00db754dd5478577c369d09c1cdbb2870.zip
ASoC: rt5651: Fix regcache sync errors on resume
commit 2d30e9494f1ea320aaaad0cff9ddd92c87eac355 upstream. The ALC5651 does not like multi-write accesses, avoid them. This fixes: rt5651 i2c-10EC5651:00: Unable to sync registers 0x27-0x28. -121 Errors on resume (and all registers after the registers in the error not being synced). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5651.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c
index ea4b1c652a26..44e2ecb9bf5a 100644
--- a/sound/soc/codecs/rt5651.c
+++ b/sound/soc/codecs/rt5651.c
@@ -1732,6 +1732,7 @@ static const struct regmap_config rt5651_regmap = {
.num_reg_defaults = ARRAY_SIZE(rt5651_reg),
.ranges = rt5651_ranges,
.num_ranges = ARRAY_SIZE(rt5651_ranges),
+ .use_single_rw = true,
};
static const struct i2c_device_id rt5651_i2c_id[] = {