Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp166546rdb; Wed, 20 Dec 2023 08:59:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+rQnfHI0TGYUV1dGx9jahXadhEtUXj3CAJv4bDeFwEgjMBaS/DBwvdKPp1W4wQIbBAs5b X-Received: by 2002:a05:6871:293:b0:1fb:dc3:782d with SMTP id i19-20020a056871029300b001fb0dc3782dmr5889oae.55.1703091571446; Wed, 20 Dec 2023 08:59:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703091571; cv=none; d=google.com; s=arc-20160816; b=bcj06L6UVNq0ucBhV/7JFgYaa8qmFJnlPBLyOGvlfT5vN90lGNbSWz21D68xfNKzXH uOaw1nXdtzq+PHUusKC8v3oHAjXpJO1rhOiy41U36Lq2ZzVsebIw3X/sGXej+isU1SXo RUqV6376WIXSxKqyDR4k7nuskI+9mY8XfXQLFv0OhXz6A5+pZoSD/kzULnsZGsk/ckp/ kBr2VvURIodAQZABDYx0y9FfHcpnUwsDYobU9vkoSYLcUZ4KU76WJSvcVbzpQd438AJK V/fMeD8wGBfObZf+NhckveaAy1lvqyRKRWNhVRHnSvaIIpK9RrkZ9AwNXKokwD9a9KYP IZgQ== 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=XIPRqi584ANtNhRouSTs5PBUzcpumIyReVpu06clA1lg0eVtd+cDsM/ZI/kfH3HwmF BK+jzAx20iIkITO+9j9S67PIaVFzjkrMRBCvN6+QGPNBAxq5jzNB6pL3dAcf1g7amLIr KDCyb0+oVOzn8dX6qmHRTkTXdpU4wGUrjqYZ6wBMjObuZSeSqssNFi+izRrYEBPuKTBq IadcMatv2SLZ0TweSoMla+IdGCr23Ud2MlFLE5tAPH4W+IT5hNLKLwtIGxO6sYPKORbr 2KRrLh2WjuCuFAk1ox2BQMGKpZxDOO60YE9IFSaCiieCR4QWhie1qVqFWzfvU03vDpcI KKYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=lNZafo7F; spf=pass (google.com: domain of linux-kernel+bounces-7329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bw19-20020a056a02049300b005cddb743bc7si17098pgb.709.2023.12.20.08.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 08:59:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=lNZafo7F; spf=pass (google.com: domain of linux-kernel+bounces-7329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7329-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A7FD8284D38 for ; Wed, 20 Dec 2023 16:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 341E547A48; Wed, 20 Dec 2023 16:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="lNZafo7F" 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 BE21247765; Wed, 20 Dec 2023 16:58:49 +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 3BKFAkON027189; Wed, 20 Dec 2023 10:58:41 -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= lNZafo7Fr4exUu07aqUrjQF33MuLJRaHXlbT2A8s10drVT4BATSrQXqB0FyTXZhA i0PRi/axCmSCxpu0Mttn2LWMWxWYjilj8twGFdqWWvi957UTwuiQG9G+Uqt25+PF u2bLZFfNiqAcs7KIsnF/5ySaM2OUL5KlKG1SiVXRS3Va/fWtOIjq0J+ZwG/Nu7+Y g3nnVSux3IS8aL0wxbPFWy3EsD2x8chmtt0K2S6CX0YpbxHGZMfgM92Zx15IdDlx EFN1G9p/A/M9QVm3L+Y1pSxgN1fPqAtnA6eDg1jYtkvxnjk9i5ZTCZvlvp3AVjCU yPO4mcX6lPoFr5tGnkb/2g== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3v196ndrdg-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 10:58:40 -0600 (CST) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 20 Dec 2023 16:58:37 +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; Wed, 20 Dec 2023 16:58:37 +0000 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.77]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 353E011D1; Wed, 20 Dec 2023 16:58:37 +0000 (UTC) From: Stefan Binding To: Jaroslav Kysela , Takashi Iwai CC: , , , , "Stefan Binding" Subject: [PATCH v1 3/3] ALSA: hda/realtek: Add quirks for Dell models Date: Wed, 20 Dec 2023 16:58:29 +0000 Message-ID: <20231220165829.160711-4-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231220165829.160711-1-sbinding@opensource.cirrus.com> References: <20231220165829.160711-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: uNzjNIoKQOVuczaLqKWqAaH77X6W1rxa X-Proofpoint-GUID: uNzjNIoKQOVuczaLqKWqAaH77X6W1rxa 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