ASoC: wm8904: fix wrong outputs volume after power reactivation
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Fri, 23 Dec 2022 08:02:47 +0000 (09:02 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 29 Dec 2022 20:25:00 +0000 (20:25 +0000)
commit472a6309c6467af89dbf660a8310369cc9cb041f
treecaea2a97423711098c170524d2209f31fe8c18e5
parent810948f45d99c46b60852ef2a5a2777c12d6bb3e
ASoC: wm8904: fix wrong outputs volume after power reactivation

Restore volume after charge pump and PGA activation to ensure
that volume settings are correctly applied when re-enabling codec
from SND_SOC_BIAS_OFF state.
CLASS_W, CHARGE_PUMP and POWER_MANAGEMENT_2 register configuration
affect how the volume register are applied and must be configured first.

Fixes: a91eb199e4dc ("ASoC: Initial WM8904 CODEC driver")
Link: https://lore.kernel.org/all/c7864c35-738c-a867-a6a6-ddf9f98df7e7@gmail.com/
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221223080247.7258-1-francesco@dolcini.it
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8904.c