]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit249c3417b2d0c94a6deaaeea46c2a391974391fb
tree0ad3830893dcf323aeb52b40db3ccb9f7e15b67b
parent71fdbffa1f35c919817cf15875ce58d7296d6870
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