Skip to content

Commit 52c3323

Browse files
perexggregkh
authored andcommitted
ALSA: hda - add support for docking station for HP 820 G2
[ Upstream commit 04d5466 ] This tested patch adds missing initialization for Line-In/Out PINs for the docking station for HP 820 G2. 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 bb95f1c commit 52c3323

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

sound/pci/hda/patch_realtek.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4854,6 +4854,7 @@ enum {
48544854
ALC286_FIXUP_HP_GPIO_LED,
48554855
ALC280_FIXUP_HP_GPIO2_MIC_HOTKEY,
48564856
ALC280_FIXUP_HP_DOCK_PINS,
4857+
ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED,
48574858
ALC280_FIXUP_HP_9480M,
48584859
ALC288_FIXUP_DELL_HEADSET_MODE,
48594860
ALC288_FIXUP_DELL1_MIC_NO_PRESENCE,
@@ -5394,6 +5395,16 @@ static const struct hda_fixup alc269_fixups[] = {
53945395
.chained = true,
53955396
.chain_id = ALC280_FIXUP_HP_GPIO4
53965397
},
5398+
[ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED] = {
5399+
.type = HDA_FIXUP_PINS,
5400+
.v.pins = (const struct hda_pintbl[]) {
5401+
{ 0x1b, 0x21011020 }, /* line-out */
5402+
{ 0x18, 0x2181103f }, /* line-in */
5403+
{ },
5404+
},
5405+
.chained = true,
5406+
.chain_id = ALC269_FIXUP_HP_GPIO_MIC1_LED
5407+
},
53975408
[ALC280_FIXUP_HP_9480M] = {
53985409
.type = HDA_FIXUP_FUNC,
53995410
.v.func = alc280_fixup_hp_9480m,
@@ -5646,7 +5657,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
56465657
SND_PCI_QUIRK(0x103c, 0x2256, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
56475658
SND_PCI_QUIRK(0x103c, 0x2257, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
56485659
SND_PCI_QUIRK(0x103c, 0x2259, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
5649-
SND_PCI_QUIRK(0x103c, 0x225a, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
5660+
SND_PCI_QUIRK(0x103c, 0x225a, "HP", ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED),
56505661
SND_PCI_QUIRK(0x103c, 0x2260, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
56515662
SND_PCI_QUIRK(0x103c, 0x2263, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
56525663
SND_PCI_QUIRK(0x103c, 0x2264, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
@@ -5812,6 +5823,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
58125823
{.id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, .name = "headset-mode-no-hp-mic"},
58135824
{.id = ALC269_FIXUP_LENOVO_DOCK, .name = "lenovo-dock"},
58145825
{.id = ALC269_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
5826+
{.id = ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED, .name = "hp-dock-gpio-mic1-led"},
58155827
{.id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
58165828
{.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"},
58175829
{.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"},

0 commit comments

Comments
 (0)