summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/da7219-aad.h
diff options
context:
space:
mode:
authorDavid Rau <David.Rau.opensource@dm.renesas.com>2023-02-15 13:10:45 +0300
committerMark Brown <broonie@kernel.org>2023-02-16 02:02:37 +0300
commit7fde88eda855952766a74026c181c6270b3392fc (patch)
tree31734e2956bd6a2f27e1913e75f67d4038662e6b /sound/soc/codecs/da7219-aad.h
parent76f5aaabce492aa6991c28c96bb78b00b05d06c5 (diff)
downloadlinux-7fde88eda855952766a74026c181c6270b3392fc.tar.xz
ASoC: da7219: Improve the IRQ process to increase the stability
Remove the sleep control in IRQ thread and create an individual task to handel it for Jack plug in event. This commit improves the control of ground switches in the AAD IRQ. Signed-off-by: David Rau <David.Rau.opensource@dm.renesas.com> Link: https://lore.kernel.org/r/20230215101045.21456-1-David.Rau.opensource@dm.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219-aad.h')
-rw-r--r--sound/soc/codecs/da7219-aad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219-aad.h b/sound/soc/codecs/da7219-aad.h
index 21fdf53095cc..be87ee47edde 100644
--- a/sound/soc/codecs/da7219-aad.h
+++ b/sound/soc/codecs/da7219-aad.h
@@ -11,6 +11,7 @@
#define __DA7219_AAD_H
#include <linux/timer.h>
+#include <linux/mutex.h>
#include <sound/soc.h>
#include <sound/jack.h>
#include <sound/da7219-aad.h>
@@ -196,6 +197,9 @@ struct da7219_aad_priv {
struct work_struct btn_det_work;
struct work_struct hptest_work;
+ struct work_struct jack_det_work;
+
+ struct mutex jack_det_mutex;
struct snd_soc_jack *jack;
bool micbias_resume_enable;