Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp257378lqr; Wed, 5 Jun 2024 05:25:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUV+FpUfhJ0it7VTKlKqWnGu12oRJaPnRhuUqr93OmEjsAHfN5S4YpDAcaqKxmOvxAMHLHSxUUPmKDKTKl2UlUZsy2KsslK2rA/On1G3g== X-Google-Smtp-Source: AGHT+IEkXKzSwtUku4O+ORcnxTlTF9Q1LkOszuyPzXbmNNqo7DfSjwIDrVEcFhrQTtZumeqR7imR X-Received: by 2002:a50:cc9c:0:b0:578:55f5:1980 with SMTP id 4fb4d7f45d1cf-57a8b535cb4mr1783419a12.0.1717590340070; Wed, 05 Jun 2024 05:25:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717590340; cv=pass; d=google.com; s=arc-20160816; b=t518ac8VmBax1q+jDSMmgskH9m0cWphDm9rKEOJ6BNXdgyG2dBji7Jno0uFN68zuYS GB32ZS+YzbSIGLWzFYjKPC26DU3ALS759hE4ttTtQxlY9rjrNpgHu3QLWs6NolAzpLeS mce48NR6yJfPhHQNFDBqmcnVEAvw2B3jLE/p68QsXP2PVfcioH6Yhq5TqkEOuB6sIC0F rU01F+CeaxX6vUnK8DT3ngG3HtTr8NxyWV7hkcTGZoBLabkFCZ+HdcWO8zNZEJSlcV+K PyTbLorCU6Ud6U3nfsGu30ad2FsqS+gu5tq0y42x3n1ZKCdMZ9MuYWtvkT6Huh8qulHd aMOA== 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=gX+fgYGEah8PENlLJ3rmuHpXcwfeJMHaC+6R+QgC4c4=; fh=gnEEeGZCQZlW+ip7VTrZRO0NHptecQsMbA0qUTAIm/g=; b=aj2bjGrwBeMvf74qAvqDezLjRSYBhbQ6rUoBU5DFZNhqpI5z0NDJUQg6uMBcPxXHgk G4QcBM0A/OLKz+gCjSvDv6bV1XBFM9a8vB+iDtritjwvEPqlUju0Ni5L9fYXXFo8Qtnd Tjya0Ncbv5Uul7rdqC5OnEfF3Rqkebl9h+Dt6fw5afnrYbU4FCLLFG1vFaxgRz8MRx28 ARZcld4ZrBKeyzcTDHjj3l8owI7L88Nezm49TjKrwlC6h+iltyNMWx7TPjD6k2398z5w 7Qfi9038+EG9gHTuC2pPsohE+gpGr5fwLQ1EK7Xdwp1KUIcgdQkMsTUNwJ4iifWEEPbp eFsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U79Xo6AG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202440-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c76146si6084445a12.382.2024.06.05.05.25.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U79Xo6AG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202440-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C76251F253D3 for ; Wed, 5 Jun 2024 12:25:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B341A19B3F1; Wed, 5 Jun 2024 11:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U79Xo6AG" 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 D46A319B3C4; Wed, 5 Jun 2024 11:56:48 +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=1717588608; cv=none; b=kP3L94nxZWIS0/rp/nNJaUr3R0IAEC/gNvnOvkAyV49NC1cschiN5B4wczkVGrx4xUQx9QKz78E5+wm/m+7nVKES9qMDC1mJf5hXhAuLYXZEfNgldKV+l6qDj7Tj2EuB1DjlsJpoFepalNx1SngmyaLBu+A/wI5gYy5ajwSU7BA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588608; c=relaxed/simple; bh=vY/VDyD9ZJAzb0I7xG0RpTMyply3Rz45XolFBmIWH2E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IVcixZzEt2NlNTVk0Q41LcjbG4z5qfRp6/WgxmkF9uj3k424n/J+8JS47zycrTlDozUoNzMBRs3/uCvwRTc78evxBO6LKgXrPa5RNJ0X2HHoGDPNRUXRE5xbD9JBAIJgSlLVNs3laNG++02fdZUWRExnFovDId192lCBcbFINt4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U79Xo6AG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CECC8C3277B; Wed, 5 Jun 2024 11:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588608; bh=vY/VDyD9ZJAzb0I7xG0RpTMyply3Rz45XolFBmIWH2E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U79Xo6AGwA4mWx4F5nZ7k8ILje6zDmcbQvi03oYcvL+2oS2n70cwuRmlEaKFaPqg9 erOLs9HZcMUCV9Bo4+Ntiy7o3apk3hCQGhEMUdYOZcCH628sChkQ6Kl/4isqVTdCo0 OcIeEiHXomrz+jTMK9cstKjbFF+cfc0+L7qi+99VkyQIxu9vpYZcWVMsxP4t2R7SzU zhjQLqXelUhDoy+4cSOV5vJAQKT2BJOpqDgneOXaJMIMcnt7m9yMKAcbn2ZrvihI+u mFcXTa+un96mv4O4RWI+sx2cTnvJXZzn0ToKsckYd8qqvA6yjFGvm5u0dlHxe69kUi F9Im8kyr5rq0Q== 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.15 2/2] ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897 Date: Wed, 5 Jun 2024 07:56:39 -0400 Message-ID: <20240605115642.2965408-2-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115642.2965408-1-sashal@kernel.org> References: <20240605115642.2965408-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 5.15.160 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 c7529aa13f944..a336ed0c3e67b 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10897,6 +10897,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[] = { @@ -11343,10 +11344,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