]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: da7219: cancel AAD related work earlier for jack removal
authorAdam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>
Mon, 30 May 2022 13:22:23 +0000 (13:22 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 30 May 2022 15:00:25 +0000 (17:00 +0200)
commit265df0808703666f9a79f9fcbb56eb44f94393fc
tree1178a2f8746f5b122c5b9970f4ca14f1471be9ae
parentb680c92faa1e25867d814f0cf44eeb28d506bf38
ASoC: da7219: cancel AAD related work earlier for jack removal

To avoid the unlikely possibility of register misalignment for
headphones being ungrounded/driven after a jack has been removed,
move the cancel_work_sync() call to the start of the jack removal
handling in the IRQ thread.

Signed-off-by: Adam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>
Link: https://lore.kernel.org/r/b3f9a679f1e27a9359dcecb496953c4af30acbaa.1653916368.git.DLG-Adam.Thomson.Opensource@dm.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219-aad.c