summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/da7219-aad.h
diff options
context:
space:
mode:
authorDavid Rau <David.Rau.opensource@dm.renesas.com>2023-04-13 02:41:34 +0000
committerMark Brown <broonie@kernel.org>2023-04-13 11:42:15 +0100
commit2c17277893747e30e41d1a7b57b80f2b298da278 (patch)
tree9b2ce9f0bdcd1c421b00d119b6427fc4f7040f65 /sound/soc/codecs/da7219-aad.h
parent27ff688a402016c418a1f2f0be37556c71f674d7 (diff)
downloadlinux-stable-2c17277893747e30e41d1a7b57b80f2b298da278.tar.gz
linux-stable-2c17277893747e30e41d1a7b57b80f2b298da278.tar.bz2
linux-stable-2c17277893747e30e41d1a7b57b80f2b298da278.zip
ASoC: da7219: Improve the relability of AAD IRQ process
- Configure the default gound switch delay time before enabling IRQ to avoid the unexpected delay time is set up - Apply DA7219 AAD own work queue to handle AAD events - Replace msleep with queue_delayed_work to have better relability This commit improves the control of ground switches in AAD IRQ Signed-off-by: David Rau <David.Rau.opensource@dm.renesas.com> Link: https://lore.kernel.org/r/20230413024134.8612-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/da7219-aad.h b/sound/soc/codecs/da7219-aad.h
index be87ee47edde..fbfbf3e67918 100644
--- a/sound/soc/codecs/da7219-aad.h
+++ b/sound/soc/codecs/da7219-aad.h
@@ -197,9 +197,8 @@ 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 delayed_work jack_det_work;
+ struct workqueue_struct *aad_wq;
struct snd_soc_jack *jack;
bool micbias_resume_enable;