Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp257647lqr; Wed, 5 Jun 2024 05:26:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0r2JT3lkTrfZyRsKVoLuSAl2RO1De6OckJx4BRzFbZxYSAcHkJX0Yg9n9rqjalOrf1JL4LL+6h3G8x1fCQIA3b1b3viGQyFUc+WKZ1A== X-Google-Smtp-Source: AGHT+IFN9Pnqd6IgGhRuuxcCn/8CKJBWzt7VgveCSAuubObltcKrXRvUeQOTzbe6ujRdUurJetgO X-Received: by 2002:a05:620a:1a8c:b0:794:de18:7f67 with SMTP id af79cd13be357-79523fc2d9amr289754985a.70.1717590371330; Wed, 05 Jun 2024 05:26:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717590371; cv=pass; d=google.com; s=arc-20160816; b=EUywvJk0ndv3c7XuVfwqc2+qr8bEyF0AVd1Y5DikhPeCBiZluAj5R2spD/Iwdq8OEZ 6Yg7Px02gho7gjNdg0GsG7NMcKju78H9odaBoh2Ptu12NlXFpl/jARx9HkNBXpvw7ub/ 2a4wapW4VAjVKEF6LidgxYK/bsZWmdlIYzO4UZokLLQRmtX0B0rMlDm1kmLsENg9Py1h m1evDsg3gJsRU6o4Y4Be9GUZIFZW08sHTFlqtvQi6mhnIcJYLVvK4QtK9qE9lmZEQFJn CAAmeyBUR0EN2RC5WA3Jsxn5stJ4BN2FDjDSBlzjzux/CAeR0pqcw1hIfQ4XwptY9yvL 2pZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=HB0knuBzZDFsIuYOAfYL9K9J9v2oQlX/KGraO7NM6Hs=; fh=gnEEeGZCQZlW+ip7VTrZRO0NHptecQsMbA0qUTAIm/g=; b=zEL5QmmMGD9Kpplg7XoiPVf4dSy71Pzy1r6JoMF+PR0BphX9igj9O1n5vSREt8PRNe HLJrmOzF1altEsFU8BjH8TfJ5cwVwDUWLI/FnLRK8GeDZ0euyUj97CBu1XsvOBnpq1m3 Pc+H1byeT/d8jOMSizsBMRVGnu3+q05820i1HJ2HNvvED3JqyrCLRdSR4mJTj2zYbdQ5 AvSBs6YI41RtfvzhlWbZvquiqheyZw0MeRVwjDo8ICAzuJDEta+XlqTwOcIl7G9JAGiI hv+1QSjcrtF8Hbppvpk9ds/VpQipFOLcngIRZ/9MDORaB16ZzOwn79X65tcca1sm9zsh 4yzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gLAtvldH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7951df3307esi291410285a.441.2024.06.05.05.26.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gLAtvldH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6DA5C1C23D65 for ; Wed, 5 Jun 2024 12:26:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E5081BF901; Wed, 5 Jun 2024 11:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gLAtvldH" 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 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: 8bit 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, }; static const struct hda_fixup alc662_fixups[] = { @@ -11252,10 +11253,18 @@ static const struct hda_fixup alc662_fixups[] = { {} }, }, + [ALC897_FIXUP_HEADSET_MIC_PIN3] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a11050 }, /* use as headset mic */ + { } + }, + }, }; static const struct snd_pci_quirk alc662_fixup_tbl[] = { 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), -- 2.43.0