ALSA: hda - Fix headphone pin config for Lifebook T731
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Apr 2015 18:47:55 +0000 (20:47 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:07:41 +0000 (13:07 +0000)
commit51a175103f9c1d84b987bc469d4d995ccf72fc2d
treeb3bc4c7f3ac05026df1992985d0da3c1fdc04f92
parent0f4f1156a4d7f9fa9df0cbd4c7421bb834029f28
ALSA: hda - Fix headphone pin config for Lifebook T731

commit cc7016ab1a22fb26f388c2fb2b692b89897cbc3e upstream.

Some BIOS version of Fujitsu Lifebook T731 seems to set up the
headphone pin (0x21) without the assoc number 0x0f while it's set only
to the output on the docking port (0x1a).  With the recent commit
[03ad6a8c93b6: ALSA: hda - Fix "PCM" name being used on one DAC when
 there are two DACs], this resulted in the weird mixer element
mapping where the headphone on the laptop is assigned as a shared
volume with the speaker and the docking port is assigned as an
individual headphone.

This patch improves the situation by correcting the headphone pin
config to the more appropriate value.

Reported-and-tested-by: Taylor Smock <smocktaylor@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c