Skip to content

Commit ef9ce66

Browse files
KailangYangtiwai
authored andcommitted
ALSA: hda/realtek - Enable headphone for ASUS TM420
ASUS TM420 had depop circuit for headphone. It need to turn on by COEF bit. [ fixed the missing enum definition by tiwai ] Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/3d6177d7023b4783bf2793861c577ada@realtek.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 158e188 commit ef9ce66

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

sound/pci/hda/patch_realtek.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6300,6 +6300,7 @@ enum {
63006300
ALC255_FIXUP_XIAOMI_HEADSET_MIC,
63016301
ALC274_FIXUP_HP_MIC,
63026302
ALC274_FIXUP_HP_HEADSET_MIC,
6303+
ALC256_FIXUP_ASUS_HPE,
63036304
};
63046305

63056306
static const struct hda_fixup alc269_fixups[] = {
@@ -7693,6 +7694,17 @@ static const struct hda_fixup alc269_fixups[] = {
76937694
.chained = true,
76947695
.chain_id = ALC274_FIXUP_HP_MIC
76957696
},
7697+
[ALC256_FIXUP_ASUS_HPE] = {
7698+
.type = HDA_FIXUP_VERBS,
7699+
.v.verbs = (const struct hda_verb[]) {
7700+
/* Set EAPD high */
7701+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x0f },
7702+
{ 0x20, AC_VERB_SET_PROC_COEF, 0x7778 },
7703+
{ }
7704+
},
7705+
.chained = true,
7706+
.chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC
7707+
},
76967708
};
76977709

76987710
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -7876,6 +7888,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
78767888
SND_PCI_QUIRK(0x1043, 0x1bbd, "ASUS Z550MA", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE),
78777889
SND_PCI_QUIRK(0x1043, 0x1c23, "Asus X55U", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
78787890
SND_PCI_QUIRK(0x1043, 0x1ccd, "ASUS X555UB", ALC256_FIXUP_ASUS_MIC),
7891+
SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE),
78797892
SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502),
78807893
SND_PCI_QUIRK(0x1043, 0x1f11, "ASUS Zephyrus G14", ALC289_FIXUP_ASUS_GA401),
78817894
SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS),

0 commit comments

Comments
 (0)