Skip to contentSkip to conversation

ASUS TM420 headphone enable

PATCH Kailang 2 participants 3 messages Nov 3, 2020 – Nov 4, 2020 Sound

lore
Share & tools
lore

Kailang

author
#0 lore raw

Hi Takashi,

ASUS TM420 need to use COEF bit to turn on HP. Attach was enable patch.

BR,
Kailang

From 05407be7318777ab8d7782d065643204920beae3 Mon Sep 17 00:00:00 2001
From: kailang <[email protected]>
Date: Tue, 3 Nov 2020 15:40:35 +0800
Subject: [PATCH] ALSA: hda/realtek - Enable headphone for ASUS TM420

ASUS TM420 had depop circuit for headphone. It need to turn on by COEF bit.

sound/pci/hda/patch_realtek.c +12 -0
index 4f0ea8013bf6..7816610bf699 100644
@@ -7693,6 +7693,17 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC274_FIXUP_HP_MIC
 	},
+	[ALC256_FIXUP_ASUS_HPE] = {
+		.type = HDA_FIXUP_VERBS,
+		.v.verbs = (const struct hda_verb[]) {
+			/* Set EAPD high */
+			{ 0x20, AC_VERB_SET_COEF_INDEX, 0x0f },
+			{ 0x20, AC_VERB_SET_PROC_COEF, 0x7778 },
+			{ }
+		},
+		.chained = true,
+		.chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC
+	},
 };
 
 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -7876,6 +7887,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x1bbd, "ASUS Z550MA", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1c23, "Asus X55U", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
 	SND_PCI_QUIRK(0x1043, 0x1ccd, "ASUS X555UB", ALC256_FIXUP_ASUS_MIC),
+	SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE),
 	SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502),
 	SND_PCI_QUIRK(0x1043, 0x1f11, "ASUS Zephyrus G14", ALC289_FIXUP_ASUS_GA401),
 	SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS),
#1 lore raw
Quoted 5 lines · Kailang

Hi Takashi,

ASUS TM420 need to use COEF bit to turn on HP.
Attach was enable patch.

The patch seems missing the enum definition, so I corrected locally, and applied it to for-linus branch now.

thanks,

Takashi

Quoted 5 lines

BR,
Kailang
[2 0001-asus-enable-hp.patch <application/octet-stream (base64)>]

author
#2 lore raw

Many Thinks.

Quoted 30 lines

-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, November 4, 2020 1:33 AM
To: Kailang <[email protected]>
Cc: ([email protected]) <[email protected]>
Subject: Re: ASUS TM420 headphone enable

Quoted 5 lines · Kailang

Hi Takashi,

ASUS TM420 need to use COEF bit to turn on HP.
Attach was enable patch.

The patch seems missing the enum definition, so I corrected locally, and applied it to for-linus branch now.

thanks,

Takashi

Quoted 5 lines

BR,
Kailang
[2 0001-asus-enable-hp.patch <application/octet-stream (base64)>]

------Please consider the environment before printing this e-mail.