Skip to content

Commit 5d84b53

Browse files
committed
ALSA: hda/realtek: Add fixup for HP OMEN laptop
HP OMEN dc0019-ur with codec SSID 103c:84da requires the pin config overrides and the existing mic/mute LED setup. This patch implements those in the fixup table. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212733 Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 622464c commit 5d84b53

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6506,6 +6506,7 @@ enum {
65066506
ALC285_FIXUP_IDEAPAD_S740_COEF,
65076507
ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST,
65086508
ALC295_FIXUP_ASUS_DACS,
6509+
ALC295_FIXUP_HP_OMEN,
65096510
};
65106511

65116512
static const struct hda_fixup alc269_fixups[] = {
@@ -8014,6 +8015,26 @@ static const struct hda_fixup alc269_fixups[] = {
80148015
.type = HDA_FIXUP_FUNC,
80158016
.v.func = alc295_fixup_asus_dacs,
80168017
},
8018+
[ALC295_FIXUP_HP_OMEN] = {
8019+
.type = HDA_FIXUP_PINS,
8020+
.v.pins = (const struct hda_pintbl[]) {
8021+
{ 0x12, 0xb7a60130 },
8022+
{ 0x13, 0x40000000 },
8023+
{ 0x14, 0x411111f0 },
8024+
{ 0x16, 0x411111f0 },
8025+
{ 0x17, 0x90170110 },
8026+
{ 0x18, 0x411111f0 },
8027+
{ 0x19, 0x02a11030 },
8028+
{ 0x1a, 0x411111f0 },
8029+
{ 0x1b, 0x04a19030 },
8030+
{ 0x1d, 0x40600001 },
8031+
{ 0x1e, 0x411111f0 },
8032+
{ 0x21, 0x03211020 },
8033+
{}
8034+
},
8035+
.chained = true,
8036+
.chain_id = ALC269_FIXUP_HP_LINE1_MIC1_LED,
8037+
},
80178038
};
80188039

80198040
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -8172,6 +8193,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
81728193
SND_PCI_QUIRK(0x103c, 0x82c0, "HP G3 mini premium", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
81738194
SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
81748195
SND_PCI_QUIRK(0x103c, 0x8497, "HP Envy x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
8196+
SND_PCI_QUIRK(0x103c, 0x84da, "HP OMEN dc0019-ur", ALC295_FIXUP_HP_OMEN),
81758197
SND_PCI_QUIRK(0x103c, 0x84e7, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3),
81768198
SND_PCI_QUIRK(0x103c, 0x869d, "HP", ALC236_FIXUP_HP_MUTE_LED),
81778199
SND_PCI_QUIRK(0x103c, 0x86c7, "HP Envy AiO 32", ALC274_FIXUP_HP_ENVY_GPIO),
@@ -8577,6 +8599,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
85778599
{.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"},
85788600
{.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"},
85798601
{.id = ALC245_FIXUP_HP_X360_AMP, .name = "alc245-hp-x360-amp"},
8602+
{.id = ALC295_FIXUP_HP_OMEN, .name = "alc295-hp-omen"},
85808603
{}
85818604
};
85828605
#define ALC225_STANDARD_PINS \

0 commit comments

Comments
 (0)