diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-11-17 14:30:40 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-11-17 14:41:16 +0100 |
commit | 37c4fd0db7c961145d9d1909ecab386fdf703c26 (patch) | |
tree | c721e50b664854d0caef586d37ae174bd64ef706 /sound/pci/hda/hda_jack.h | |
parent | ALSA: memalloc: Unify x86 SG-buffer handling (take#3) (diff) | |
download | linux-dev-37c4fd0db7c961145d9d1909ecab386fdf703c26.tar.xz linux-dev-37c4fd0db7c961145d9d1909ecab386fdf703c26.zip |
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>
Diffstat (limited to 'sound/pci/hda/hda_jack.h')
-rw-r--r-- | sound/pci/hda/hda_jack.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_jack.h b/sound/pci/hda/hda_jack.h index 2abf7aac243a..ff7d289c034b 100644 --- a/sound/pci/hda/hda_jack.h +++ b/sound/pci/hda/hda_jack.h @@ -69,6 +69,7 @@ struct hda_jack_tbl * snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag, int dev_id); +void snd_hda_jack_tbl_disconnect(struct hda_codec *codec); void snd_hda_jack_tbl_clear(struct hda_codec *codec); void snd_hda_jack_set_dirty_all(struct hda_codec *codec); |