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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Jan 2018 13:18:34 +0000 (14:18 +0100)
commit1c9609e3a8cf5997bd35205cfda1ff2218ee793b
tree7e863744fe6993a804e6ee0f83453a64e2bd701f
parentc86d95cb6b7ecda7b7d56e40c24b7d8b9bf9159a
ALSA: hda - Reduce the suspend time consumption for ALC256

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c