Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1737738rdb; Sat, 3 Feb 2024 22:12:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2RimwocrKXQhoEXZ/76uP56Da5NWtFo/O7e/h+2IiyPgk+h0mUNUpknUBpjerzmOa71bc X-Received: by 2002:a05:6808:298b:b0:3bf:baf5:8513 with SMTP id ex11-20020a056808298b00b003bfbaf58513mr5676582oib.52.1707027153739; Sat, 03 Feb 2024 22:12:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707027153; cv=pass; d=google.com; s=arc-20160816; b=NMyZCUd/SkpR4NqqOOzKZQ4Qvj6AcaJEoebmwzUfpEmE5Dswi0Qvv4uCl4IQyg0F7N 6G3vpr6EItmgUcrMXkoqPG0PNtyztx1tJjNdwEF6fQ8Hs5I6rgxhw4nT/JDTw85/QZ5N FGzD4F+MY+PvsLg9DcgRN7eoKfmUHSaWCX1I3TnyE11sFwfOwnYWCqZWpFPYFmOxt2IQ I0sSffEfpgSRM3oMhYA/xprW2f2etMqP+X8Jw01Sfj6+a/y6lGxilYS8Fz6NlPwjqhxn qHYEuzGiIO0tiTIv/kd3OG0tymiFm5WX6P1qYF+Ppd7SJYimzLie7f+vhwf3xQMem1QV 5vjA== 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=cEMIaoVIrvOKbeYMMwM6RMzPFrkutgTtre+cFa4bAuk=; fh=nasFNVHdrmHPx0ssRkXpjMwP2C7ipDDpG81gRCC4kfY=; b=YXGs9UKcN5ABk2m1wZv6lJs7TY6s89C2g/mrG1neTGvuZdliqWqEmeE7JhCvY/Xisr gC/HlmMFuX1Vdb5om8vdKTdAuqlzUykLzZYvYgityZku9ig8RZ70mjIbWkukJrJrJD+a JlYMftZQBBIHh07ogESXphXUbkb5+2z5c1S1frVj+0bVxrCOzwzY3JuiFkVHhoZ8N52D SSQZtONeqNutm+6N68dax/ZAhBSf9llDId/X6qG4Z1KKim6FyY3QwUnAuNNDBFWbYL9p ch+iXzlrCnlLi0GkM08fZOi/tCDKud5yYfLKyE+ph5s3+Bb0Ih7Plq6oGketYzgxqjE8 DFNA==; 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-51450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51450-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; AJvYcCWSsLjQebjXBG77VyFVHGwzToLPevu8AkMkqXZ/bci+GbqpEE1ojXnzaEAEmB2vey7EKTBhaJQmT175w3dcDrwQq5xmqEY4vBa2JCGU5w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c19-20020a63da13000000b005d8e3a180cbsi4195478pgh.841.2024.02.03.22.12.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 22:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-51450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51450-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 63142281BD2 for ; Sun, 4 Feb 2024 06:12:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95C587465; Sun, 4 Feb 2024 06:12:26 +0000 (UTC) Received: from mail-m6017.netease.com (mail-m6017.netease.com [210.79.60.17]) (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 8240C6FA8; Sun, 4 Feb 2024 06:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.79.60.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707027146; cv=none; b=PNwVNs/t9L/nklrb3UCwxCTWQm0m54A+YPUZkXy+NTCISzLE3YMfnFgdtUvkOX9onq2Lm8kslZDH0lZlOxnY2CE+U8BsxfzbaqLBHQGoW5Q4uQLv3SxOb+GnzCAXB38blTTmvtkmLQ5HQ1+VTBzWuc14wgGUtMwoJiTe+iQ51X4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707027146; c=relaxed/simple; bh=L7VU0mrvuL1+eMtSkEdZOhT+A1UBXWPT4kmvv04CzjA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LWYmxEt7MZTooh8WJF/WTPp4raO3OTKAHHPNNu2dn68gJGjSNyJnpvpO4Vm8z8MTiC6axzwqGH4kJ3N++kbNG147Z8rGtnHIYg9xmUslw29TpFZKKyoehs+yHwoLQrSF5MmJBFwxK6DV2HqTn7+htrnjKTg8pV73FIxjMM9dgzE= 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=210.79.60.17 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 A04D6900172; Sun, 4 Feb 2024 12:53:51 +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] ALSA: hda/conexant: Add quirk for SWS JS201D Date: Sun, 4 Feb 2024 12:53:44 +0800 Message-Id: <20240204045344.48397-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 tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCHUpJVkNPQ0gZSE5LT0JLGFUTARMWGhIXJBQOD1 lXWRgSC1lBWU1KVUpDSFVKT0hVTENZV1kWGg8SFR0UWUFZT0tIVUpNT0lMTlVKS0tVSkJLS1kG X-HM-Tid: 0a8d7277361203a9kunma04d6900172 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ni46HTo*ITMISD8#Ii0vET4W IzkaCxxVSlVKTEtMS0lJT0hJSklDVTMWGhIXVRkUVRcSDjsIHhUaCQIPHhgTVRgUFkVZV1kSC1lB WU1KVUpDSFVKT0hVTENZV1kIAVlBSEtKTTcG 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..a0bb4d91502b 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[] = { @@ -1091,6 +1107,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = { SND_PCI_QUIRK_VENDOR(0x17aa, "Thinkpad", CXT_FIXUP_THINKPAD_ACPI), SND_PCI_QUIRK(0x1c06, 0x2011, "Lemote A1004", CXT_PINCFG_LEMOTE_A1004), SND_PCI_QUIRK(0x1c06, 0x2012, "Lemote A1205", CXT_PINCFG_LEMOTE_A1205), + SND_PCI_QUIRK(0x14f1, 0x0265, "SWS JS201D", CXT_PINCFG_SWS_JS201D), {} }; @@ -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