Skip to content

Commit 53d5ac2

Browse files
starnightgregkh
authored andcommitted
ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897
[ Upstream commit 45e37f9 ] JP-IK LEAP W502 laptop's headset mic is not enabled until ALC897_FIXUP_HEADSET_MIC_PIN3 quirk is applied. Here is the original pin node values: 0x11 0x40000000 0x12 0xb7a60130 0x14 0x90170110 0x15 0x411111f0 0x16 0x411111f0 0x17 0x411111f0 0x18 0x411111f0 0x19 0x411111f0 0x1a 0x411111f0 0x1b 0x03211020 0x1c 0x411111f0 0x1d 0x4026892d 0x1e 0x411111f0 0x1f 0x411111f0 Signed-off-by: Jian-Hong Pan <jhp@endlessos.org> Link: https://lore.kernel.org/r/20240520055008.7083-2-jhp@endlessos.org Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8d656c7 commit 53d5ac2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

sound/pci/hda/patch_realtek.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12029,6 +12029,7 @@ enum {
1202912029
ALC897_FIXUP_LENOVO_HEADSET_MODE,
1203012030
ALC897_FIXUP_HEADSET_MIC_PIN2,
1203112031
ALC897_FIXUP_UNIS_H3C_X500S,
12032+
ALC897_FIXUP_HEADSET_MIC_PIN3,
1203212033
};
1203312034

1203412035
static const struct hda_fixup alc662_fixups[] = {
@@ -12475,10 +12476,18 @@ static const struct hda_fixup alc662_fixups[] = {
1247512476
{}
1247612477
},
1247712478
},
12479+
[ALC897_FIXUP_HEADSET_MIC_PIN3] = {
12480+
.type = HDA_FIXUP_PINS,
12481+
.v.pins = (const struct hda_pintbl[]) {
12482+
{ 0x19, 0x03a11050 }, /* use as headset mic */
12483+
{ }
12484+
},
12485+
},
1247812486
};
1247912487

1248012488
static const struct snd_pci_quirk alc662_fixup_tbl[] = {
1248112489
SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_FIXUP_ASUS_MODE2),
12490+
SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC_PIN3),
1248212491
SND_PCI_QUIRK(0x1025, 0x022f, "Acer Aspire One", ALC662_FIXUP_INV_DMIC),
1248312492
SND_PCI_QUIRK(0x1025, 0x0241, "Packard Bell DOTS", ALC662_FIXUP_INV_DMIC),
1248412493
SND_PCI_QUIRK(0x1025, 0x0308, "Acer Aspire 8942G", ALC662_FIXUP_ASPIRE),

0 commit comments

Comments
 (0)