Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: cs42l43: Shut down jack detection on component remove

Disable the jack detection and sync in any currently running work when
the component is removed.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240202140619.1068560-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
3ef9f445 7fa1a01b

+7
+7
sound/soc/codecs/cs42l43.c
··· 2115 2115 { 2116 2116 struct cs42l43_codec *priv = snd_soc_component_get_drvdata(component); 2117 2117 2118 + cs42l43_set_jack(priv->component, NULL, NULL); 2119 + 2120 + cancel_delayed_work_sync(&priv->bias_sense_timeout); 2121 + cancel_delayed_work_sync(&priv->tip_sense_work); 2122 + cancel_delayed_work_sync(&priv->button_press_work); 2123 + cancel_work_sync(&priv->button_release_work); 2124 + 2118 2125 cancel_work_sync(&priv->hp_ilimit_work); 2119 2126 cancel_delayed_work_sync(&priv->hp_ilimit_clear_work); 2120 2127