]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/ca0132 - Fix possible workqueue stall
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 13:43:16 +0000 (14:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 13:44:12 +0000 (14:44 +0100)
commita86cd2803b73987289a3508c097d0c1a96b88b3c
tree73ad01a51339a6d91f827e454fe3148b041f279e
parent5002f4474faba9abccd35e47f276bf7570ac3a81
ALSA: hda/ca0132 - Fix possible workqueue stall

The unsolicited event handler for the headphone jack on CA0132 codec
driver tries to reschedule the another delayed work with
cancel_delayed_work_sync().  It's no good idea, unfortunately,
especially after we changed the work queue to the standard global
one; this may lead to a stall because both works are using the same
global queue.

Fix it by dropping the _sync but does call cancel_delayed_work()
instead.

Fixes: 7488b9a497ad ("ALSA: hda/ca0132 - Delay HP amp turnon.")
BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1155836
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191105134316.19294-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c