]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jan 2021 12:34:14 +0000 (13:34 +0100)
commit6c741f4170c0f58b72147f54d99ec06fd212c52a
tree4a925f5c0fbc82b1170c3c337faa99fa31bfabc1
parentc2fadcfca17b4d765c49b81c6d0a8e1b65c86ce0
ALSA: hda/ca0132 - Fix work handling in delayed HP detection

commit 42fb6b1d41eb5905d77c06cad2e87b70289bdb76 upstream

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>
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_ca0132.c