ASoC: da7219: Improve the relability of AAD IRQ process
authorDavid Rau <David.Rau.opensource@dm.renesas.com>
Thu, 13 Apr 2023 02:41:34 +0000 (02:41 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 13 Apr 2023 10:42:15 +0000 (11:42 +0100)
commit2c17277893747e30e41d1a7b57b80f2b298da278
tree9b2ce9f0bdcd1c421b00d119b6427fc4f7040f65
parent27ff688a402016c418a1f2f0be37556c71f674d7
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>
sound/soc/codecs/da7219-aad.c
sound/soc/codecs/da7219-aad.h