]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: rt5682s: Fix hp pop produced immediately after resuming
authorDerek Fang <derek.fang@realtek.com>
Thu, 7 Oct 2021 08:55:19 +0000 (16:55 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 18:19:58 +0000 (19:19 +0100)
commit06096537b778c5cfe7618908fe9e55e817083d92
treedf79bf247ea69f5b5fd3ae4debac8ade1a128430
parentd8a15e5fcae132dc6a44847535ce355f6fba46f8
ASoC: rt5682s: Fix hp pop produced immediately after resuming

When the system plays a sound immediately after resuming from S3,
it could hear a little pop from headphones.
It is due to the HP was unmuted before the completion of
jack re-detection finished in parallel.

This patch adds a lock to make sure the HP unmute after jack detect handler,
and adds a few depop changes.

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