ASoC: rt5682: Avoid the unexpected IRQ event during going to suspend
authorDerek Fang <derek.fang@realtek.com>
Tue, 9 Nov 2021 09:54:49 +0000 (17:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:55 +0000 (16:34 +0200)
commit4b72179e53bda916363d513bd1b3c0091c721df7
tree45d1548db78f8a68f25ca5c96fca8fc1a5b9f2fd
parent301ebfa578e35c7ca1b529044d038121a0b2b61b
ASoC: rt5682: Avoid the unexpected IRQ event during going to suspend

[ Upstream commit a3774a2a6544a7a4a85186e768afc07044aa507f ]

When the system suspends, the codec driver will set SAR to
power saving mode if a headset is plugged in.
There is a chance to generate an unexpected IRQ, and leads to
issues after resuming such as noise from OMTP type headsets.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
Link: https://lore.kernel.org/r/20211109095450.12950-1-derek.fang@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5682.c