ASoC: rt1308-sdw: fix random louder sound

[ Upstream commit 37aba31908 ]

This patch uses a vendor register to check whether the system hibernated ever.
The driver will only set the preset when the driver brings up or the system hibernated.
It will avoid the unknown issue that makes the speaker output louder and can't control the volume.

Signed-off-by: Shuming Fan <shumingf@realtek.com
Link: https://lore.kernel.org/r/20230811093822.37573-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Shuming Fan 2023-08-11 17:38:22 +08:00 • committed by Greg Kroah-Hartman
commit e1417c7dc3