ASoC: rt5682s: Fix HP noise caused by SAR mode switch when the system resumes
authorDerek Fang <derek.fang@realtek.com>
Fri, 1 Oct 2021 07:41:13 +0000 (15:41 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 1 Oct 2021 18:35:04 +0000 (19:35 +0100)
commit0b26ca1725fa16a2d28a86f89173f9df2a3fe8d7
tree0ad3830893dcf323aeb52b40db3ccb9f7e15b67b
parent04a8374c321db55834d5a9f3a9ceecb04b3cfbf5
ASoC: rt5682s: Fix HP noise caused by SAR mode switch when the system resumes

When the system resumes from S3, if the system plays a beep,
there is continuous "Zizi.." noise from HP that could be heard.
It is caused by the SAR mode switch during the combo jack
re-detection which be executed parallelly in a workqueue
after the system resumes.

This patch changes the behavior of SAR mode switch to
avoid this issue.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
Link: https://lore.kernel.org/r/20211001074113.2223-2-derek.fang@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682s.c