From patchwork Fri Mar 28 08:36:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Strozek X-Patchwork-Id: 876741 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 924C5C36010 for ; Fri, 28 Mar 2025 08:37:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 67CB8601DB; Fri, 28 Mar 2025 09:37:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 67CB8601DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1743151039; bh=0+r3ZCC2JEqI9yA6V3BON/X2i9DVTW29rXnjeTr+Bmw=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=lVqcXLtesFQjAHCMsj6YEWAaYX8onScnmHQHWhqlNhvQ5nEXs2AZ+Rtf+tkkbkAwb 3FvXmZtZUKv59DW1peQBEpJ9A5q1daVsf5AD2BkME+7O4EyTiZs23r0VDFKp4Iq0Au 5LXSO61Wlk1Jm7IwWcLFxhJQXFb5GXj/WszTXtdo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 48270F805BE; Fri, 28 Mar 2025 09:36:43 +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 2FD72F805BA; Fri, 28 Mar 2025 09:36:43 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E3F49F80548; Fri, 28 Mar 2025 09:36:39 +0100 (CET) Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (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 9D6EEF80095 for ; Fri, 28 Mar 2025 09:36:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9D6EEF80095 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=Ob9rK+8m; dkim=pass (1024-bit key, unprotected) header.d=cirrus4.onmicrosoft.com header.i=@cirrus4.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-cirrus4-onmicrosoft-com header.b=ZX5KcmEg Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52S81cxs001248; Fri, 28 Mar 2025 03:36:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PODMain02222019; bh=qcV5D5NLS0A5cBuE DXBpC0bz7AYMmUi4rZC/aTziqiE=; b=Ob9rK+8mk71sys4xBEGoL+xEgVR/5Lsg Xrv0WDnRBy83faQF8UDT5kWFK6rf05uofqre3vJrjNSkCOUcq+t1lwjLJ2FeDr8d J5tROmalwNdB1ggul4clhYjL0NBABhGWaaZA5fxvAzz3tQGdgmbxUj5BMkKOcuuf Uyi9avUWrIoUbFuooMydMi+ii5sdn/nctz1zXq8F5ULCnac0XgghkInNp1p6Yink vpknMX0ckmZqMvBokF6OTxhiydeADyj/54btKwy9UtpRik5R5U2M0YJkkQx/ABft gPsqNNjdRGZZskHiUDjDfb9Nmg0R8ZkuAu6yeHj7FGD6id5Uw2h/UQ== Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2172.outbound.protection.outlook.com [104.47.56.172]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 45ndnu0vkb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Mar 2025 03:36:34 -0500 (CDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ShUtqoGfnEJD3FSrQubaXTm8O+z4WsI2OGkSBS+t+jXAVQTjBI9+nf97wcbMd9O0ROy+O2K3hUdIyOtziB4zOlG1SEaePrLb9aup12VoJKPcYggfpkuFZODv1g5EffZ5VY9Ajf6Hpf7U5yySZqVa/DtDMlP/XRI6ucGQycKK9UIdV6Q6jmtfyiK4SscuerQfrSR/rDVfvi4/rlXJ2wPmsRe7xA9wzu30CVs1tdOploBiodkxYgZPg6pCgmj/0PvYwMPQ54mmvF/gWPk/sTBUANdJwCw/zm1TnX/VnfLaprSRdP/fHBFektxUdGR/q5Ay0fJR40CpbW4hGIjvS9Pcvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qcV5D5NLS0A5cBuEDXBpC0bz7AYMmUi4rZC/aTziqiE=; b=J2u0aczCm+P+2j3Aqp5Ri/90KDlJvRvB2LFqJG1vztX9g4XMGjr0fZhoNGknViZ5W+085tk9MSMPRxV7sSsSlU4x8OpxrC5UZf5VeMATZ9MVARU8mnqi9Dh02L/ECfKH2mTFv1YkiCibmDUh7trykti8ZunAA4R5xpb9DPgJsKIN/C+C1QR9EfpiK0bPrHGH3yOe2uiSPB0L5Q6XECMUiBxNr1v2Sz/CoZR+dVjC8v7MF70F99tKIkWWCMEgCTFpTqOu393xLt+H1EcFqMUxSUK5X8jT29Uts1eODgmztFzlkLw8m+H5ePJgQ4hV1wPShK8qbM0in3SahdzEzkvtLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 84.19.233.75) smtp.rcpttodomain=alsa-project.org smtp.mailfrom=cirrus.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=opensource.cirrus.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus4.onmicrosoft.com; s=selector2-cirrus4-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qcV5D5NLS0A5cBuEDXBpC0bz7AYMmUi4rZC/aTziqiE=; b=ZX5KcmEgpU1igEKypDa5oAbPr1XcsbX6j/g7ryG1AyYnEqta3OLXnp1Gnc8FQR/VstQ+FiJi2/sSAe9/L2cB3h9MAgZfSolHGR5pK6jzgwe3Vycy53TcpYZ0RWg0lwMzf8LanJrF16La0ZwYpgaIgamo+MiGtrYZyEvAiB28PCQ= Received: from BL1PR13CA0434.namprd13.prod.outlook.com (2603:10b6:208:2c3::19) by SJ1PR19MB6137.namprd19.prod.outlook.com (2603:10b6:a03:48c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Fri, 28 Mar 2025 08:36:29 +0000 Received: from BL6PEPF0001AB51.namprd04.prod.outlook.com (2603:10b6:208:2c3:cafe::4c) by BL1PR13CA0434.outlook.office365.com (2603:10b6:208:2c3::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8606.14 via Frontend Transport; Fri, 28 Mar 2025 08:36:29 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 84.19.233.75) smtp.mailfrom=cirrus.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=opensource.cirrus.com; Received-SPF: Fail (protection.outlook.com: domain of cirrus.com does not designate 84.19.233.75 as permitted sender) receiver=protection.outlook.com; client-ip=84.19.233.75; helo=edirelay1.ad.cirrus.com; Received: from edirelay1.ad.cirrus.com (84.19.233.75) by BL6PEPF0001AB51.mail.protection.outlook.com (10.167.242.75) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8534.20 via Frontend Transport; Fri, 28 Mar 2025 08:36:27 +0000 Received: from ediswmail9.ad.cirrus.com (ediswmail9.ad.cirrus.com [198.61.86.93]) by edirelay1.ad.cirrus.com (Postfix) with ESMTPS id 89B7B406541; Fri, 28 Mar 2025 08:36:26 +0000 (UTC) Received: from ediswws03.ad.cirrus.com (ediswws03.ad.cirrus.com [198.90.208.11]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 6D1DE820248; Fri, 28 Mar 2025 08:36:26 +0000 (UTC) From: Maciej Strozek To: perex@perex.cz Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, Maciej Strozek Subject: [PATCH alsa-ucm-conf 1/2] sof-soundwire: cs42l43: Drop headset mic from mic mute LED Date: Fri, 28 Mar 2025 08:36:18 +0000 Message-Id: <20250328083619.1262150-1-mstrozek@opensource.cirrus.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB51:EE_|SJ1PR19MB6137:EE_ X-MS-Office365-Filtering-Correlation-Id: 503d3c21-3db6-431b-ae40-08dd6dd3a1fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|61400799027|82310400026|36860700013|13003099007; X-Microsoft-Antispam-Message-Info: NyMq2zIUK7rYVz0zxsOKkfC2aQljul/7eWyyccYELbN6JPkHRQR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TBmgke/EQj9PApUvB8sNVoMXXR05Y6Gxi4OF3MdDC0Ml3YTvYHGjny/04G3pOJ6uo5FuzOU03jpMM/N3zyLmtKH4JIrxjYNhpJ/rK+JugnEEnCGv56q+6WCUjRSnkM5Sz9oLMG4SvdejWKNGxT6stFiamv2kawKGxkwUtOuNIdhBjRzTCUxJQV89Kk0YrXZuBXqs+DiRQwmuYkRSK7IYWNVNH4GBO1YM8rOaEL72p6wMlrxpOff/5TvbAA2D5+Jv39j1CEht81bGCalhQ7gfjuc9nf/uCELwrKHj+tmEtGRzwplYjihbAievum5X5fwSViNWiurEqgzMAPUF3H64FkeLxZavp0UUWKaW7AHVuMfS20VfoMk0DRt5YWBUUkqHNuxA= X-Forefront-Antispam-Report: CIP:84.19.233.75; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:edirelay1.ad.cirrus.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(61400799027)(82310400026)(36860700013)(13003099007); DIR:OUT; SFP:1102; X-OriginatorOrg: opensource.cirrus.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2025 08:36:27.7665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 503d3c21-3db6-431b-ae40-08dd6dd3a1fc X-MS-Exchange-CrossTenant-Id: bec09025-e5bc-40d1-a355-8e955c307de8 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bec09025-e5bc-40d1-a355-8e955c307de8; Ip=[84.19.233.75]; Helo=[edirelay1.ad.cirrus.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB51.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR19MB6137 X-Authority-Analysis: v=2.4 cv=GoJC+l1C c=1 sm=1 tr=0 ts=67e65f92 cx=c_pps a=kqCqMoaEgQjRYYKBKtAp1Q==:117 a=h1hSm8JtM9GN1ddwPAif2w==:17 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=Vs1iUdzkB0EA:10 a=s63m1ICgrNkA:10 a=RWc_ulEos4gA:10 a=NEAV23lmAAAA:8 a=w1d2syhTAAAA:8 a=v8IP7J7gjG_votRiVfsA:9 a=BGLuxUZjE2igh1l4FkT-:22 X-Proofpoint-GUID: piQfwxlSk65sxMEBtEPpugS4rhqCR6oR X-Proofpoint-ORIG-GUID: piQfwxlSk65sxMEBtEPpugS4rhqCR6oR X-Proofpoint-Spam-Reason: safe Message-ID-Hash: HQE5OKGMEQFK2N4KBYLVHASW2OBAIHNJ X-Message-ID-Hash: HQE5OKGMEQFK2N4KBYLVHASW2OBAIHNJ X-MailFrom: prvs=3182ccdba2=maciej.strozek@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: As per conversation in [1], let headsets be dropped from LED bindings. Also remove turning off the mics on device disable since they are now not needed. [1]: https://github.com/alsa-project/alsa-ucm-conf/pull/512 Signed-off-by: Maciej Strozek --- ucm2/codecs/cs42l43/init.conf | 6 ------ ucm2/sof-soundwire/cs42l43-dmic.conf | 2 -- ucm2/sof-soundwire/cs42l43.conf | 1 - 3 files changed, 9 deletions(-) -- 2.39.5 diff --git a/ucm2/codecs/cs42l43/init.conf b/ucm2/codecs/cs42l43/init.conf index 0e987c21..c0fa863c 100644 --- a/ucm2/codecs/cs42l43/init.conf +++ b/ucm2/codecs/cs42l43/init.conf @@ -10,9 +10,3 @@ LibraryConfig.remap.Config { } } } - -BootSequence [ - cset "name='cs42l43 Decimator 1 Switch' 0" -] - -Macro [{ SetLED { LED="mic" Action="attach" CtlId="cs42l43 Decimator 1 Switch" } }] diff --git a/ucm2/sof-soundwire/cs42l43-dmic.conf b/ucm2/sof-soundwire/cs42l43-dmic.conf index 70ce40ff..b68a70d1 100644 --- a/ucm2/sof-soundwire/cs42l43-dmic.conf +++ b/ucm2/sof-soundwire/cs42l43-dmic.conf @@ -13,8 +13,6 @@ SectionDevice."Mic" { ] DisableSequence [ - cset "name='cs42l43 Decimator 3 Switch' 0" - cset "name='cs42l43 Decimator 4 Switch' 0" cset "name='cs42l43 DP1TX1 Input' 'None'" cset "name='cs42l43 DP1TX2 Input' 'None'" ] diff --git a/ucm2/sof-soundwire/cs42l43.conf b/ucm2/sof-soundwire/cs42l43.conf index 4b4e1187..51832126 100644 --- a/ucm2/sof-soundwire/cs42l43.conf +++ b/ucm2/sof-soundwire/cs42l43.conf @@ -33,7 +33,6 @@ SectionDevice."Headset" { ] DisableSequence [ - cset "name='cs42l43 Decimator 1 Switch' 0" cset "name='cs42l43 DP2TX1 Input' 'None'" cset "name='cs42l43 DP2TX2 Input' 'None'" ] From patchwork Fri Mar 28 08:36:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Strozek X-Patchwork-Id: 876945 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 B4227C36013 for ; Fri, 28 Mar 2025 08:37:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 1E2BE601D8; Fri, 28 Mar 2025 09:37:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1E2BE601D8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1743151059; bh=OFUrZLA8FmY3Q51amSKnDuBWBjGzbEL6Wg6MY2nX9W8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=iqL9phkspQ5t5s4jkrEd88R54zgpZZiekJ7OQOTcaQdFJ1tWCd1EyDKrqH9dotdBv nZeWN5wyvGKp7jfDv99eDpCR/1jCTQXO2aZN3416r49c+IY312fwG3YHg2L5AzPhWY Ar1YUpZ/+tIxsrqsx6kMBj3m9FoVnl2jQM5YNn58= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5194BF805E4; Fri, 28 Mar 2025 09:37:00 +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 20EA5F805E4; Fri, 28 Mar 2025 09:37:00 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2007DF80571; Fri, 28 Mar 2025 09:36:57 +0100 (CET) Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (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 4BC0AF800E5 for ; Fri, 28 Mar 2025 09:36:55 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4BC0AF800E5 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=Yfk/aM+I; dkim=pass (1024-bit key, unprotected) header.d=cirrus4.onmicrosoft.com header.i=@cirrus4.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-cirrus4-onmicrosoft-com header.b=i3vxZydh Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52S81dsG001257; Fri, 28 Mar 2025 03:36:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=rLb6htfyZKV1mR+D7n9iYBPPI8VrBFZIHykwlgjwY/M=; b= Yfk/aM+IWlf3wDDHZiYTcA+DXELIg3T1VQvGAYRUDhafTieZrpSs7fK+Islq/rk7 07Fely3RI20xZzrFLUVb6VIwXjWmCpHIGGfY0O13XR8PjPHh/XsymCDrtT1X97Wg v6IYjpOPcThBSGCUCLMB6U4wWFZUWgTFtPIwDn6yTFJ4FE/Dl+ro09ZsEUmHwPlU QN/TaqgWBymZYyfAkDfDe7MZoYX6gaeN61u+6VDqvEofZGRL43zRhczCV8nhSJEB 7Zn7xiQymkIhO+GXDm61x0YHJr6NXAMMJep1in7vxbQHTyg86Ra5ghoYG3BnmCSZ r7CLztPwYM7FCmzc7r5wTg== Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 45ndnu0vkj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Mar 2025 03:36:53 -0500 (CDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wMn21wHXgMni0DUZ1c4ACMtWfJFMqy3meBAXKf+N2yn31/z4yzMKFxdoe3vpicjBSFaDrTmQIyXLafCKM2V2icWdez8Ql5hDCMuDrwaVC2e0qCFGjkl6BDAxNyqXMx6BCQrnGXhiSxWJzy2dgXhdH6+cEMDCLDAakZwb+s0c8Q55EtAJMQLMweevlzeZJMKWtAGADrSJ9txwPbUirGwzgv/DLH0n0uXcXKrY38J2IjNibOnZqp4QhORo6yCfNVJXHsaJ8tkRY37skJR+CW1WkILTEhA1PTC4rs/JmlDE++Nba1UHukPuaaNnLvbvlPN/bzSJGbyzsIE9y5+yfVQN9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rLb6htfyZKV1mR+D7n9iYBPPI8VrBFZIHykwlgjwY/M=; b=VqPVg/xifZcoE6ke3ysqwOoWlkjUwgRYpDIUtuiD2e9Np9iV+fUTGM3FVyKCIdm/T+RX2ZImPvKgXYRt/0rR2aXZAFYi9xsG14mTo4EI0eV1M4giGmZnh29ZUz61uGIWkrC83/555469Rq+MK9fVHxCYp8FstQtCuQePFKvzn0QjofEZmN/d7450X/nOojT5HIkVi96cw5a0m4zeXnmMgAf3cQcaDQqR9UE/GoU7XNwaWLlh8PJTVOUnLlybgJKnAE1OhCFclYDWlew0bS19+8gcyGS5Fr2sU8uzlSO5FC6CPZuYwVF0xIOLKJWtLEVDFPLJ4gmLvN7+uug6n/1ipw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 84.19.233.75) smtp.rcpttodomain=alsa-project.org smtp.mailfrom=cirrus.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=opensource.cirrus.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus4.onmicrosoft.com; s=selector2-cirrus4-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rLb6htfyZKV1mR+D7n9iYBPPI8VrBFZIHykwlgjwY/M=; b=i3vxZydhYw8TFf9vv/X0E5bQMGLIiHKbghueis5ld4wvCmvjhKu0dgtPCxeZN/kIZ3U2i4sY5ghKbcZR5vLBMFRqTdpgpTlA0M+JGGU3EMq9HrXn5/aKdNH7KiER8AlHUM9Hk12n/d4hEzf59/gEcox7azHugs3t2WMBU82wHZI= Received: from SJ0PR03CA0194.namprd03.prod.outlook.com (2603:10b6:a03:2ef::19) by BN5PR19MB8967.namprd19.prod.outlook.com (2603:10b6:408:2aa::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Fri, 28 Mar 2025 08:36:48 +0000 Received: from SJ1PEPF000026CA.namprd04.prod.outlook.com (2603:10b6:a03:2ef:cafe::50) by SJ0PR03CA0194.outlook.office365.com (2603:10b6:a03:2ef::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8534.43 via Frontend Transport; Fri, 28 Mar 2025 08:36:48 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 84.19.233.75) smtp.mailfrom=cirrus.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=opensource.cirrus.com; Received-SPF: Fail (protection.outlook.com: domain of cirrus.com does not designate 84.19.233.75 as permitted sender) receiver=protection.outlook.com; client-ip=84.19.233.75; helo=edirelay1.ad.cirrus.com; Received: from edirelay1.ad.cirrus.com (84.19.233.75) by SJ1PEPF000026CA.mail.protection.outlook.com (10.167.244.107) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8534.20 via Frontend Transport; Fri, 28 Mar 2025 08:36:47 +0000 Received: from ediswmail9.ad.cirrus.com (ediswmail9.ad.cirrus.com [198.61.86.93]) by edirelay1.ad.cirrus.com (Postfix) with ESMTPS id 56208406541; Fri, 28 Mar 2025 08:36:45 +0000 (UTC) Received: from ediswws03.ad.cirrus.com (ediswws03.ad.cirrus.com [198.90.208.11]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 44D2C820248; Fri, 28 Mar 2025 08:36:45 +0000 (UTC) From: Maciej Strozek To: perex@perex.cz Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, Maciej Strozek Subject: [PATCH alsa-ucm-conf 2/2] sof-soundwire: cs42l43: Control hardware volume to avoid clipping Date: Fri, 28 Mar 2025 08:36:19 +0000 Message-Id: <20250328083619.1262150-2-mstrozek@opensource.cirrus.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250328083619.1262150-1-mstrozek@opensource.cirrus.com> References: <20250328083619.1262150-1-mstrozek@opensource.cirrus.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000026CA:EE_|BN5PR19MB8967:EE_ X-MS-Office365-Filtering-Correlation-Id: 54c87aef-c171-45be-020c-08dd6dd3ad8c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|61400799027|376014|36860700013; X-Microsoft-Antispam-Message-Info: e0AkRil/v2CogfraqM2QX25gm0k2R3dmwU0CHc2/a+js64CXXsW4L2PPsF63GLo+Z/UKvgzAI4uphLwbutjnYOy8htN8iVhU8JCicHvEmf19L1d2JYE5IyyVslyuvkE/c/IQ7137rQN2e42QIbkxfNsYVV97+2OgM9a11WqG2YloEbJYyzBKm7m6w0glRjYumR1ACrUac6T6phTTmfyNDaWYQiHDwDVCJT4IKX9E0CyoJ4IRNQ6biHzhREeToDc2fcO2TNsjBQVUd03NV3aDvBxo5ySjGYanLsABJiEJ+/OoouWZ627qvfbWMythl5T7aSyhwzzbkPjTq3owGrLr4MnLU+HHQU+yxyk1BI4H/u703+mm6v6yoswt7+swFuxHI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vicytZikBDh5k2LSJlt67KE3WhJSm/tJVTDxMPPa4oneHxCqE12bXMD4vyTB05MM= X-Forefront-Antispam-Report: CIP:84.19.233.75; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:edirelay1.ad.cirrus.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(61400799027)(376014)(36860700013); DIR:OUT; SFP:1102; X-OriginatorOrg: opensource.cirrus.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2025 08:36:47.0357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54c87aef-c171-45be-020c-08dd6dd3ad8c X-MS-Exchange-CrossTenant-Id: bec09025-e5bc-40d1-a355-8e955c307de8 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bec09025-e5bc-40d1-a355-8e955c307de8; Ip=[84.19.233.75]; Helo=[edirelay1.ad.cirrus.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000026CA.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN5PR19MB8967 X-Authority-Analysis: v=2.4 cv=GoJC+l1C c=1 sm=1 tr=0 ts=67e65fa5 cx=c_pps a=7lEIVCGJCL/qymYIH7Lzhw==:117 a=h1hSm8JtM9GN1ddwPAif2w==:17 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=Vs1iUdzkB0EA:10 a=s63m1ICgrNkA:10 a=RWc_ulEos4gA:10 a=w1d2syhTAAAA:8 a=DyZ_2FFYdYKSEs-sC6wA:9 a=BGLuxUZjE2igh1l4FkT-:22 X-Proofpoint-GUID: mthmq0sQCThy8yMEUlDCtzNbMW_eHu6g X-Proofpoint-ORIG-GUID: mthmq0sQCThy8yMEUlDCtzNbMW_eHu6g X-Proofpoint-Spam-Reason: safe Message-ID-Hash: ZQSMGBQR4HVROAFN2XU3AELCY3LMVKYA X-Message-ID-Hash: ZQSMGBQR4HVROAFN2XU3AELCY3LMVKYA X-MailFrom: prvs=3182ccdba2=maciej.strozek@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: Hardware volume control in cs42l43 can go up to +31.5dB which can cause audio degradation. For best results, keep the hardware volume set to 0dB and let software volume control the output. Signed-off-by: Maciej Strozek --- ucm2/sof-soundwire/cs42l43-spk.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) -- 2.39.5 diff --git a/ucm2/sof-soundwire/cs42l43-spk.conf b/ucm2/sof-soundwire/cs42l43-spk.conf index 693c450b..b2b32e57 100644 --- a/ucm2/sof-soundwire/cs42l43-spk.conf +++ b/ucm2/sof-soundwire/cs42l43-spk.conf @@ -1,5 +1,14 @@ # Use case Configuration for sof-soundwire card +LibraryConfig.remap.Config { + ctl.default.map { + "name='cs42l43 Speaker Playback Switch'" { + "name='cs42l43 Speaker Digital Switch'".vindex.0 0 + "name='cs42l43 Speaker Digital Switch'".vindex.1 1 + } + } +} + SectionDevice."Speaker" { Comment "Speaker" @@ -8,6 +17,7 @@ SectionDevice."Speaker" { ] EnableSequence [ + cset "name='cs42l43 Speaker Digital Volume' 128" cset "name='cs42l43 Speaker L Input 1' 'DP6RX1'" cset "name='cs42l43 Speaker R Input 1' 'DP6RX2'" ] @@ -20,6 +30,7 @@ SectionDevice."Speaker" { Value { PlaybackPriority 100 PlaybackPCM "hw:${CardId},2" - PlaybackMixerElem "cs42l43 Speaker Digital" + PlaybackMixer "default:${CardId}" + PlaybackMixerElem "cs42l43 Speaker" } }