ASoC: rt1308-sdw: fix random louder sound
authorShuming Fan <shumingf@realtek.com>
Fri, 11 Aug 2023 09:38:22 +0000 (17:38 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 13 Aug 2023 17:16:32 +0000 (18:16 +0100)
commit37aba3190891d4de189bd5192ee95220e295f34d
tree1f63263c98ac295958a193cd2d6b1533f6367659
parentc1f848f12103920ca165758aedb1c10904e193e1
ASoC: rt1308-sdw: fix random louder sound

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
sound/soc/codecs/rt1308-sdw.c