]> Git Repo - linux.git/commitdiff
ASoC: rt5651: Fix regcache sync errors on resume
authorHans de Goede <[email protected]>
Sun, 18 Feb 2018 22:01:44 +0000 (23:01 +0100)
committerMark Brown <[email protected]>
Mon, 19 Feb 2018 11:58:55 +0000 (11:58 +0000)
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
sound/soc/codecs/rt5651.c

index 831b297978a485ff58fe4eea38373c6392cab7ae..45a73049cf648770421bfc4795e7dbc773f35981 100644 (file)
@@ -1722,6 +1722,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,
 };
 
 #if defined(CONFIG_OF)
This page took 0.079931 seconds and 4 git commands to generate.