Emanuele Ghidoli c5d032482c ASoC: wm8904: fix wrong outputs volume after power reactivation
[ Upstream commit 472a6309c6467af89dbf660a8310369cc9cb041f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:58:24 +01:00
..
2022-08-16 12:46:26 +02:00
2022-10-05 12:02:07 -07:00
2021-04-20 17:25:51 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-06-27 18:27:03 +01:00
2022-10-05 12:02:07 -07:00
2022-10-05 12:02:07 -07:00
2022-07-11 15:51:01 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-10-05 12:02:07 -07:00
2021-03-31 18:00:38 +01:00
2022-10-03 16:30:42 +02:00
2022-08-16 13:08:06 +01:00
2022-06-06 12:33:10 +01:00
2018-04-26 12:44:15 +01:00
2022-07-13 13:48:56 +01:00
2022-10-19 16:37:01 +01:00
2022-10-05 12:02:07 -07:00
2022-09-30 09:16:31 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2020-05-07 13:18:04 +01:00
2022-10-13 13:01:32 +01:00
2022-10-13 13:01:32 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-01-28 15:59:20 +00:00
2022-10-19 16:37:01 +01:00
2022-08-16 12:46:26 +02:00
2021-12-06 10:04:05 +01:00
2022-07-08 11:52:42 +01:00
2021-12-06 10:04:05 +01:00
2018-06-01 12:05:30 +01:00
2022-08-15 01:20:01 +01:00
2022-10-03 16:30:42 +02:00
2020-07-20 15:34:29 +01:00
2022-10-03 16:30:42 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2020-10-02 21:05:29 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-12-31 13:33:07 +01:00
2022-08-16 12:46:26 +02:00
2022-07-11 15:51:01 +01:00
2022-08-16 12:46:26 +02:00