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: Sync the hp ilimit works when removing the component

Synchronise the headphone ilimit work functions when removing the
component. These can only trigger whilst the headphone is enabled which
shouldn't be possible once the component is removed but the works rely
on the stashed component pointer so they should be shut down before the
code moves on from component remove.

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

authored by

Charles Keepax and committed by
Mark Brown
7fa1a01b cd2a2388

+3
+3
sound/soc/codecs/cs42l43.c
··· 2115 2115 { 2116 2116 struct cs42l43_codec *priv = snd_soc_component_get_drvdata(component); 2117 2117 2118 + cancel_work_sync(&priv->hp_ilimit_work); 2119 + cancel_delayed_work_sync(&priv->hp_ilimit_clear_work); 2120 + 2118 2121 priv->component = NULL; 2119 2122 } 2120 2123