]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix pincfg at resume on Lenovo T470 dock
authorTakashi Iwai <tiwai@suse.de>
Mon, 26 Feb 2018 14:36:38 +0000 (15:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Feb 2018 14:36:38 +0000 (15:36 +0100)
commitb8c5ae80fa09dda848dc291fde3baecb1f222d94
tree7b3f768e382f52ab1fcb8c8a04d7ab947ce394a5
parent31d88cb06bfd78dcbf00578f6ebd7c686dc5d1f1
ALSA: hda - Fix pincfg at resume on Lenovo T470 dock

We've added a quirk to enable the recent Lenovo dock support, where it
overwrites the pin configs of NID 0x17 and 19, not only updating the
pin config cache.  It works right after the boot, but the problem is
that the pin configs are occasionally cleared when the machine goes to
PM.  Meanwhile the quirk writes the pin configs only at the pre-probe,
so this won't be applied any longer.

For addressing that issue, this patch moves the code to overwrite the
pin configs into HDA_FIXUP_ACT_INIT section so that it's always
applied at both probe and resume time.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195161
Fixes: d51fa5d55199 ("ALSA: hda/realtek - Enable Thinkpad Dock device for ALC298 platform")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c