Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp152334rdb; Thu, 21 Dec 2023 05:39:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3L+AwGQeo2gRJ3AVIKnDEvh5vRGq/fKMpRr9jY1Y4Dc4oeEZHg7hwWP8DkA67RidYJXYM X-Received: by 2002:a17:906:230b:b0:a23:54aa:311b with SMTP id l11-20020a170906230b00b00a2354aa311bmr895612eja.34.1703165978931; Thu, 21 Dec 2023 05:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703165978; cv=none; d=google.com; s=arc-20160816; b=S7l4z/rjw4GbwDT7f2/myoxBtmUQziTFIYdqkHKGIlPCaBNnLE23B3/QOkZLM75lGB MdB3R8iLp90GNGcHAgCuOwHvpqwYHKH3bzekLrBitLZorKbxJMTRX0xITH6ApvS5HE9t ryTYVZJe/V9RuapPymoB++9eNGgrqxsSHA/ZtaaHXn3TvGzmzdR1T45CgH1I6GzR1Xgx VOyoRkoAToSPEzdk7lrQDkVMFLCvgHolFI8auaC7KGakFCTqM1mRJElPiJRutMjqYrDb LnfehZAq3OYpYbs49WWZGmN/t9hsEpqvAKKk0XB/jZozEikDQavU86wOPIgr/8Z1YgN7 uChQ== ARC-Message-Signature: i=1; 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=EajC2Y+U3XPz4VNfit3GQaEJJ7g/+QfS/Agkz4pZems=; fh=CIzheBTUL5fyGH3nbQHnzCXjO4Ty5MYCLcLsWbV53xg=; b=EDRsDxn5b5kmHFPKVj+8quptumY7c/FRAbuCVL1PBADj5qYOxf0oIu3XEJeYbPTWeD 7XZie9rARsTUa2blfnVxGlewNFf+Za0P0mq9jmko/SuhIpOimNsQDx2vdOKKQLaNpTy9 fd4kO+AXnwE+P0D7Xl+3UqLYRwGFpePbwi11mMThdPwfobAN0LE+fOUAmi+yhvvL8e4H Agca346p/InPvL4LRGlMdSRiAp7zOl9Q0x4e5xBXoKRzzHa6Sc9hY0W6NVQTv0FJxBJI OMuKAppL1l+erRXxXZygRvsClqBn/eDOa4cltTFwlzO7CK9jMV6cY4X810CGKFkDxBjG DXHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="MWGZo/HI"; spf=pass (google.com: domain of linux-kernel+bounces-8474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dx2-20020a170906a84200b00a1d83dbee15si877751ejb.314.2023.12.21.05.39.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:39:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8474-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=@cirrus.com header.s=PODMain02222019 header.b="MWGZo/HI"; spf=pass (google.com: domain of linux-kernel+bounces-8474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.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 A61E71F2529D for ; Thu, 21 Dec 2023 13:39:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69535127983; Thu, 21 Dec 2023 13:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="MWGZo/HI" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (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 C825584D5B; Thu, 21 Dec 2023 13:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BL5NG1K008651; Thu, 21 Dec 2023 07:25:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PODMain02222019; bh=EajC2Y+U3XPz4VNfit3GQaEJJ7g/+QfS/Agkz4pZems=; b= MWGZo/HIfJX+/pI/DcaTrbvCXaLylkr1/sO2uQrOkFevqlCBga+O3UhOSel2U9jc EiV223KoGXALMiWDO33cPeTwqjx59yMBJC3WIFtGweOraKzcBuGvsoFk837i4wCV tZPl22NNb0TNJXpO71xv4BoINT/mFGR2CLLvUCqO/n9S9jPTjFdie9lcQsWjRFbr XCCPIoGACYzSeMkB23umuRljd1YFVbMM5rVwZ+p1Te59IaD4jopNv9ODOL3YN92V +dNZ+A32Il1wNNYeu6gMDHhdXAxUxT/PQ9V5yufFRSBXzp8rbboY4gEqBgxiyRBf PByYmP3Y9rStMOzx0ZkUJw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3v196nfar8-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Dec 2023 07:25:27 -0600 (CST) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 21 Dec 2023 13:25:25 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.40 via Frontend Transport; Thu, 21 Dec 2023 13:25:25 +0000 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.77]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 857EF11CC; Thu, 21 Dec 2023 13:25:25 +0000 (UTC) From: Stefan Binding To: Jaroslav Kysela , Takashi Iwai CC: , , , , "Stefan Binding" Subject: [PATCH v2 3/3] ALSA: hda/realtek: Add quirks for Dell models Date: Thu, 21 Dec 2023 13:25:18 +0000 Message-ID: <20231221132518.3213-4-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221132518.3213-1-sbinding@opensource.cirrus.com> References: <20231221132518.3213-1-sbinding@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: DE60y9DnppAR2lFR6S8g7xba5pYcHkZR X-Proofpoint-GUID: DE60y9DnppAR2lFR6S8g7xba5pYcHkZR X-Proofpoint-Spam-Reason: safe These models use 2 or 4 CS35L41 amps with HDA using SPI and I2C. Models use internal and external boost. All models require DSD support to be added inside cs35l41_hda_property.c Signed-off-by: Stefan Binding --- sound/pci/hda/patch_realtek.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c3a756528886..19040887ff67 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6956,6 +6956,11 @@ static void cs35l41_fixup_i2c_two(struct hda_codec *cdc, const struct hda_fixup cs35l41_generic_fixup(cdc, action, "i2c", "CSC3551", 2); } +static void cs35l41_fixup_i2c_four(struct hda_codec *cdc, const struct hda_fixup *fix, int action) +{ + cs35l41_generic_fixup(cdc, action, "i2c", "CSC3551", 4); +} + static void cs35l41_fixup_spi_two(struct hda_codec *codec, const struct hda_fixup *fix, int action) { cs35l41_generic_fixup(codec, action, "spi", "CSC3551", 2); @@ -7441,6 +7446,7 @@ enum { ALC287_FIXUP_LEGION_16ACHG6, ALC287_FIXUP_CS35L41_I2C_2, ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED, + ALC287_FIXUP_CS35L41_I2C_4, ALC245_FIXUP_CS35L41_SPI_2, ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED, ALC245_FIXUP_CS35L41_SPI_4, @@ -9427,6 +9433,10 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC285_FIXUP_HP_MUTE_LED, }, + [ALC287_FIXUP_CS35L41_I2C_4] = { + .type = HDA_FIXUP_FUNC, + .v.func = cs35l41_fixup_i2c_four, + }, [ALC245_FIXUP_CS35L41_SPI_2] = { .type = HDA_FIXUP_FUNC, .v.func = cs35l41_fixup_spi_two, @@ -9703,6 +9713,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1028, 0x0a9e, "Dell Latitude 5430", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1028, 0x0b19, "Dell XPS 15 9520", ALC289_FIXUP_DUAL_SPK), SND_PCI_QUIRK(0x1028, 0x0b1a, "Dell Precision 5570", ALC289_FIXUP_DUAL_SPK), + SND_PCI_QUIRK(0x1028, 0x0b27, "Dell", ALC245_FIXUP_CS35L41_SPI_2), + SND_PCI_QUIRK(0x1028, 0x0b28, "Dell", ALC245_FIXUP_CS35L41_SPI_2), SND_PCI_QUIRK(0x1028, 0x0b37, "Dell Inspiron 16 Plus 7620 2-in-1", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS), SND_PCI_QUIRK(0x1028, 0x0b71, "Dell Inspiron 16 Plus 7620", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS), SND_PCI_QUIRK(0x1028, 0x0beb, "Dell XPS 15 9530 (2023)", ALC289_FIXUP_DELL_CS35L41_SPI_2), @@ -9713,6 +9725,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1028, 0x0c1c, "Dell Precision 3540", ALC236_FIXUP_DELL_DUAL_CODECS), SND_PCI_QUIRK(0x1028, 0x0c1d, "Dell Precision 3440", ALC236_FIXUP_DELL_DUAL_CODECS), SND_PCI_QUIRK(0x1028, 0x0c1e, "Dell Precision 3540", ALC236_FIXUP_DELL_DUAL_CODECS), + SND_PCI_QUIRK(0x1028, 0x0c4d, "Dell", ALC287_FIXUP_CS35L41_I2C_4), SND_PCI_QUIRK(0x1028, 0x0cbd, "Dell Oasis 13 CS MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2), SND_PCI_QUIRK(0x1028, 0x0cbe, "Dell Oasis 13 2-IN-1 MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2), SND_PCI_QUIRK(0x1028, 0x0cbf, "Dell Oasis 13 Low Weight MTU-L", ALC289_FIXUP_DELL_CS35L41_SPI_2), -- 2.34.1