Skip to content

Commit 3a9c76c

Browse files
jason77-wanggregkh
authored andcommitted
ALSA: hda - Enable front audio jacks on one HP desktop model
commit 1de7ca5 upstream. The front headphone and mic jackes on a HP desktop model (Vendor Id: 0x111d76c7 Subsystem Id: 0x103c2b17) can not work, the codec on this machine has 8 physical ports, 6 of them are routed to rear jackes and all of them work very well, while the remaining 2 ports are routed to front headphone and mic jackes, but the corresponding pin complex node are not defined correctly. After apply this fix, the front audio jackes can work very well. [trivial fix of enum definition by tiwai] BugLink: https://bugs.launchpad.net/bugs/1282369 Cc: David Henningsson <david.henningsson@canonical.com> Tested-by: Gerald Yang <gerald.yang@canonical.com> Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1ac7009 commit 3a9c76c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎sound/pci/hda/patch_sigmatel.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ enum {
8383
STAC_DELL_M6_BOTH,
8484
STAC_DELL_EQ,
8585
STAC_ALIENWARE_M17X,
86+
STAC_92HD89XX_HP_FRONT_JACK,
8687
STAC_92HD73XX_MODELS
8788
};
8889

@@ -1777,6 +1778,12 @@ static const struct hda_pintbl intel_dg45id_pin_configs[] = {
17771778
{}
17781779
};
17791780

1781+
static const struct hda_pintbl stac92hd89xx_hp_front_jack_pin_configs[] = {
1782+
{ 0x0a, 0x02214030 },
1783+
{ 0x0b, 0x02A19010 },
1784+
{}
1785+
};
1786+
17801787
static void stac92hd73xx_fixup_ref(struct hda_codec *codec,
17811788
const struct hda_fixup *fix, int action)
17821789
{
@@ -1895,6 +1902,10 @@ static const struct hda_fixup stac92hd73xx_fixups[] = {
18951902
[STAC_92HD73XX_NO_JD] = {
18961903
.type = HDA_FIXUP_FUNC,
18971904
.v.func = stac92hd73xx_fixup_no_jd,
1905+
},
1906+
[STAC_92HD89XX_HP_FRONT_JACK] = {
1907+
.type = HDA_FIXUP_PINS,
1908+
.v.pins = stac92hd89xx_hp_front_jack_pin_configs,
18981909
}
18991910
};
19001911

@@ -1955,6 +1966,8 @@ static const struct snd_pci_quirk stac92hd73xx_fixup_tbl[] = {
19551966
"Alienware M17x", STAC_ALIENWARE_M17X),
19561967
SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0490,
19571968
"Alienware M17x R3", STAC_DELL_EQ),
1969+
SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x2b17,
1970+
"unknown HP", STAC_92HD89XX_HP_FRONT_JACK),
19581971
{} /* terminator */
19591972
};
19601973

0 commit comments

Comments
 (0)