ALSA: hda/ca0132 - Fix work handling in delayed HP detection
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Dec 2019 08:51:11 +0000 (09:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 14 Dec 2019 17:54:18 +0000 (18:54 +0100)
commit42fb6b1d41eb5905d77c06cad2e87b70289bdb76
treedfaf5c08f18f5a4de68e849aa63e9154e21dada8
parentcb04fc3b6b076f67d228a0b7d096c69ad486c09c
ALSA: hda/ca0132 - Fix work handling in delayed HP detection

CA0132 has the delayed HP jack detection code that is invoked from the
unsol handler, but it does a few weird things: it contains the cancel
of a work inside the work handler, and yet it misses the cancel-sync
call at (runtime-)suspend.  This patch addresses those issues.

Fixes: 15c2b3cc09a3 ("ALSA: hda/ca0132 - Fix possible workqueue stall")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191213085111.22855-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c