]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit24d7e57d15ed3268ef2b56b0e8e54a2c0f5a8030
treee11511a320422f527b8c2b131116b50b19576788
parent39b1836ce8ecff24f851e767162c5700a32722b6
ASoC: cs4270: Set auto-increment bit for register writes

BugLink: https://bugs.launchpad.net/bugs/1838459
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/codecs/cs4270.c