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)
commit2d969e8f35b1849a43156029a7a6e2943b89d0c0
tree1178a2f8746f5b122c5b9970f4ca14f1471be9ae
parent06f5882122e3faa183d76c4ec2c92f4c38e2c7bb
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