ALSA: hda: Fix hang during shutdown due to link reset
authorImre Deak <imre.deak@intel.com>
Mon, 16 Aug 2021 17:42:59 +0000 (20:42 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Aug 2021 05:14:30 +0000 (07:14 +0200)
commit0165c4e19f6ec76b535de090e4bd145c73810c51
treeb6d81f7c4798229e3ff2f87802e00bb49f6bed9d
parentda94692001ea45ffa1f5e9f17ecdef7aecd90c27
ALSA: hda: Fix hang during shutdown due to link reset

During system shutdown codecs may be still active, and resetting the
controller->codec HW link in this state - based on the bug reporter's
tests - leads to the shutdown sequence to get stuck. This happens at
least on the reporter's KBL system with an ALC662 codec.

For now fix the issue by skipping the link reset step.

Fixes: 472e18f63c42 ("ALSA: hda: Release controller display power during shutdown/reboot")
References: https://bugzilla.kernel.org/show_bug.cgi?id=214045
References: https://gitlab.freedesktop.org/drm/intel/-/issues/3618#note_1024665
Reported-and-tested-by: youling257@gmail.com
Cc: youling257@gmail.com
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20210816174259.2759103-1-imre.deak@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c