Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp267575lqr; Wed, 5 Jun 2024 05:44:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlcFw9O148Y9lILyFKu2pGPpyCeCwitz7izEY/UUuSks4t3gLz6uklbsRnsqV4WA63grNPwShj1HOO6yRqAk0ufcA4ycIae3d0lncTgQ== X-Google-Smtp-Source: AGHT+IFeC/4O4rUv9aUgtF/HpMlQzEixLXwhf0duR0cTa8ZWD5o4OUxsPIhZckn7aH0xd1fB6fVe X-Received: by 2002:a17:902:e889:b0:1f3:2f9c:bb72 with SMTP id d9443c01a7336-1f6a5672812mr41987005ad.5.1717591478969; Wed, 05 Jun 2024 05:44:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591478; cv=pass; d=google.com; s=arc-20160816; b=ya7hNnbBh7CcUsHh9k6dvH3Q/HOzebt542fix4EyFLINRk2RdRwPuFI4CWqogNfsnM njFaXe3fUn9xOjQQDokIYwC+7xLlfLl3D1lJdyj6FaMKDDAiXsjSlSeU+Y6lwak1/iBk 8C53YIkCBiiY7B7eYFh0o8kOsDFpOnhmRinR94HFawW+4cnQHf9YINhagTzeiriYzmcm Tqwo4DnMMU1kDtGQe5rixasfaC7HIcuP09D6MrsNkPcUrsffLTZn7xkZe5FP/LvV+wd5 p6lpiLR6gaVSubGKPhFLGrjggu9teLRwe9Rz5elORAQHBV7mQ81p9Jiva17O691x/QYW 4c+A== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GWXI8M5J4b2p1onTfa8RpsM9OAzyEQGyyWuN3fEjyQU=; fh=gnEEeGZCQZlW+ip7VTrZRO0NHptecQsMbA0qUTAIm/g=; b=Gva0vBUgBr5SLNpUG0+RidRDjVa+baidCzu9UU/RydIJGRfOOTxkgh9klKMkrk1/ZS /rbVrEifPhCWAiaOJjQiCRtxqHq5JKrwvFlT2p9c0hUNJdAWkJLeIZYTWTlXbkWA9rcP DRIgIbIdd8ZEAC5z4Sr02PYovXdjRNc0cgv2Fyml46uvwm0lcg26IqsI4XWpI+srjAnP inDsKwH44GC/OCH0wxWTH8dPyjfkx5cjw0NRQZUMQwKI9Y3dEQehem36r+wALHfygKSK f9LQaypf+ojMD42hlAJPrCc6HmW3n8IwRry9wJ4DSrgiakTTgFUI8PwXA5037k7Xz7B0 CW8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=go9uEd80; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6a6cfcea0si13922865ad.141.2024.06.05.05.44.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=go9uEd80; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202438-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 75F23B28CCA for ; Wed, 5 Jun 2024 12:25:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F8BC1BE87C; Wed, 5 Jun 2024 11:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="go9uEd80" 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 7B2C11BE86A; Wed, 5 Jun 2024 11:56:39 +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=1717588599; cv=none; b=BoXaBFqyfk8zSB5B9dQXaF5PEkdaemvI5qqH7c7+cg4fuSqM0h/+PL1PjxiGB8WpY1k8k9W3Fz1I/IrS1cBkIGHRU0fC/iAFXBFFCuKV5IYzxtyZ/v5PTb6ICV4QESw0KW5Z/F4n6HfkKl8TatwGJY0eg5uC9RIqB9uJxtc9XXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588599; c=relaxed/simple; bh=WPk+01WCkCPMooexxajLDgY/Gwx107t3RuQvxITOIwk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ssZfypn8loVfHVDk2VzeF13JHDDIj5+cHTv3vzZ6HByPcpDn4qkH0/I4iwxxVPj+DJUfvyLOijjDJoPCr3a8TtfONA8F9QojfDZaDC1r2LxwHy9aqrcHTkrFWAlaf+BjQA1Wk8zHtKouhXCS/bRBpi9p3pn91MnkFiTZZ0HhNHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=go9uEd80; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71D68C32781; Wed, 5 Jun 2024 11:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588599; bh=WPk+01WCkCPMooexxajLDgY/Gwx107t3RuQvxITOIwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=go9uEd80PdmVdKF2rMKoXn4367YCSeIAgpRepqv1kn64KXl/hxbFGEICtgAWrQyL/ nTSdWtOKvVIhqWVCbs801IF4UafIK1c9nMJM3S/S9CjCg2BHJfM0mcIRzMI/F1TKSv tZv2PYeeytNdB86bjs7uaMbedmNYAA7Ad/gsASaeZrICS1OoBdV0/dhM4Vf2L/No+A AUvZHprICELaGR0aPT8a8J/b2lgtXbWcn0eXSwEktlGCOEb0alXK1TKBD3a40Sl3Gl MufARp0m8LC6ajVNL8oYiHvBgiRbjIG2M9bU2FwgmeoJpYaaGTcwv/JxXt1zpWhPEu Okpwj9VnCFrBw== 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 6.1 3/3] ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897 Date: Wed, 5 Jun 2024 07:56:28 -0400 Message-ID: <20240605115631.2965331-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115631.2965331-1-sashal@kernel.org> References: <20240605115631.2965331-1-sashal@kernel.org> 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 6.1.92 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 f0b939862a2a6..f0a743155f2c0 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -11561,6 +11561,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[] = { @@ -12007,10 +12008,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