Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp269193lqr; Wed, 5 Jun 2024 05:47:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOGBKbix/DSPUy1KLxbgfVksvWEQuRTTaAR3wERITAa12we8oDieVJyKQFMmOZS1qFCZkd8hij3MzVQbV2dpymWFbiF2TCWs3/2zeqjQ== X-Google-Smtp-Source: AGHT+IFKMLZQsJ91i8mayuaPdhlwiurRnmbhe/qZ83i3s02YaWeA27IPZzXgPQcsqNlo7R1sm3qH X-Received: by 2002:a17:90b:2352:b0:2bd:fadd:75e3 with SMTP id 98e67ed59e1d1-2c27db5ce90mr2714033a91.34.1717591657528; Wed, 05 Jun 2024 05:47:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591657; cv=pass; d=google.com; s=arc-20160816; b=fPNghKsOru2QnmyaWHmrvFU3kIRH/AmgVdFpJC9CgA34gBPaekQYx1+Bcqjm4aNqS9 c5FnppC2Y+y208kjLefPsN5AfcUbd7vMQ0OUXu/aPHkHbrWXaCV7JgFmAkL2sAecHTRz Btti/lFLmV4GvjG40SQnPh/3yoyz7bdfAJCc0qwSuLPCC1TaMxNcn8BaSOYvrau5teoL mJPtfrfq/k3Ji03i3P3FWfckpfk/eVD6YJpl9ETAC0pfcFwsquHrftjJYuavEWAUW/fA XGQmdrZoWshqX4xO/lzHkeTqxaxx86PM7GlyqZ1E55ij8LsZZ4AoZogiMQsj+MxTzFkh swMQ== 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=HQxoFszC/xLgun1YF4K6G6Rh8c/gd/eIpNwO5X/ncgM=; fh=gnEEeGZCQZlW+ip7VTrZRO0NHptecQsMbA0qUTAIm/g=; b=qWLuNe/W0DHZPSIwH9eUtLDRHIopG9AXWNfUI5JzXWYnNEa+5eIr/NkpgXodHJkuC0 VrpMCfAxg2bJpcRSzxdQEq/zm8KG8HijdPwaw6Uh9cL3yfPARPxx5VpZGbw1jPINy+JP psLi5udy5PtZrVay57+NL+kW1Eut/v8UppvT11JF+XX0+F2Am8K/xhMoqEjp6GM7ajrz eYSlqZ5ZSlt6IrySdt3hLxVW2evfhR62UFL6uUuZ0E3TtRicOd8hGZJZYBnn/8XfOREP RPwr6Kr4IgjhRtqVW/pcpZ9tYSvDccD79Z7la2Y+XUvPzXiTC1ArRnUGtXI1+9g7q7T2 Qcsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qu7DhHYG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202444-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 98e67ed59e1d1-2c2806a1448si1223300a91.147.2024.06.05.05.47.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202444-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=qu7DhHYG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202444-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 E400DB20B63 for ; Wed, 5 Jun 2024 12:26:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BAB719B59C; Wed, 5 Jun 2024 11:57:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qu7DhHYG" 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 577EC1BF90D; Wed, 5 Jun 2024 11:57:04 +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=1717588624; cv=none; b=V5z0HprLtFEe4wuO/OfhImf/OJY4hYv/X02URB7K5XocY1DWzhd/heZc3pINzqgjxCxnsRmXNw+sLy6nyYIKHYlgQnJ+CtmXJR0JIge7HgF6bwf6BLF8ErYj1nGSjzu/VAJNbWdCMmydvFQib5W2ad4SMRNMwGI5TlGbUqLM8g8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588624; c=relaxed/simple; bh=vMDKIc6lLj1EO9UYlCbUb/5oXBZKBAl4dXREvt/KAd4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SGSt2GoB/M4YwWeKyioRPX198BrCUd26dAnf1CBj8JXSk6ROdOEySH8qrckBaJN/2rZ2fGsceZ4BmQxHijhFYbVtuRXU51AwISK2Tjo1lY9tLN2YYkJU+HeBPjtPwOKvTufvhrAnTG3Fg1lIyRCqXbUrS0jGqTidwhr/FCMDEH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qu7DhHYG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0665C3277B; Wed, 5 Jun 2024 11:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588624; bh=vMDKIc6lLj1EO9UYlCbUb/5oXBZKBAl4dXREvt/KAd4=; h=From:To:Cc:Subject:Date:From; b=qu7DhHYG628qEo6baKNOhR9F3PGPT9kyb2QoDYSDUqe62+Hz2QoXZeLodkVGrQqc6 HK2x3izib4BqXmf3bb2Ed+AB8RQWgNE8JHeTUp8NGaAElffLfuHeAblRDQvqXDEoOp oEABpWpp9QRopiJM+Qo5nn47D/5fmLw10daD7lD7jJDnirOdbksg5Py2A7ildSSRoY /xs2EYqilIXZ1sWBkhdqwQnDFSJziKDu/L9cSXpl16kw/uUYLuBp4d+dvRmZLTu96a Kr9628FrOQmaDtlE7yB8pEWIMXJsuI9KYonOAqcRyRZOt81MsgXLf0xbozXPSLLJxG 6HF4bpE85C3lw== 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.4] ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897 Date: Wed, 5 Jun 2024 07:56:56 -0400 Message-ID: <20240605115701.2965523-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.4.277 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 bf9a4d5f8555d..2c0bfdfcf6410 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9909,6 +9909,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[] = { @@ -10355,10 +10356,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