From patchwork Thu Apr 18 04:13:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 789900 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 DF17CC4345F for ; Thu, 18 Apr 2024 04:17:08 +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 15C3A86E; Thu, 18 Apr 2024 06:16:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 15C3A86E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1713413827; bh=gZqf9EppjTHPP4Ow84DWp/oDn9+B9H3x9KrdENjiYkk=; h=To:In-Reply-To:References:From:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=eGSC1C91oK8pMkH6RneVq4N/IYCTCKC1ycl5mhbADwnlr9OX5+rZGbCSFul6NLXQ5 7Wc6rL16HcdiyqiVRMeoRUWJ8imEVLHiPlXg+qqHCBddo0u6v+7RTNR8k0XGzSLh3D lkcsRhDrs6h3rvcPlfprRtWaXLYdnro1Kmnvw05Q= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CB8CFF806B6; Thu, 18 Apr 2024 06:15:06 +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 68975F806B4; Thu, 18 Apr 2024 06:15:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 093EDF80423; Thu, 18 Apr 2024 06:14:10 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::601]) (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 7F40DF8025A for ; Thu, 18 Apr 2024 06:13:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7F40DF8025A 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=BQFUmqLW ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VaJhYpuKvqucyIZbrekoVlhzUlDpXxW27ZkcXjplxkb3e8zHSCXhBE9xdSwmjd/T/4HnXbhc6nDnVvHXN1haXyxI/eFgHWhtNykxOtYIXmnl7usCjKBTvs+MzvR1r06wyP4RfsAQ51J7eeAaRi2nvulCtv0scqxt+tCjoVlhsr5/VVHj3tmS2aC6l9DOzaZf96OmmGc/WScFzDvld1tzkx56pdhRoDvk936AmhQWjogNmCREBsT705RmPhBFNi6CENOQW/rsaPG4g89ZKvgiuYraPYcLAE7IsjlGiiyZPx3Ohwwfm3XUS5WJU9xHab7oQ67lT3oF0ThF6b3G+sNwag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=uoEicjAS+10uz/hOXN9BxUnocEqrLZpA78+Om/TJ28s=; b=G4rvKgilYGnkiHGvIucf6P1cFAqOdxvtWNW+YqLv8A9/9+aFjOLtO/fR4+aqGrJU+bsTY2U+T8Ge9kRoMfj31g2etvwu5ItV+n9j7PcM7Fqxekm55r5yttZlU1rk3HAgF7y00OyxEo5yZni26dlrA5eY0cOjjx2ZV1jmUkvxPG9Hhf9UNI3Q9oSwu6OxmkuDHUuSTXDFDeDNkOdpbuMc9X366o65BYv0spIzM6nTm1A5gK0YpaYaV9jEVVVOYACI2qsnoGo9qjyWvGbuqzl2HN61H+WL/GdglYXGhpYK2helDpjUmt6/FdU7Uz+Ar5NUytL+H5Cp0ckckKkfZMeW1g== 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=uoEicjAS+10uz/hOXN9BxUnocEqrLZpA78+Om/TJ28s=; b=BQFUmqLWDdD5xf5lJeePjvHZMCd9KUYZNWpREaUJPlliePwjEfoypb3u/Wv9FjqoccMq2M5MMlwA9/XarUJRkktsPlnkSf9UlI7MGjT6KGYz+AhwaKx6cuy6dbmrRF0/x6iHDX5ZmXxdz8Y6vSLSlTmUPtEroQLoA+xnFmQkt6U= 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 OSAPR01MB7397.jpnprd01.prod.outlook.com (2603:1096:604:142::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Thu, 18 Apr 2024 04:13:52 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7472.037; Thu, 18 Apr 2024 04:13:52 +0000 Message-ID: <8734rj8fzz.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-2?q?=22Amadeusz_S=B3awi=F1ski=22?= , Alexandre Belloni , Alper Nebi Yasak , AngeloGioacchino Del Regno , Banajit Goswami , Bard Liao , Brent Lu , Cezary Rojewski , Charles Keepax , Claudiu Beznea , Cristian Ciocaltea , Daniel Baluta , Hans de Goede , Jaroslav Kysela , Jerome Brunet , Jiawei Wang , Jonathan Corbet , Kai Vehmanen , Kevin Hilman , Liam Girdwood , Mark Brown , Maso Huang , Matthias Brugger , Neil Armstrong , Nicolas Ferre , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Sascha Hauer , Shawn Guo , Shengjiu Wang , Srinivas Kandagatla , Sylwester Nawrocki , Takashi Iwai , Vinod Koul , Xiubo Li , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-doc@vger.kernel.org, linux-sound@vger.kernel.org In-Reply-To: <87h6fz8g3u.wl-kuninori.morimoto.gx@renesas.com> References: <87h6fz8g3u.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 10/23] ASoC: soc-core: Replace dpcm_playback/capture to playback/capture_assertion Date: Thu, 18 Apr 2024 04:13:52 +0000 X-ClientProxiedBy: TYCP286CA0108.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29c::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSAPR01MB7397:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a4f9140-7cdc-41ab-992f-08dc5f5df509 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XIs5A3tEtUygxGXd1n3gJP8rHLKmnHwl+7inFUZqCvkHwHd/klgFtei8O0ELUCK8uA+VbzBJK5RqeRBU4ubCrSXro0dzV4nVVXOLi4nhkjcZLPHp8CLbBnW1qeFyK22eHiNvNUBNUZL4hGtOdKNG5LMYB+gjt9C4gmKykBeamxx5ZAjGwGSvYG783RISu6udBNyuJBLZxrwG+0QdSUEuOvHqIrZ80rEcrdD3aWamoYnC3mpLgNBw1XU+1gcucjq4wHTl6cHzFMHjkCLCHG53NHb/R2qgROaO2mRW1D29knuro8RGfXmta1qW3Njn1NXihn5iuMOjLemzbf7UUOmw8zVKfGTJF/FFR9QCwQT2Kz+beBgoiwKluNXBBARkTXPv+otnNuTGHjqP0sCj/Bw2GpWG0kH/HHOwX5nVj7yrUhs97vqpc7iu9LeHo7YaTZowwcoTsrdGUSsNVdRo8QzpRil86x7C4An6E91iHLbrd77oj+sP4z+iO7uTsXCPbzb3kd3Lqg5ZItGbl1v8r/BRcJJf5JP9Xoz1Ke65s0FYVAY+FvIvIaHRHAUcbCd0LGCGGMVtY8lD1crSm71X07qrXtyqB100fow/TvkhtRG/xy3zjcQlFF9gheJfcu4iTbayiexmmxleGkcFS3gNxPFvxD9BdCeaaXacXzB8DjND8pP0DHpCLoXcvg26ny87FwXXAjVft2zhZY4LhbLNuufeob6t7RMsA0abeNcjIzUAPxg= 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:(13230031)(52116005)(7416005)(1800799015)(376005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yE+uQn0F4v0X0Q22MSO3eg5MeMkyA9WxU3UiRvyygl/CXVjcbwcr/oaTIvkndrz4D7Llwe4rY0Bm0kPcmvWzTmUPaL5AQgeAOmuGTlU09DKQnniNvL5grC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DM57QTzDTfeaP00/myTR2K2WuhZVGJ4lL4uFGsRpVnPHI0TWn8ZWFBYA0vm9deejPEqZxsK4MbH1lewiXtUfkTd36jtfeUWeoj9diwS8o6wuug/5ai0y0JcV31krUT7LyeOnKODLaRbs5GGOlxQE3v+YVycmH3bF47QmpfXyrpckLY+htArke/cveSKovbaFTOpgwj9B7HGxN/O1/ALhfx6OGFnyhCN5FJJ/H370C8k2lzQmGlKBUVNmNdr4oYyjZ+DkTN1iHu6Oudb3whJFNVYe/NZ3LoX3o+QDJYF3ZtalKWct2192taayu357YMhmwvjc+ZGbvdDwPNnR14fqvlqs7WkZ0iuEhepbFHzIhe2vQbWORdE3Qh5KzTLQwBlVBMNUUzAX3odG8INGZBXuq3hqI+afqHrp5cAPlK8lGdv7WWoCmIUf9T+daRqkQQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a4f9140-7cdc-41ab-992f-08dc5f5df509 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 04:13:52.8319 (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: 60a+B9/i9PsQ7JRYNDMSfH7Zgnvp5JzsO4EuKoCRNgSJCeqbzIE5eHl9E3OPz81kiOMC9mELbOHM4QfCoY8xBzP4GdKqNxaDH+tbyIsszjRdNzQBwdeDGwK0ly+lVc3F X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB7397 Message-ID-Hash: 7RPLISL35F2V43DW436RRXPUM3HEOBW4 X-Message-ID-Hash: 7RPLISL35F2V43DW436RRXPUM3HEOBW4 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: soc_get_playback_capture() is now handling DPCM and normal comprehensively for playback/capture stream in same code. This patch converts dpcm_xxx flag to xxx_assertion. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-core.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 3ab6626ad680..6667f34e875a 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2003,20 +2003,20 @@ static void soc_check_tplg_fes(struct snd_soc_card *card) if (!dai_link->no_pcm) { dai_link->no_pcm = 1; - if (dai_link->dpcm_playback) + if (dai_link->playback_assertion) dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_playback=1\n", + "invalid configuration, dailink %s has flags no_pcm=0 and playback_assertion=1\n", dai_link->name); - if (dai_link->dpcm_capture) + if (dai_link->capture_assertion) dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_capture=1\n", + "invalid configuration, dailink %s has flags no_pcm=0 and capture_assertion=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; + if (!(dai_link->playback_assertion || + dai_link->capture_assertion)) { + dai_link->playback_assertion = !dai_link->capture_only; + dai_link->capture_assertion = !dai_link->playback_only; } }