[PATCH 01/11] ALSA: hda: intel: Cancel delayed work at shutdown, too

From: Takashi Iwai

Date: Thu Oct 08 2026 - 15:26:42 EST


The shutdown procedure needs to cancel the delayed probe work in case
where the probe work stalls or is slow but still possible to
reactivated.

Fixes: c0f1886de7e1 ("ALSA: hda: intel: Allow repeatedly probing on codec configuration errors")
Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
---
sound/hda/controllers/intel.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sound/hda/controllers/intel.c b/sound/hda/controllers/intel.c
index 88b0207fde9c..2b5b5d555f2c 100644
--- a/sound/hda/controllers/intel.c
+++ b/sound/hda/controllers/intel.c
@@ -2484,12 +2484,17 @@ static void azx_remove(struct pci_dev *pci)
static void azx_shutdown(struct pci_dev *pci)
{
struct snd_card *card = pci_get_drvdata(pci);
+ struct hda_intel *hda;
struct azx *chip;

if (!card)
return;
chip = card->private_data;
- if (chip && chip->running)
+ if (!chip)
+ return;
+ hda = container_of(chip, struct hda_intel, chip);
+ cancel_delayed_work_sync(&hda->probe_work);
+ if (chip->running)
__azx_shutdown_chip(chip, true);
}

--
2.55.0