ASoC: tas2770: Reinit regcache on reset
authorMartin Povišer <povik+lin@cutebit.org>
Mon, 19 Sep 2022 17:34:53 +0000 (19:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Oct 2022 08:39:41 +0000 (10:39 +0200)
commit6a12105d9d4ff60cee579192ba17fa05861714d3
tree030a9ce13cc6fa671a47c1890944cb51cec8ad8c
parent75ef73d7d2b3f8638880dd4be9800282aa80077c
ASoC: tas2770: Reinit regcache on reset

[ 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>
sound/soc/codecs/tas2770.c