]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: tas2770: Reinit regcache on reset
authorMartin Povišer <povik+lin@cutebit.org>
Mon, 19 Sep 2022 17:34:53 +0000 (19:34 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:12:00 +0000 (15:12 +0100)
commitf7caba9dbf8bbfd8c24bd2896d2ae045c26bbbcc
tree2f8832edb18cc3fea0ad8535e4021e347a517b54
parent8230849b1125d57f8f2f2ec41fcf54348190140d
ASoC: tas2770: Reinit regcache on reset

BugLink: https://bugs.launchpad.net/bugs/1995517
[ Upstream commit 0a0342ede303fc420f3a388e1ae82da3ae8ff6bd ]

On probe of the ASoC component, the device is reset but the regcache is
retained. This means the regcache gets out of sync if the codec is
rebound to a sound card for a second time. Fix it by reinitializing the
regcache to defaults after the device is reset.

Fixes: b0bcbe615756 ("ASoC: tas2770: Fix calling reset in probe")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220919173453.84292-1-povik+lin@cutebit.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: Stefan Bader <stefan.bader@canonical.com>
sound/soc/codecs/tas2770.c