]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: rt5650: add mutex to avoid the jack detection failure
authorShuming Fan <shumingf@realtek.com>
Wed, 22 Nov 2023 10:01:23 +0000 (18:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 22:52:28 +0000 (14:52 -0800)
commit7a3ff8a2bb2620ba6a806f0967c38be1a8d306d9
tree4d3856cdc32ef06ca0c3395cebc57aaa5d265143
parentebf8d5ec4af3d617035cada095ba7d4ef908206c
ASoC: rt5650: add mutex to avoid the jack detection failure

[ Upstream commit cdba4301adda7c60a2064bf808e48fccd352aaa9 ]

This patch adds the jd_mutex to protect the jack detection control flow.
And only the headset type could check the button status.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20231122100123.2831753-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5645.c