]> git.baikalelectronics.ru Git - kernel.git/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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 Nov 2021 13:41:16 +0000 (14:41 +0100)
commit318779d6209188a631056724cd519dac4192fff8
treec721e50b664854d0caef586d37ae174bd64ef706
parente5bae4cda8ce08006d42a1ec677b665199a1569b
ALSA: hda: Do disconnect jacks at codec unbind

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>
sound/pci/hda/hda_bind.c
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h