From nobody Thu Feb 12 23:02:47 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CED61BF8F5; Wed, 5 Jun 2024 11:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588616; cv=none; b=n8MgNeQKayZYYyS81+BpAlcBZHuz845aLaeaePFEsGs07Zil0p2OSwBGFN44HORLfXeIKsswrMyuhMcGjNupYzSFuR5MDntgoCKcKs5HmTTlUGhxEgGFEQAhuGj0N+wTEhfqd2CJeydnxK839aNLGmvhNe6BQUN8W/MM2rBFkjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588616; c=relaxed/simple; bh=sUmK+aAfoEOBLuY4lvkniy2f2002Jvy+HGMf72BRDr4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fzFO6MGDd5iDX2DR2F9B/15PuYEkEcS8ipd5RTefjIPTIoVda9YBPm17uxk/XU5YHx3kxZIue012r6i9uu42xh5oRVAocftoMfU3RYmxY6rto6rN9yK8CgxAtBR7p5IJQaCWleiqd8NerlrSQmAsVcmzIVqvTdgRm30DBiBhAYc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gLAtvldH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gLAtvldH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDA8EC3277B; Wed, 5 Jun 2024 11:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588616; bh=sUmK+aAfoEOBLuY4lvkniy2f2002Jvy+HGMf72BRDr4=; h=From:To:Cc:Subject:Date:From; b=gLAtvldHcpkcfStMCnO/XFlaC7Q3mx3iuEoI5lt+60nVG9WxEkmLLjDmC42JSVwiA 4TkZfSFA/h9C0BhmtoKtfGo2CBqfbo9/Zz3HE8Oypl7diZtMAUdd8AqSJb3HIt2qVP MvN4pmcuoJZe1IgS1dieDtXZM2bo7KyEFQ5Re2NVbzOgAPcwvAxEgmzWAmj7WZjAvB exmSix7v2DSWmy25NY8oSKM0HDx7za2vv1NNCjGPbASx1ckZ/IClMqQClx0TKvckHT q4Yc6g8pCXNBkHf9GnjBHKXb2fY7sQYjPdiRnNUqRrpce1qDOU6gUErw8xjxsSgJyQ pSdtEqExyRPWQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jian-Hong Pan , Takashi Iwai , Sasha Levin , perex@perex.cz, tiwai@suse.com, sbinding@opensource.cirrus.com, kailang@realtek.com, luke@ljones.dev, shenghao-ding@ti.com, simont@opensource.cirrus.com, foss@athaariq.my.id, rf@opensource.cirrus.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 5.10] ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897 Date: Wed, 5 Jun 2024 07:56:49 -0400 Message-ID: <20240605115653.2965468-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.10.218 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jian-Hong Pan [ Upstream commit 45e37f9ce28d248470bab4376df2687a215d1b22 ] 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 Link: https://lore.kernel.org/r/20240520055008.7083-2-jhp@endlessos.org Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4af8094938059..86f7a8fbff689 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10806,6 +10806,7 @@ enum { ALC897_FIXUP_LENOVO_HEADSET_MODE, ALC897_FIXUP_HEADSET_MIC_PIN2, ALC897_FIXUP_UNIS_H3C_X500S, + ALC897_FIXUP_HEADSET_MIC_PIN3, }; =20 static const struct hda_fixup alc662_fixups[] =3D { @@ -11252,10 +11253,18 @@ static const struct hda_fixup alc662_fixups[] =3D= { {} }, }, + [ALC897_FIXUP_HEADSET_MIC_PIN3] =3D { + .type =3D HDA_FIXUP_PINS, + .v.pins =3D (const struct hda_pintbl[]) { + { 0x19, 0x03a11050 }, /* use as headset mic */ + { } + }, + }, }; =20 static const struct snd_pci_quirk alc662_fixup_tbl[] =3D { SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_FIXUP_ASUS_MODE2), + SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC= _PIN3), SND_PCI_QUIRK(0x1025, 0x022f, "Acer Aspire One", ALC662_FIXUP_INV_DMIC), SND_PCI_QUIRK(0x1025, 0x0241, "Packard Bell DOTS", ALC662_FIXUP_INV_DMIC), SND_PCI_QUIRK(0x1025, 0x0308, "Acer Aspire 8942G", ALC662_FIXUP_ASPIRE), --=20 2.43.0