Skip to content

Commit 2d9a34c

Browse files
perexggregkh
authored andcommitted
ALSA: hda - add support for docking station for HP 840 G3
[ Upstream commit cc3a47a ] This tested patch adds missing initialization for Line-In/Out PINs for the docking station for HP 840 G3. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 52c3323 commit 2d9a34c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

sound/pci/hda/patch_conexant.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ enum {
261261
CXT_FIXUP_HP_530,
262262
CXT_FIXUP_CAP_MIX_AMP_5047,
263263
CXT_FIXUP_MUTE_LED_EAPD,
264+
CXT_FIXUP_HP_DOCK,
264265
CXT_FIXUP_HP_SPECTRE,
265266
CXT_FIXUP_HP_GATE_MIC,
266267
};
@@ -778,6 +779,14 @@ static const struct hda_fixup cxt_fixups[] = {
778779
.type = HDA_FIXUP_FUNC,
779780
.v.func = cxt_fixup_mute_led_eapd,
780781
},
782+
[CXT_FIXUP_HP_DOCK] = {
783+
.type = HDA_FIXUP_PINS,
784+
.v.pins = (const struct hda_pintbl[]) {
785+
{ 0x16, 0x21011020 }, /* line-out */
786+
{ 0x18, 0x2181103f }, /* line-in */
787+
{ }
788+
}
789+
},
781790
[CXT_FIXUP_HP_SPECTRE] = {
782791
.type = HDA_FIXUP_PINS,
783792
.v.pins = (const struct hda_pintbl[]) {
@@ -839,6 +848,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = {
839848
SND_PCI_QUIRK(0x1025, 0x0543, "Acer Aspire One 522", CXT_FIXUP_STEREO_DMIC),
840849
SND_PCI_QUIRK(0x1025, 0x054c, "Acer Aspire 3830TG", CXT_FIXUP_ASPIRE_DMIC),
841850
SND_PCI_QUIRK(0x1025, 0x054f, "Acer Aspire 4830T", CXT_FIXUP_ASPIRE_DMIC),
851+
SND_PCI_QUIRK(0x103c, 0x8079, "HP EliteBook 840 G3", CXT_FIXUP_HP_DOCK),
842852
SND_PCI_QUIRK(0x103c, 0x8174, "HP Spectre x360", CXT_FIXUP_HP_SPECTRE),
843853
SND_PCI_QUIRK(0x103c, 0x8115, "HP Z1 Gen3", CXT_FIXUP_HP_GATE_MIC),
844854
SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN),
@@ -872,6 +882,7 @@ static const struct hda_model_fixup cxt5066_fixup_models[] = {
872882
{ .id = CXT_PINCFG_LEMOTE_A1205, .name = "lemote-a1205" },
873883
{ .id = CXT_FIXUP_OLPC_XO, .name = "olpc-xo" },
874884
{ .id = CXT_FIXUP_MUTE_LED_EAPD, .name = "mute-led-eapd" },
885+
{ .id = CXT_FIXUP_HP_DOCK, .name = "hp-dock" },
875886
{}
876887
};
877888

0 commit comments

Comments
 (0)