From patchwork Wed Dec 20 16:58:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Binding X-Patchwork-Id: 757075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A420CC3DA6E for ; Wed, 20 Dec 2023 17:02:48 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id BB8F786E; Wed, 20 Dec 2023 18:02:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BB8F786E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1703091766; bh=zbLSZGwqJW2o+ejrwAyJOJZGNGCpv7eNzZocWJv/CmM=; h=From:To:CC:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=aZGIYZGApBVaY+6yhgdEHrNKoTTQChyrw7AM87JTquCJ5SpzK6oM98/N75o9S+nP5 gR5ikDf6koX5BVlrUNeCyffBrFuVcJq2hEDdMljFVhKboHKYx5sw/2KmvErBcpaa2g jdvuaD1U2cfwaT48Hl8Y3zrBbrtmv/gx8O2qT8+o= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 208F9F805A8; Wed, 20 Dec 2023 18:02:11 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D694DF80587; Wed, 20 Dec 2023 18:02:09 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9B058F80425; Wed, 20 Dec 2023 17:58:47 +0100 (CET) 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 alsa1.perex.cz (Postfix) with ESMTPS id 87574F800F5 for ; Wed, 20 Dec 2023 17:58:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 87574F800F5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=cirrus.com header.i=@cirrus.com header.a=rsa-sha256 header.s=PODMain02222019 header.b=HDWZHrUr 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 3BKFAkOK027189; Wed, 20 Dec 2023 10:58:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=f V5/DMnSjI8BQLbpnfoWCTEXZilAyVsqKOHnxzZqkIo=; b=HDWZHrUrYO7cGVeSg k1gRqmOwBw88UCVQZHaDquL1JtrgmkaGsqUhKlWHyBl1Q5zirO/YZ7LA3tD0h+9R cjHoObGbrJsCgrsGaraVR+HIz7aRcVlElx1UFC8PgsQn7adiZbpGCSaJ1LJI7Ucd g7kWeDGAV+7kTx+Q+U7pnesh4gQGy/+C+bIt/aREuMwx+YY2BSYfhe7ETBc7+u2N HTbNGsqGEZl6P0qMzaRWj5HqEw6GiCSjjyah1XK55luBC/rFfeD6ZDyatUG4im0f rzXde0ekXXXI3cP4DXkwy62nUCWgUUxbdwFXBPWmZ+bzxX9+ie4kJZXU7rDFSbD9 bSyGA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3v196ndrdf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 10:58:38 -0600 (CST) Received: from ediex01.ad.cirrus.com (198.61.84.80) 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; Wed, 20 Dec 2023 16:58:36 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.40 via Frontend Transport; Wed, 20 Dec 2023 16:58:36 +0000 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.77]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 7A628468; Wed, 20 Dec 2023 16:58:36 +0000 (UTC) From: Stefan Binding To: Jaroslav Kysela , Takashi Iwai CC: , , , , "Stefan Binding" Subject: [PATCH v1 0/3] Support Dell models without _DSD Date: Wed, 20 Dec 2023 16:58:26 +0000 Message-ID: <20231220165829.160711-1-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: QTqKkQHl31b5ZYbMagcdEG65_hmuhwbW X-Proofpoint-GUID: QTqKkQHl31b5ZYbMagcdEG65_hmuhwbW X-Proofpoint-Spam-Reason: safe Message-ID-Hash: CTK3L3UK3ZW5GV7QVSRWTEJDLS522UU6 X-Message-ID-Hash: CTK3L3UK3ZW5GV7QVSRWTEJDLS522UU6 X-MailFrom: prvs=7718def8b8=sbinding@opensource.cirrus.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add Quirks and driver properties for Dell models. Driver properties are required since these models do not have _DSD. Additionally, some laptops, including some of these, have an issue with their BIOS which causes the SPI speed to be set too slow. To ensure a decent performance for laptops with this slow speed, disable firmware loading. Running without firmware results in lower volume. Stefan Binding (3): ALSA: hda: cs35l41: Support additional Dell models without _DSD ALSA: hda: cs35l41: Prevent firmware load if SPI speed too low ALSA: hda/realtek: Add quirks for Dell models sound/pci/hda/cs35l41_hda.c | 25 ++++++++-- sound/pci/hda/cs35l41_hda.h | 12 ++++- sound/pci/hda/cs35l41_hda_i2c.c | 2 +- sound/pci/hda/cs35l41_hda_property.c | 74 +++++++++++++++------------- sound/pci/hda/cs35l41_hda_spi.c | 2 +- sound/pci/hda/patch_realtek.c | 13 +++++ 6 files changed, 87 insertions(+), 41 deletions(-)