]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8bb1324ff649dcd309567b15353935dd8d90bb9
treed54b7107e36abfca50d90243bec6fa8bac01cf0d
parent504e082f09348c1fa19ef32e927b6664abb4a443
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