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>
This commit is contained in:
Shuming Fan 2023-11-22 18:01:23 +08:00 • committed by Mark Brown
commit cdba4301ad
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0