]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Reduce the suspend time consumption for ALC256
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 Jan 2018 13:18:34 +0000 (14:18 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Sat, 3 Feb 2018 17:40:36 +0000 (18:40 +0100)
commite9d7786a17b8a687788726d050e6f9c87f1d1499
treee69bd292773e900c41cbfbc095b951c90d3da131
parent25e2397c4e3c6d048f9358c089564e2fa37ca6a3
ALSA: hda - Reduce the suspend time consumption for ALC256

BugLink: http://bugs.launchpad.net/bugs/1747169
commit 1c9609e3a8cf5997bd35205cfda1ff2218ee793b upstream.

ALC256 has its own quirk to override the shutup call, and it contains
the COEF update for pulling down the headset jack control.  Currently,
the COEF update is called after clearing the headphone pin, and this
seems triggering a stall of the codec communication, and results in a
long delay over a second at suspend.

A quick resolution is to swap the calls: at first with the COEF
update, then clear the headphone pin.

Fixes: 4a219ef8f370 ("ALSA: hda/realtek - Add ALC256 HP depop function")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=198503
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
sound/pci/hda/patch_realtek.c