From patchwork Sun Oct 20 23:59:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 837565 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 8D3E2D3C935 for ; Mon, 21 Oct 2024 00:01:44 +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 B7D89852; Mon, 21 Oct 2024 02:01:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B7D89852 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1729468902; bh=jL5hztbRGI1Tm1tovWSX7TbyVHtxGpxZwsK/lZd5mBs=; 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=HrlRCtVPXUeYtmz9DqjbnAK5LJJzvV8wHxRlWJSMgUmt+j+BUBRgPbJ1ZyutDZd3O Y8LgxxUmiKCjS0804jKVgzW4Lc6MKxO9lZBMAeseGdMeT8v6eXPm1vr/R8sRRvfTT9 KcuG1lOV8EudaktvRIVeFswKsZaf8TwJvPXGQoJU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 13316F805F8; Mon, 21 Oct 2024 01:59:39 +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 16350F806B7; Mon, 21 Oct 2024 01:59:39 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E2D9DF8069E; Mon, 21 Oct 2024 01:59:32 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 490F6F806A8 for ; Mon, 21 Oct 2024 01:59:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 490F6F806A8 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=FGs5MwN5 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KbhhiGW2w0eMf01i0XcLfv+g1YSRXJT3fgcYqpEWXFZSjms6NhLs631tSKayJrqI5anjm+lgHPyefPD7Stv+2T+DzP7mrJcZSfFzsfsiFww05jEuLIVoNoTFBlfi8kGo0OvHK1ZsKmVgCQWcqJB5ss63hLhkK63G7klry/7xSUhIXPFJYF0mFgkUsRwNLWV/LuDkNTO2zu6hX4EjYeMPHSWY0ur5Nfpd9RJbV6dEtLfAqDua53lMoP6MzJnXG0fkYFj7kdWKylBnhFrYzdcjvyguIHJ8yJUO3U4jjc5O+M5yhWIYqJ4emZX2szkrxUO4LfNOLdGAs6bn1a5lTSrp/A== 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=q7YdZX1l6hpmIHvo28d4Vx8ad4WMxH5X72cmvyifWCA=; b=saqaBt781VgqObRN4bTAg5tA9LEHsqfbl+0SXDydyTsRdoXBzxoa4apAbKAEulqOAEtdgdGOHiUsaQXjOUPnqTqIerlfJLzUW0GmeuBsSxaqszDt6xrtBuaXuZRa9ZirywZINyPmaVfJWruUedaRttyDLMHf73bN7ORg4vtbsLJV9ZBx28KO9QZtJEhuei7mEb/O6Y+F0zHIpC5FxM6bRHKTmYZT8glzfZ0jg7wPmpjGDRJWTDT571DO/fOrqSoDDQXbRtCh6zCj9t5+bCTftbxAItCx3+FkyLUsl8PJ/JWf+BeZUN37GCqPA0Gp6a7JASyUxyRzHgkOfs/EPG3nOw== 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=q7YdZX1l6hpmIHvo28d4Vx8ad4WMxH5X72cmvyifWCA=; b=FGs5MwN5iNf0zmiYwgSMhLDVGNULzdbNr7DG0pP5a6VNoFcwbaYZ/Yk8zw23bq+EsArPutvtGkqz+iK5CkkKeNtAFUqbfEMmN+f/RNSEdT67hWAPY/lcu2l7lp4bLhM8OCKB9UeYDj1tJkh3Q1nyVu/CgR6Dy+vWqiO42a6EebM= 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:25 +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:25 +0000 Message-ID: <878qui9vhe.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 09/13] ASoC: soc-topology: 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:25 +0000 X-ClientProxiedBy: TYCP286CA0200.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:385::6) 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: 7f077b00-7f77-4d2a-801f-08dcf16339e4 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: zGTq4AyvLhpSX/HmWA3ZRaGR2ynCOw1dMrvrrnPeefaJjUm0IsMsX5GYMrYZUgrNXJ6yiZA8vf2IgRcY6zh83BCjEe430AWpCp+tub2tkIBOUavna2NsIKhAA3qFkYJKlSKJgtYD6FHcGQFJyOoP7s8Mae4glRWo/FysGthcPo2svLhnKR48MEZwRcpXzi5qSTUOiog1dF5rvM4wo+Tlk4ub1d1VtSsobOrEdU7A3/vPUYRxUhPyN0TMW006lcAgRVBFCi+f7p9h070WVdobEIcItmShrhDj69nry5WvE0aUIqDQrJAdVPRsgDTrMQmjX2yUAW5LHTpQIPuV4r7JLfdPet9OHc9RfKQPyc6BQuKD0GPo1cmuJChpaJvVTdG06ys/Djshxpi7fXpPcCSwL4CNcg1U1Jpjgqr88t6UMYJXv/kMyTqRxZERrblPXHUoxYytpV4uTtWGEUww+x188RE4liTdMtB2k3ObHNvl/zM7BRgafpheTkFBFwZfW1tNLKytBf+3UIptmsztkoOWNcJgFLIQb4JO8LSnbySL6zsGAtP8K72Ye5NP0JHWs4nKU3MRWmy0j4ZbQ8QBvVxgZem8jLQkDn62FkkmUctj3DCnOO1mOS3sQZMGmUB//UtDu6za6ej8eGmbxWoiJQ9khZQCGO6Rqh8sq4MizmluoBhdkh5VEw1ml+gRFMrXOxeF7j5WDECnjq0x+jLISeirT9Uq0QxL3rHzOd4Hde0iXfZ3LDf7MJrK7qw5YHGCaw8zHM5GAOU1OlxJgV54/BB1k/WwwGFcqXSR2SEYc/a9bccCkBrK2a66fmv7mUDD6HgFhPga3qGlgDpDDtKMuEqBHMixUtijriw25TJF4scx//GCiV/Y7evaOP1FkNq9eoEN1RL63Ln7pPN8+MD9mbPOGscxkA3Wrsh7GV7l+lE222V/Yb6xapdqXfso94u7zlRprYATOz50CrexKe/xe7VAFYuG01Bq2jmkPbWqnPX8V1LF6j3jZ0lTdVmi5fgxBcWr9ojMmxQ2kbka78ikrkPxFEbUofNCSb4CpODm3Vvwl9LCJA270V3zNFq8A/eL8H1v9ivG6a2Y/EpudshWzinfNm77+Hi2hb6RcaN/VfQfmslzAtJpotRsppNPZXp+d075t0YQsALJslDdYVJpiUnbe+PTT2JZTQt03GNxESFdrTzmpjhh0TmnzLVeHuoAFu4N3g9T7akeG9UqTkJSEztdS9ldJ9XhKJV+yYuog7Rq30MQv6Ia1lNpdRNb/T50LIDKL4wMk/R9SEhaDK214Ag10YiIPmVwMZ//Lyhizaeo/1AYhsCYHjp+bS02pjAc+m09kVDvhZHg2RNK9IMMZpwL+Zf7b6fMnnlEalvR2WV1hoY= 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: xfW+svSEhiftvrw/+o6hygpUcraRMdOQ+0VNLbF6+hrXvlo+IBwKiZm2nSalyATVEE1RbVRXeIqsbFg1KzP3ll6+VIrIyRhhC7YdiJHkhigaIE5uYv4JKI5hgYtCchzfeA4tzba/wLH0rU0uscXaT0uwq0fteUdO78gus13soMJ558LbRVK3Od2tam+BbbVTyrVqiSHi0HktqH+fk235JUzvexLFqu5szX8eTlcgr1LTUo3bd2K9DP93YucaeyRW1apCDukFhtMvr+SrthUUlFOy+vll/U4h48s7lqWQCDtNGa72Rk5aj+5OEcnAnnM3yOyBHJNXSRH4x/d+KMSZ4S3G+/g/TIOu/JgqWqqXLXWzF1xWMYcoXjCY34Dibz/e+GzPFjZ8J9Hl4FrijR11OWixbgfk9ONa1mhzg8K9sFr+Uw46bSEUp2jmbdqIzjTbg+Xk4sKafTVlz+jfJsWljXvsTU8wXHDaLl1KvJbA2gX3nbvgPXfnglbN/5AwVG8ymLZ5m1azWa6QACIoR4tT8S8ZZVZMKApA6UBBM47qH181MkO2dhGjyfNCBtNOU5DbojTcMyP0kJq0yQD/6Yyor6iOhSwM3lsZlhKTRPb94n7pDVlYi7KRkDyM0y5bDGL4c6c6Ct1WHBtQGoV09FWB3W4VvChH8Hfcp5vxD6+T1Vte41EbtDkFmnIIiErSrH6Je1lefNkionwHLhCgUVjgiGT0CCL8g7R1SsshmN0ynk7TcmgEvGldbvKmMTRGkVp2djjCG5/9S+Kt1rshHYLlG+lMSzwyJ79/a/8EzTcMiNNqJNE6ApS7husL2fmmRQdEUZutryHvYvjA3B7aj0EtVEl/Csj2pA7uSE3Po/ICPvawPBeshOkd3xG8SSAkIKMRbJrH+0vURt2G8+9DnTirtiRDQJogy4SiU4CwGJPm60Iws+w+PyFdrXmWfvqXwnimN4rbZq1K5AlAc2vgoybNiF56WUQY+Ey7puFrS1z4Jbjqmfm/UBMfv3PlUCf1QRya8DLdez5tyMYK5H9T8oHkUvLakVNeZu6B7IX4RcXgy3c8YSgByOVdu1eBVDbEHoN+8RL3iWkFMxc5Gfpcv2EseV1d1XbVzWJJK8ihK6RWjDScgpp8ZDmLvgCz+uPaahHnxQM3RW9DWtPfZ8k+3ghBSHGsLq7zApoe3hynqHT1BcBV9YACt907v33dh9pwvNTGCkMHdxh3SsDAbsuE3I4iSEpG10jX3n0FFLN3+Rb8XJwMYsOwE31kNcTjdPYVsMnLQQv88u5X4fF4AI72WqXX1lJh47s/ZM2bRizVfQFxK5KfIdQo14rvnmCDdBffVg/5XecNZNiwyt6nWFZqaT4N6YAiZfMJKbBw7baHgE5f7xwXdksb3UUgoX7O/97P1H4brj8L776P83LyHRI7UtemerBuvOIHzxbsCvKyf6EuOMhr63snl5JTCa7x+ijhIYQKP4Q6SAeAyUFGHVJhTNd4TVIMvGpuiMbfeIXvjzaPp/24RDNILmLsL1/cre1zUyRtARTiWzHQVellWBlGMaZPYoIaz7p8qYbLBJmTUwC/ei8DjAwDAj0cAQsyDsqo/L4jOW//TwuM/BvuVKFd9ymLPb58OxB8wRgCtZW6rXLDB7c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f077b00-7f77-4d2a-801f-08dcf16339e4 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:25.5879 (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: lzOuaVbQC8Omt03CjSObN3jLYeyclnEJxPERTVKiOenBKS7YTag3H1KjbNeHQcjfRrWoajcFY/PDtUQ53jZ6U1UsMscDczBNUINZKxX36FUx1A/SVdv7/LRPN9YyJbRk X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRPR01MB12916 Message-ID-Hash: YZJ7CUYQFQIJFIUZ64NJ2MZEJVTFATMD X-Message-ID-Hash: YZJ7CUYQFQIJFIUZ64NJ2MZEJVTFATMD 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-topology-test.c | 2 -- sound/soc/soc-topology.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/soc-topology-test.c b/sound/soc/soc-topology-test.c index a2b08568f4e89..c8f2ec29e9703 100644 --- a/sound/soc/soc-topology-test.c +++ b/sound/soc/soc-topology-test.c @@ -88,8 +88,6 @@ static struct snd_soc_dai_link kunit_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(dummy, dummy, platform), }, }; diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 97517423d1f0b..43003d2d36667 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1544,8 +1544,8 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg, /* enable DPCM */ link->dynamic = 1; link->ignore_pmdown_time = 1; - link->dpcm_playback = le32_to_cpu(pcm->playback); - link->dpcm_capture = le32_to_cpu(pcm->capture); + link->playback_only = le32_to_cpu(pcm->playback) && !le32_to_cpu(pcm->capture); + link->capture_only = !le32_to_cpu(pcm->playback) && le32_to_cpu(pcm->capture); if (pcm->flag_mask) set_link_flags(link, le32_to_cpu(pcm->flag_mask),