diff options
author | David Rau <David.Rau.opensource@dm.renesas.com> | 2023-04-13 05:41:34 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-13 13:42:15 +0300 |
commit | 2c17277893747e30e41d1a7b57b80f2b298da278 (patch) | |
tree | 9b2ce9f0bdcd1c421b00d119b6427fc4f7040f65 /sound/soc/codecs/da7219-aad.h | |
parent | 27ff688a402016c418a1f2f0be37556c71f674d7 (diff) | |
download | linux-2c17277893747e30e41d1a7b57b80f2b298da278.tar.xz |
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.h | 5 |
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; |