Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp260387lqr; Wed, 5 Jun 2024 05:31:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoUswFbZjzGJpx5wB/tnAGUWz3Ajd7/REceOif+KK/B6DMPVAdmIwTmTE2d4VnNYv3Pj5lobciN1koJdy4G7k+59o79xOw6qBECmzs4Q== X-Google-Smtp-Source: AGHT+IHMi+m8rFfeyQXOSpzdx3F5oYobfp5gGjDaZ4dozaIcPSdNLHetTvQpTxLdhPh8pW0qfRdT X-Received: by 2002:a17:902:c401:b0:1f2:f090:b2c1 with SMTP id d9443c01a7336-1f6a5905dd4mr26275085ad.14.1717590669649; Wed, 05 Jun 2024 05:31:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717590669; cv=pass; d=google.com; s=arc-20160816; b=KicLqrnhZWqV8iW/zl7EZmmiPAjVILzhMuU05FwJTvU5n52qLZPvySShcTAkCCKypB i8pzNIJKmSIGcEhexIx82v2Ad4028Rg+38YuCSBZnaov3jk/5vRhckb2urkiqkJgDIWR x3ens8vqDFFe+0C15FG119sdRAAGiyuL9k1EwCEMpz75J3IFPD2adBQkaR3p5PKV0XYe UhjJT8duO2AABk8v70INcukiSdJKnaWZqNgZyMDImWjVszsGKssW5wKiZQ+3wVu5iFfQ XZM5h3qHX94xCexaAoUoIeKBdC8bFkdJR6WmXvsvOJeiz90mktMFdlOBfhw6DB/eN3kM Jp5w== 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=oKgL9vK+w+M6j+mQU8SuCwwSPRVYp5xNkbPnFGd3wpI=; fh=gnEEeGZCQZlW+ip7VTrZRO0NHptecQsMbA0qUTAIm/g=; b=NLkCM8eUT78nR3oxvqs2zpcFLc3EybIgTbgcjNNTJAwm87U7qw2JbCnOKY93r9A1jU FLCUtZlnrmEl7Y9OutvMAiy7WyrFiWTzdemlD2sOLdkXkAjSY6+YueKXy61rSZlqTrxW zhJp2dT+i64G/+7EyXdnSYbbaO5b4uPPnmdVqZ3whuJw0BbPEaUuOCBpxTxSiTJbj91q GTOc7umWHJ37DZsDz6xUlrj7hPkSnKaPoDw5K4RKHSiQQbBhXyKkzmV4/a3ds/a1ykrd jMi1mU+ln9b+oSgA49nftXQz1Gqr5AtTl5674OxtkRmfiS9duryB2ozT5l72zT3xvsvs dbGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oxOiSyfZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202428-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f65fe0c2b7si68521995ad.550.2024.06.05.05.31.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:31:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202428-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oxOiSyfZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202428-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202428-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5577B286588 for ; Wed, 5 Jun 2024 12:22:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB85C19A2B6; Wed, 5 Jun 2024 11:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oxOiSyfZ" 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 DD10B19AA77; Wed, 5 Jun 2024 11:56:13 +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=1717588574; cv=none; b=bnQpPx9dptjvg0pZT5HDqjpqjMflXghhPj2Ql2cVCRx6hQFQJMigY6MACbXo3dR4hJSyxzQIHymK8pQaCcgnBVGriKvw3f2qRo7fi1XYRsYOVXG+X0eg5FeFxuPEVZudJumwI7yjgLQdSAnrNtXPduOZKJT1y658U28oUjb/B98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588574; c=relaxed/simple; bh=8HF5M0GMnZWmOIvDSOIUcadQ5EQG3O+jPV+OdmrbMfI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B7w5lwLXOpnhOy/qVupwCkwA3HjDLfGT/kbj1y9xX4CVqSDn5vnPI4rJ+XArqXtXYRkiPFSld570aPAx1FhwjrsupkSI2I3v/R+ZxNhtA2crJedeHuHasiqDKy3Ik7LKFQUx+Y+kUwbWRa6ZLMUtNaaijJ24445Rz3fBLRRKIx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oxOiSyfZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F8EFC4AF0B; Wed, 5 Jun 2024 11:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588573; bh=8HF5M0GMnZWmOIvDSOIUcadQ5EQG3O+jPV+OdmrbMfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oxOiSyfZINbbuTHk2UvsKjJYj8eYshJpI8cTmGXd1tQ7ED3Vaga3HBaUkVr3boNU2 oqFDnk+5x043SWAsmxbDyjYxn27YM0+RNDZbUscBnvLvZe4Vva2Elq4Re5AcOgQFP5 EuxXsKmClUSQ3faeo68UX/YhONbSz4tPwIS3YTSlIw1gDd05dgo4vBSvpY2rTzM6AS PP0LIbwmLEjt4zwJuQPpZVM+qU4OLIA0I8N8ZuELAS1gf/9IdyFEWsLVXhPlsul95f /jt9S0zUNXRNAW+iVSAWpyoogeBGdfYlbtmKYAg1NaPBzIRyZwt/R+1jD+AzfjEMbk U/oBSMBzgLpPA== 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.8 5/6] ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897 Date: Wed, 5 Jun 2024 07:55:57 -0400 Message-ID: <20240605115602.2964993-5-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115602.2964993-1-sashal@kernel.org> References: <20240605115602.2964993-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.8.12 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 7c82f93ba9197..293e811eec7af 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -11909,6 +11909,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[] = { @@ -12355,10 +12356,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