]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ASoC: cs4270: Set auto-increment bit for register writes
authorDaniel Mack <daniel@zonque.org>
Wed, 20 Mar 2019 21:41:56 +0000 (22:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:53:09 +0000 (17:53 +0200)
commit10cc9e79fb097d31ac73165e1e91a48d9c949fda
treef55e2d560c6795269c92ba8d0e2a88570727d673
parent97dac24e68ed587c44f23cbf99d76359ea6950f1
ASoC: cs4270: Set auto-increment bit for register writes

[ Upstream commit f0f2338a9cfaf71db895fa989ea7234e8a9b471d ]

The CS4270 does not by default increment the register address on
consecutive writes. During normal operation it doesn't matter as all
register accesses are done individually. At resume time after suspend,
however, the regcache code gathers the biggest possible block of
registers to sync and sends them one on one go.

To fix this, set the INCR bit in all cases.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs4270.c