]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda: Disable jack polling at shutdown
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Jun 2025 13:14:30 +0000 (15:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:02 +0000 (18:41 +0200)
commitf5736c5871dd2ecb1cb08fe20c0c82b514dfdf87
tree658b640ee9e825c8c64457ec9ae2c5af4f9aaa00
parent9b02c1339674f9d5ff9ac7fa22850808a5d69693
ALSA: hda: Disable jack polling at shutdown

[ Upstream commit 1adcbdf54f76e1004bdf71df4eb1888c26e7ad06 ]

Although the jack polling is canceled at shutdown in
snd_hda_codec_shutdown(), it might be still re-triggered when the work
is being processed at cancel_delayed_work_sync() call.  This may
result in the unexpected hardware access that should have been already
disabled.

For assuring to stop the jack polling, clear codec->jackpoll_interval
at shutdown.

Reported-by: Joakim Zhang <joakim.zhang@cixtech.com>
Closes: https://lore.kernel.org/20250619020844.2974160-4-joakim.zhang@cixtech.com
Tested-by: Joakim Zhang <joakim.zhang@cixtech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250623131437.10670-2-tiwai@suse.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/hda_codec.c