]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerMark Brown <broonie@kernel.org>
Wed, 22 Nov 2023 17:30:25 +0000 (17:30 +0000)
commitcdba4301adda7c60a2064bf808e48fccd352aaa9
treeba3ec0c134dee9ed74d2230026093526f59552c5
parentc33fd110424dfcb544cf55a1b312f43fe1918235
ASoC: rt5650: add mutex to avoid the jack detection failure

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>
sound/soc/codecs/rt5645.c