From patchwork Sun Oct 20 23:59:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 837566 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 90899D3C935 for ; Mon, 21 Oct 2024 00:01:12 +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 8D0F2E85; Mon, 21 Oct 2024 02:01:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8D0F2E85 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1729468870; bh=n7fERorHze2JmC+6AyjZBH0qej2nC8phi50bjVYRW4E=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=QWvgiMYwy6DICcfd6WW6G32eOe55GPZblll+pQcIpPAECPOGWPaFvAwYCRuillDnB 8rXedGtMSjvxNB+ceqnvUbAwF4XPKzdWlm8J590T2viOxfawAVQDXzg9FlT+v/KaOV DfA+HLabybN8hGhJ0VPoLTtXMva33ZDaR9bvRIag= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3F830F80699; Mon, 21 Oct 2024 01:59:29 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5B951F806A2; Mon, 21 Oct 2024 01:59:29 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 42057F80588; Mon, 21 Oct 2024 01:59:20 +0200 (CEST) Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c406::1]) (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 1D299F805A1 for ; Mon, 21 Oct 2024 01:59:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1D299F805A1 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=juHFNwzg ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MZv3n+1yaBCWYLfY6MEdGRPWclwKBriXGDhwL/H0g07ab/U1akCHYciqOGa04VwSqA/vIhiAdB7x3N9D2CaLeGWRdPW0OvNlvlcDEcMUWyuKomByPG/lGDVoqcnCKsWygrAjX4Y/MHV50KkKog20eSKB8YcnvdFdvNdjOCER1O1p1SzIgMq2QT8/dpv+/wo4sWZ7nEMnbt+To8NJy00oqHg+yhj20uQl0HcIP2P+1B356wtzUEawcb39Xi37EZn2r86cYYBOhurX83hcsXf0eE4LFFQiMMPRHOkelY4qdkBljxOavmTOVm7P8SdfHYDWWNMiHBYSt1m2IcAvG80hgg== 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=VQbtWGqjWwJrlbSHrPG6x4hwYFF+NyLgnSgjClQ7fyo=; b=guBSSIy9QrhlD391jhwdpOMZFDfZ7r1Mx+pyJBlZSPCfFc8c0/uokdzJPeLmL3JWulFwlyrCaRm+MTM4EIOQSJLh/s2E9Hghnro9uudt/mmOfXcYyZaF7VLDN9jCXJKxTtjDNyDM37qXhcMz2MPDSdBTxUg9F3Qrd02H7NubYmz+8ljKf9mgQOOwy9f9xqF9ythRPNrRPAwJ3wybkXTbDRHS/nq/uXBtbQTXTnDxAg2G1dWuA9iJytK/NL1wAX908Phleo12GXoGpQuyuBiztoSXsWjRPR/093hm8nVyn9UMxtt8o/ko1yarm0n2GltHC5X9KmQoTtyV7MjyGnlcCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VQbtWGqjWwJrlbSHrPG6x4hwYFF+NyLgnSgjClQ7fyo=; b=juHFNwzgv6zWf9FMDn823ubNwVWetjsR6F9rdxTUK62mWdwBVnknHR8ukpnDWxLgpJ8kPC6BMliqfi+W/FIDCCkiXWObPpTa+WsqxEgI1xrDUyDf5mzDoC3cMcqvmUFTkCRJFcPuRgy9yRmqP791NfbPPQKMtGZ4okHmANMWaUk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYRPR01MB12916.jpnprd01.prod.outlook.com (2603:1096:405:1b4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Sun, 20 Oct 2024 23:59:15 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8069.027; Sun, 20 Oct 2024 23:59:15 +0000 Message-ID: <87bjze9vhp.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 07/13] ASoC: soc-core: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87ldyi9vje.wl-kuninori.morimoto.gx@renesas.com> References: <87ldyi9vje.wl-kuninori.morimoto.gx@renesas.com> Date: Sun, 20 Oct 2024 23:59:14 +0000 X-ClientProxiedBy: TYAPR01CA0167.jpnprd01.prod.outlook.com (2603:1096:404:7e::35) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYRPR01MB12916:EE_ X-MS-Office365-Filtering-Correlation-Id: 75f9ba41-efaf-4382-49d5-08dcf163339a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: 21N2EMTJWDHTmJQQXW7o+cYNLOMM0p5ZFSYs7hpho3L047dPqRdVWKIMc40LShAkKyAr1GDEdWr8jV2ggS1kMoYAZto8OcQnquN5CJ/XBTcryBRWl7QIR1Fi5YZVugVPeUAYE8R4Gdi3MCoFfAfPMWXrjJgk0MlCRq2dBCmcw0hwM5LB3K/v6ovI7Qw44DQZSuGneZd6T9lzgHKD7nnVn2PkXXd6ctOhoiBlzOPfAW6Nq02gi3EoRq1zmj89TE94I6qmJeemN/C3qSwfQL7mwDSezBNiCtHtJqOkQTSzWRCm6XqaEFDmuC1VHMXFcMh5L9Fzg3SaQXjIysJnY1GvKHZoFt3IEdjSnp8gcuk0xukuJe89iMokwVcwB7GsJV1ycMfFa501SZLujY7LcZz5uTVGx4vcKaz9DyTkkljiB2dU9Dw8OdJioJooPJp/4CCaRpXqE2BeBTv3B/zfEEToevDheCoFgJG3gUVzp8nhxZpNjqeAEaGCimYGUBDxbbRYdy3a06qX/30ndecF/88TsT5XF45k5OU+FJr1xJGYrHXNg07yDm4BO7A7H1+ndVd8Hv50nIyskUEQlKh5aPxNAmn9fZBwzsWpiS+8VP4EDjaH5q5HxyWaFuZ5BS8452w6OV2ehGU3Lhu22x2Ophu3o1XRljhIyQAmG+d/NI4D2woBA0FKVhnk6B8juCA9FXKvrBbCqAHiydOCaWAfnHco46jpwuLmMN0XdTo4tmD2ULA+Ps0ZTR1E3e2nxA+5S1bSYDLyaTNfZZNUZ1AB8AXAzr92ttGQ4As7Qx6z6MgEGYd4jCX82QxvYNRvLtyluX8/RWSdEQrC/MfLnvSiqImsdKcIxxfDYpAev14J6aDZPjS14ePpfQhRQrxT5CqUytAPEOZYLQpUvHXhpVojcHT9E4/Neorgi6EdNrP/u+1Iq6cwSoeSMX8/84hYTbUyigi007eDfWHVZgMCGXIg/InpAhClgR0FHpsew+b5ruueRLKZePGIowJQ8KQEsLmvLOhgI+ADfyUFsCI4kEp9PE3q9yk10tS6xm+0SiQFRr62y2yuRgClZuZF7kKqnr5cEBEhHIBRm2qVr0XxbcX8LGpsijWIf46+6Gtjdv7fNaHzvqCRX0AZ1s3q1pe1EwMcRFFbHbFA4pgEAjqMqVqqXUxDlZs3yd6ohar1mGSuzuid55d3nyslffrACPzTVj2grFEIrU6arwcS6srypYCa3Q/hiUgxN70Ps+nkuAu79uGt0qdZTUE8524tCkHGlqcsTOkokvG1ID6leKbfdNoAoV34989vPw8LOdTLIBTYUTZhEKkI8fpbQAssgVUHpWjw6ElRn6JB05GOVtZxibKv13U7QO+3oxsWvr/FjFMwwHLgh7Q= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Gpt3xP2hJZq/SfN5acDnG+ovH0an37BkOcHg/Iuv2zUw7wQatyRIN3Tf27qQJSTp1JzvIQKvO5+vlYmHZkZyBCJz8E1p6MvJe5x0tx5ELh0yKPJXdQ1nmd7bwPirwNi7tra2vbKubEcN+ehscz5uWiEs7KQBJUfOsg/kgQ7mJr276KBbt3BUYn/rj7PwPDI+8OzQqON8SEiyjhX70Cte5i3hmkcYjLyCf0CVRnWrpmTpHH3FAgXwnKne4xt1DDV7kEDXlbQ0jUXCfM5OvryH1hzVg3tFS7g389nYjniknZRWpdAYbRLFhtBpUXrwunUzxluuOv09j22YPLk05PhVZCD7DB3DQwECsvsgnKEaCBdoBSIjJIHKEP2md+YUSM6m4xFhwOlchwglx5lkI56oB0xb0zFQGM6uy00Mxb8/g8T//lP21TfOc9MfJwda+MHS144F1+++9jZ5WD9h/btmDjz2N3cxWTcGm4X+sA2b7be2avZzGAKJnHGCcKdVRW0yKF3HtTarV4ZH/kdxVzWh6nvPpKx9qZCgkssQ4KI48R75OUg0gjCax41VH56lOp/gXQ+u0s8Ddz8v+Jnfubqike93y+XkY4yhyPcz9d5qRZx0U4CU8+OjICuitWV+f2RgkEgoYSnQVoqBGwKflfdzSDHnCfjGOM3oME/sNFs0U3s4yH3BG1Zc4tVEOh9tE2/Zk21KPLSl6w1EHhjyA3VHPrRzOrkYf+d1EnXZqjeoy/bvEPEaMD/4/+vaxaZofohHLMAvetlYSuVbztQY5P9JlqZigEg7IxDWpLMI0V0s3y7GpYKZPAMrg1UMYIzd+8YsVWtDRC5Uvwim6A4jF+PVDHecavClOQC2xGm6oyUL43cgVKNVzbcHyJ9gOFwAMM84OOFcok6QXyoyejTfPYB0/qWWHkgE3ggoNjee6zbyPAyrHQu1IOS/X5xGfBVWwPQ5VGERV3m47eXt/EazZa4goKPXL9uZm9osweUA1viBPstZV+99vLBzzExMIu3rWe2AGQWKU48ahyNFhJq3kJfAMxZeUNpZFOeVKuGAwtvY+tK/wMKRWbmPjOXEIQZaTgYZWmfr3Q5bByh3/4rhFbnH3SoQivbofF+DYF66t3xbVcV4mQ7NmAFoNycF/T8+QPYmvm5HMKGFVeea9W6I1i0TJuQkNwIZQ/u8DBOoU8BAYDaTBa/si7/PRz7t7CCn2HBqqaC55w0FdkDhufjP03BfO8joft9QvGZdbu7bqAMrlDEoXMHSkaQbFxgu4xen2cyskCZk0f8D5iL0vWid13A+J3CKVAYsMsr9JdLqbpD11D6LogUM1LINfEE1kzH7h8XnN4/zRSR74bDdjtvQrvTZ5scgXAozjnlsJ5mj+P90eHypELpaMaG/zq0pgBWdcnMyiAkLN6VRjniEx5npTKUwpiST1aB/U+BNGjr5LpbcEQdYUB3g7DfmTlo/OrVtdWfLfXnWsdbwKE9kukApQK1N+EG9l2tocEurKquVDXht8wWNEjolfazhu+pyLCQxoT8wcQSlLgO+vKAKHOhre3ve2ppgF+DAwNhTwNmWeAXeExJvkeR2hL4lTKP9JoRl/NcyPwq0qQirNeSWIC/zA6C/SVHDv9qLM+6QFP3udUJ3W+g= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75f9ba41-efaf-4382-49d5-08dcf163339a X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2024 23:59:15.0727 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JqOMOElzXLgrBNYm/XyuhO7mY1qVhsIZqoKX6Bkg6ZyzLkNDMU0yGvXFBG5rTxnW+3sYcEQZQTESUCLJeBLL3NFUJSkpEW2pLzedY3pStzODVztJEhPzk8XAY/HMvj4J X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRPR01MB12916 Message-ID-Hash: C3HFLEXU3ODYFAVRYIL2S7PBWECMKHZB X-Message-ID-Hash: C3HFLEXU3ODYFAVRYIL2S7PBWECMKHZB X-MailFrom: kuninori.morimoto.gx@renesas.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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-core.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 20248a29d1674..f04b671ce33ea 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1999,25 +1999,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card) dai_link->platforms->name = component->name; /* convert non BE into BE */ - if (!dai_link->no_pcm) { - dai_link->no_pcm = 1; - - if (dai_link->dpcm_playback) - dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_playback=1\n", - dai_link->name); - if (dai_link->dpcm_capture) - dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_capture=1\n", - dai_link->name); - - /* convert normal link into DPCM one */ - if (!(dai_link->dpcm_playback || - dai_link->dpcm_capture)) { - dai_link->dpcm_playback = !dai_link->capture_only; - dai_link->dpcm_capture = !dai_link->playback_only; - } - } + dai_link->no_pcm = 1; /* * override any BE fixups