Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2257210lqo; Sun, 19 May 2024 22:55:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV92FmGEd6KNvEvPn0umrAO3dLappORTqb9OZJz3Rl+lXp25HlOdNw3qrkhd1L4sr+5eacEHinhkoc1Uq7Ds0yYBUfiO9H9hlAFx5wkjg== X-Google-Smtp-Source: AGHT+IEF+xiI5QvICsjFMyFT7qakIIjpook3Jh32kngb2zGce1H4GLBRephBq+YGw/tZ3d0OWeVh X-Received: by 2002:a05:6214:4306:b0:6a0:7791:3d74 with SMTP id 6a1803df08f44-6a1682001cdmr313937446d6.38.1716184547061; Sun, 19 May 2024 22:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716184547; cv=pass; d=google.com; s=arc-20160816; b=J6O7VvTWtZwuUYKgQ5DQ19nOjyQTb3xx2JZAM6/EUx6Z0dtxPHPApL19Y0nrdIDWEr VPuW6BazTNBxvg2DkMKdvp36FWXPOLxT9Nd7oRSMEToUpM3IrxMS4xc+CH6neyvGVuqW lhpfXiDO1fUPAbLShNA1GrgL/sMnZTK6KiCy6Me7KN1jOQDp3XZ2HlRyTLFyt0IbWsge nnuq05VSGCAPz/pamzMd8cvCBn/rzKU/cSuPk1g7lhQL2ImDUshxzgVommVW8xCI9Mv3 5M2Ssu7MK9nkvrnS/q8OekVBgrBzDIF9kMv1mfZIkEANRt/1Bkyq+xUtPwdFDSjAEKWd Tiyg== 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=36PWmDpbq81T7RKlLsRFp+nZgDNN5IQn5Hg/VxCttB0=; fh=o/8J5a8vILGSdFLTNMkFq3NfcZ2TBqgwpWioITU2Ksw=; b=qPZTu1AITP0LrswPYIjG+OQDXbUbxOlXkdQ6mu3lrXdZEONSAZLd0yi2caJ9rV7awq 6jgsRbOdg45PSbmrfFCO41ThW3leq31yOqLB/ISY19KvXjemgz9KlmDrvBQYq78PdvdK uE1X+EQsg84Y4bF5n5Obf37kV/w3yv4Vu8Nqbieb8zX0hsqxrx6bNtc002eC0s8Kujqq Jg2nmC5qrrvEuAFo9OJCgDFJmOmEfMhqnS4X/zzASzEJdv0HHoRD7MtGKfycdL3VOwGk Xnu5OojfGV0pa+GXkVuKVpNq486qnnr4xjLMloFp06iQwsbFetrs0mZiXZA/Oj0TTKSJ pJtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=pMNJ79Pb; arc=pass (i=1 spf=pass spfdomain=endlessos.org dkim=pass dkdomain=endlessos.org dmarc=pass fromdomain=endlessos.org); spf=pass (google.com: domain of linux-kernel+bounces-183424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.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 6a1803df08f44-6a15f2b7663si237592086d6.373.2024.05.19.22.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 22:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183424-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=@endlessos.org header.s=google header.b=pMNJ79Pb; arc=pass (i=1 spf=pass spfdomain=endlessos.org dkim=pass dkdomain=endlessos.org dmarc=pass fromdomain=endlessos.org); spf=pass (google.com: domain of linux-kernel+bounces-183424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.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 A5C661C20E54 for ; Mon, 20 May 2024 05:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 771D9168B7; Mon, 20 May 2024 05:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b="pMNJ79Pb" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D679C12E47 for ; Mon, 20 May 2024 05:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716184541; cv=none; b=ivJVU8bOeMgf/Qs6QJNuqFLjlUMjc7la0T8a5BgMGqBlySI2HsrzDhjsFmDS6Vm4/W4BkRQcQbhsao5x05qMCLEjti9xwRJ64HuuburGt1Q3gzoZLCgfxiZheSoXF/OsvriD7oh/B0hkZ6cLv2MWRcXIeHvkDvwtJx+aWOz84c0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716184541; c=relaxed/simple; bh=D3hBfBWFAkOkXE7XZHVApE+oFgVIye9G/XBbO66INHk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pcopZCVdIVXjb8302fTg9FvyWs6+JmfxZ7Wd9Y0+A5pmizJG3MSJS/BKn/4mEJHli+5Z4wRMe0zitMUjDe4vnQM0YZsCbkCxim8Raltsi81r2PsXSChUn4bGnoAVzItOI6wG8bCzfpPMSrC4G/Cu1gFgnhcUwIzsMNJ6olN2w74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=endlessos.org; spf=pass smtp.mailfrom=endlessos.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b=pMNJ79Pb; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=endlessos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=endlessos.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1eca195a7c8so62761685ad.2 for ; Sun, 19 May 2024 22:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessos.org; s=google; t=1716184539; x=1716789339; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=36PWmDpbq81T7RKlLsRFp+nZgDNN5IQn5Hg/VxCttB0=; b=pMNJ79PbSjNWFnMJkG2yp0wr/FXIowZ6ogJKLjI2eY/nlHjAm6cbBpYND73/hD2rd5 lpMVOWBrRRzoeTPiZ3kUUWBW5IsER6kEThnSpp/bjWHW4954T8MDTQ9Z9ddPoEwdIQcQ I33Lql84La5dXdAa20CjhlwU9tlFyBo3dHJAPkLYltY9N3S+2e0Db5em419f3ACEL82V OMU86IFi8dQb6cHMbpztSvssu1q3ifIfVz+cnnuMdGEAtnna7EhUuRFVRpRx25U25mW+ e0LO5E42hh+E9bD9NUnYuGPE/JAnT8m+CIbsmXyGZI2jIMZ6UC8TkPJ4titjFlduX/mg s2LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716184539; x=1716789339; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=36PWmDpbq81T7RKlLsRFp+nZgDNN5IQn5Hg/VxCttB0=; b=oWSmybynY6wmzOTciJsi5wg0AvKJT9zRnnaa7vNO016vMzl/uPJE7pI5by1xqoX/CP yNutwW4v7JQe3sN0/tek6hGgXoUPDOPzROecb8KGbQJaVa4lFZLjUpgMFSgcGHIU5QhT 2Ltye5GiubIB5lNuIDIOgyovLHDW0T5fgjRNwXSYilGL/pFw/OAMrEyEttX+T6WIe8Yn jYkrc6qHefI2FYr7ukmRAhTVEJWdKrXlZhYX5nvQH37mHzkg3fIDTfHdBBXBVhWNwkmv y6VgnHMu4aBOPH4E88hhunAv5wYkgQtBOEFBPOJWgOobrmPm4vsSo17EwZaZ5sNt6JfO IuEQ== X-Forwarded-Encrypted: i=1; AJvYcCXuOSacEVMvPTk5gJMRvCZDwW63mulsqfBCVwioeQ4LngjL0uEc4p00re/sewUoVI9vkz0YQHs3a287dJoeRfKB5ZqGfR2J6PKsxhiR X-Gm-Message-State: AOJu0YwsMqHcTODP1id3s3CZ0e08n6tYspnQS3HAGzuZMx9AYu1ZTsuS obvh439zlrOFXqBPuRNRZEvGKhsoa5qbo7MBHZgucce5o4pDuddUC+HqbnPOandGX87OUS7TFkS K X-Received: by 2002:a17:90a:bd8d:b0:2b9:a299:918f with SMTP id 98e67ed59e1d1-2b9a29992dcmr14764641a91.6.1716184539031; Sun, 19 May 2024 22:55:39 -0700 (PDT) Received: from localhost.localdomain ([123.51.167.56]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2bd5f7e6ce8sm2053507a91.0.2024.05.19.22.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 22:55:38 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux@endlessos.org, Jian-Hong Pan Subject: [PATCH] ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897 Date: Mon, 20 May 2024 13:50:09 +0800 Message-ID: <20240520055008.7083-2-jhp@endlessos.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 a696943aec0d..c3a8e601614a 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -12028,6 +12028,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[] = { @@ -12474,10 +12475,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.45.1