Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2152626rdb; Sun, 4 Feb 2024 18:17:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+Ae3eBcqDyVABzgfpemorspxp9Zb8v2CA35JooSRK0D9FRO8zAkMP197SjI46tNeTPLMo X-Received: by 2002:aa7:de1a:0:b0:55f:2ef8:7fec with SMTP id h26-20020aa7de1a000000b0055f2ef87fecmr4553754edv.21.1707099449059; Sun, 04 Feb 2024 18:17:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707099449; cv=pass; d=google.com; s=arc-20160816; b=rHIXfAmXVMKEU/JvuBDs95EkEb+Ng9wV3nwdeqwngVF1WkjNOs7NiyY27OFpRMbdrN zM84kEfMvFxDgMZb1cpdLs3pWOi8RYKH6UnumXBQa9TUoUjBWm1zLwYQFCRoAy4uQ/N/ /hZBufnNtzbPkauh2EuJRtDUY/CfpSw41j3ns1plrRhGCMypkrXFl2y8SYTNr6VvIA1y O2MJ9+dNzCXNUpaNwWvVBaQfrMqMCfCgQwu2bKezNVQ29Y3QSX52JVa8TKhOTCjuTV0m ZvzFmWDk1pNKNFJ4h4UNFD1TGKiudw47IsBYnAw1WSEruDaYFXD7u/lld7lxB8ER9+1o eFSQ== 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; bh=fQb/bw+ja+aQIN0cnb9bhKj3Puaez43f+qh3+AAPPX8=; fh=DBSGE3DYKtcgJtcBe+/jPiGtlKtJBmTfcnTxrBmarZg=; b=o7VnSUnpiGXdupdykitnl4vw1gP9DXhkBlgDv7bnwoiA9pQfOTlsPXjYgkBixpKEcl RmvtcAynSzXJCULK/kNSsuil3BWlM5jwUKYel0yifQ3R5JrRv25mE2ruero+F/MEEWmT ZhAFQv/jRzQ6Sj1JkrLN5ySsm9PaAVarBDjNnTOui8R66fYs8aYk0WyemK1rzQZLDxGx aS2aGuPzQK8vcVEWk8RwLoL9DqJ4+y/RcED9j9rYrTGCKfkOqe2EjnmlfVhGuv5fixal N/AgW9SiL+YkEi8PPGw87FeYIkEBincJpvGJ0qBv/ndQelXNu/zuajMXW4Wky3wS+IoJ D88g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=senarytech.com dmarc=pass fromdomain=senarytech.com); spf=pass (google.com: domain of linux-kernel+bounces-51986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=senarytech.com X-Forwarded-Encrypted: i=1; AJvYcCUXrbPqrXYpMEZnSqNXsP+RLpuAZPU1viv8Oevkburlus1XUwL3Olv84Ja2yK7Boh0RBrpNyksfF6jzkbv0yFvuAfCZFfnV0cPvSYvPyg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y17-20020a056402359100b0055f92d02d14si3610314edc.598.2024.02.04.18.17.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 18:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51986-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; arc=pass (i=1 spf=pass spfdomain=senarytech.com dmarc=pass fromdomain=senarytech.com); spf=pass (google.com: domain of linux-kernel+bounces-51986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=senarytech.com 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 C74C71F22177 for ; Mon, 5 Feb 2024 02:17:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC00E79D8; Mon, 5 Feb 2024 02:17:23 +0000 (UTC) Received: from mail-m17220.xmail.ntesmail.com (mail-m17220.xmail.ntesmail.com [45.195.17.220]) (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 7238C8F49; Mon, 5 Feb 2024 02:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.195.17.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707099443; cv=none; b=hGEckK9odSdatSTmuPDFndb/aeR+n7uMwWioM/BjMHbz7MO7o1He/sOa44YSlQfJXCHPck0csdW2mCqpyJcwh4BxIaoSIlbZ8Cp2OjbNde5WR0lCNz/wN8tzD3kKspZ7mDw4/HAYMbjfpSg7h0U59lNt6wXfOuuWmpzE8Pe2kWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707099443; c=relaxed/simple; bh=ooej1WUzjhcOCoPGj+R0vq6AQhsg2NTgBZGX2jSGTOw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rLsXfPMvjJJsqTnHbdH5FMItBvFbhqfY6ZyXB7rTQz7/cupXX8c3w4kwe0236Fl1A1PUu+hmY1Dvo5VFYKLWHDaH0q/x9Mxr1JDqP4wsTvCfiWRBS6dZx8IRnS9EasEHryZAAfbOsP3ymk16A45zgXrTDMPFnKusbUwnsYXVlDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=senarytech.com; spf=pass smtp.mailfrom=senarytech.com; arc=none smtp.client-ip=45.195.17.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=senarytech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=senarytech.com Received: from book-ThinkStation-P328.. (unknown [61.183.143.78]) by smtp.qiye.163.com (Hmail) with ESMTPA id A70DD900119; Mon, 5 Feb 2024 09:38:05 +0800 (CST) From: bo liu To: perex@perex.cz, tiwai@suse.com Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, bo liu Subject: [PATCH V2] ALSA: hda/conexant: Add quirk for SWS JS201D Date: Mon, 5 Feb 2024 09:38:02 +0800 Message-Id: <20240205013802.51907-1-bo.liu@senarytech.com> X-Mailer: git-send-email 2.34.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 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDQ0tDVh9JSR0dGElKS0tDQlUTARMWGhIXJBQOD1 lXWRgSC1lBWU1KVUpDSFVKT0hVTENZV1kWGg8SFR0UWUFZT0tIVUpNT0lMTlVKS0tVSkJLS1kG X-HM-Tid: 0a8d76ea575d03a9kunma70dd900119 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NBA6Fww*FzMKIT0sODRNAh05 KBgaCxRVSlVKTEtMS0JMS0NNSUpCVTMWGhIXVRkUVRcSDjsIHhUaCQIPHhgTVRgUFkVZV1kSC1lB WU1KVUpDSFVKT0hVTENZV1kIAVlBSElPTjcG The SWS JS201D need a different pinconfig from windows driver. Add a quirk to use a specific pinconfig to SWS JS201D. Signed-off-by: bo liu --- sound/pci/hda/patch_conexant.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index e8819e8a9876..e8209178d87b 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -344,6 +344,7 @@ enum { CXT_FIXUP_HP_ZBOOK_MUTE_LED, CXT_FIXUP_HEADSET_MIC, CXT_FIXUP_HP_MIC_NO_PRESENCE, + CXT_PINCFG_SWS_JS201D, }; /* for hda_fixup_thinkpad_acpi() */ @@ -841,6 +842,17 @@ static const struct hda_pintbl cxt_pincfg_lemote[] = { {} }; +/* SuoWoSi/South-holding JS201D with sn6140 */ +static const struct hda_pintbl cxt_pincfg_sws_js201d[] = { + { 0x16, 0x03211040 }, /* hp out */ + { 0x17, 0x91170110 }, /* SPK/Class_D */ + { 0x18, 0x95a70130 }, /* Internal mic */ + { 0x19, 0x03a11020 }, /* Headset Mic */ + { 0x1a, 0x40f001f0 }, /* Not used */ + { 0x21, 0x40f001f0 }, /* Not used */ + {} +}; + static const struct hda_fixup cxt_fixups[] = { [CXT_PINCFG_LENOVO_X200] = { .type = HDA_FIXUP_PINS, @@ -996,6 +1008,10 @@ static const struct hda_fixup cxt_fixups[] = { .chained = true, .chain_id = CXT_FIXUP_HEADSET_MIC, }, + [CXT_PINCFG_SWS_JS201D] = { + .type = HDA_FIXUP_PINS, + .v.pins = cxt_pincfg_sws_js201d, + }, }; static const struct snd_pci_quirk cxt5045_fixups[] = { @@ -1069,6 +1085,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = { SND_PCI_QUIRK(0x103c, 0x8457, "HP Z2 G4 mini", CXT_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x8458, "HP Z2 G4 mini premium", CXT_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN), + SND_PCI_QUIRK(0x14f1, 0x0265, "SWS JS201D", CXT_PINCFG_SWS_JS201D), SND_PCI_QUIRK(0x152d, 0x0833, "OLPC XO-1.5", CXT_FIXUP_OLPC_XO), SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo T400", CXT_PINCFG_LENOVO_TP410), SND_PCI_QUIRK(0x17aa, 0x215e, "Lenovo T410", CXT_PINCFG_LENOVO_TP410), @@ -1109,6 +1126,7 @@ static const struct hda_model_fixup cxt5066_fixup_models[] = { { .id = CXT_FIXUP_HP_ZBOOK_MUTE_LED, .name = "hp-zbook-mute-led" }, { .id = CXT_FIXUP_HP_MIC_NO_PRESENCE, .name = "hp-mic-fix" }, { .id = CXT_PINCFG_LENOVO_NOTEBOOK, .name = "lenovo-20149" }, + { .id = CXT_PINCFG_SWS_JS201D, .name = "sws-js201d" }, {} }; -- 2.34.1