]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: hda: Do disconnect jacks at codec unbind
authorTakashi Iwai <tiwai@suse.de>
Wed, 17 Nov 2021 13:30:40 +0000 (14:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Oct 2022 08:39:35 +0000 (10:39 +0200)
commitde5deddfa7e73dc44044a3c78c8cad25fd2d55a9
treef26a1200845f243ea37085383841e07ca57fd759
parent90c7e9b400c751dbd73885f494f421f90ca69721
ALSA: hda: Do disconnect jacks at codec unbind

[ Upstream commit 37c4fd0db7c961145d9d1909ecab386fdf703c26 ]

The HD-audio codec driver remove may happen also at dynamically
unbinding during operation, hence it needs manual triggers of
snd_device_disconnect() calls, while it's missing for the jack objects
that are associated with the codec.

This patch adds the manual disconnection call for jacks when the
remove happens without card->shutdown (i.e. not under the full
removal).

Link: https://lore.kernel.org/r/20211117133040.20272-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stable-dep-of: ead3d3c5b54f ("ALSA: hda: Fix hang at HD-audio codec unbinding due to refcount saturation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/hda_bind.c
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h