ALSA: hda/realtek - Fix lose hp_pins for disable auto mute
authorKailang Yang <kailang@realtek.com>
Fri, 1 Feb 2019 08:51:10 +0000 (16:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:35 +0000 (20:02 +0100)
commit1c4f4d4ee7796d37854b026a430bfbbdd039ef70
tree3abfdca6b6eb9c9862b0d2201b0f9b462d14f25e
parent970ad7a25df774538bc4457bbb62746086f62461
ALSA: hda/realtek - Fix lose hp_pins for disable auto mute

commit d561aa0a70bb2e1dd85fde98b6a5561e4175ac3e upstream.

When auto_mute = no or spec->suppress_auto_mute = 1, cfg->hp_pins will
lose value.

Add this patch to find hp_pins value.
I add fixed for ALC282 ALC225 ALC256 ALC294 and alc_default_init()
alc_default_shutup().

Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c