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)
committerMark Brown <broonie@kernel.org>
Fri, 12 Nov 2021 18:16:42 +0000 (18:16 +0000)
commita3774a2a6544a7a4a85186e768afc07044aa507f
treed54b7107e36abfca50d90243bec6fa8bac01cf0d
parenta382285b6feda8db56955e5897453405c198048d
ASoC: rt5682: Avoid the unexpected IRQ event during going to suspend

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