ASoC: rt5682: Re-detect the combo jack after resuming
authorDerek Fang <derek.fang@realtek.com>
Tue, 9 Nov 2021 09:54:50 +0000 (17:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:55 +0000 (16:34 +0200)
commitf536e0df64b8c3095b3575ea114d07b0d0e8627c
tree7ec5c3995296100cda7b34b9b33739397d41e3df
parent4b72179e53bda916363d513bd1b3c0091c721df7
ASoC: rt5682: Re-detect the combo jack after resuming

[ Upstream commit 2cd9b0ef82d936623d789bb3fbb6fcf52c500367 ]

Sometimes, end-users change the jack type under suspending,
so it needs to re-detect the combo jack type after resuming to
avoid any unexpected behaviors.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
Link: https://lore.kernel.org/r/20211109095450.12950-2-derek.fang@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5682-i2c.c
sound/soc/codecs/rt5682.c
sound/soc/codecs/rt5682.h