From patchwork Wed Sep 25 23:38:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 830773 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 E68A8CCFA06 for ; Wed, 25 Sep 2024 23:40:34 +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 17198AE8; Thu, 26 Sep 2024 01:40:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 17198AE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1727307633; 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=LUFOvnCPeXfvOCeh6HERa7DiEaaizKIrAg+BNUtMe/zXbgA+fZF5IMcaK+nl7nUY9 MqxVN21z6NdgR8G8ALA27J/+fKG+IvaiCjVYxYhBFNUsRl6AM9PzH8G6ZgIlGEx4mu Y7vTYrub1ftLD589hc55RW9wahqsmudQWuL+QHys= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0D533F806B0; Thu, 26 Sep 2024 01:38:46 +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 6DEDCF80697; Thu, 26 Sep 2024 01:38:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F2C26F80608; Thu, 26 Sep 2024 01:38:36 +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 0F455F80508 for ; Thu, 26 Sep 2024 01:38:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0F455F80508 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=dN12aOh/ ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vxqNfnS6izJUZOp38BNBYamnzP2tdjR7zNyWb3zjz0A2qn9OO+3+n1kk+hVzm2nqRWvPKKHWhx18VkU3BcNjoXiaMJF28cNocQYHubcLOGBkAehuTMBGDXPXKxy4sWovLhOueaWPr3/pc4oD/NzAOIlSqpqaeV5VA5jEkX7hL4M7K4vzs+Hq4LqDGIw8Y06wADTaKwO3W/YZhA0F63pPfY9JxaEGx1uN12HttjI/MbKTIqxkR0lUcz1ekpMvr2d/HyFcw8ur1e65x9D+4VBmkjDdliiXlrsUu97NLuuPkUhtdc38UQWkfqTd4MGwtTRbUfMwLnmIwbEg/CZpBX7STA== 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=uBCu45DWjY/2dQWNnkdlMijwKtIwNWGJvUe3UeaHjFmrx6+TkCiGThC3h0CRMcwaSXyytxWK27JGVPDd7D4RfAWB/X15NE0xro20H3quIQgK3jCTQfAfr37i0SyWv6ADPHGsoajWWVClN0UPov5S79LazrLcQTWnYkRIcTcsLPg6Ui9mKFjjf/fWWXOTdEZT8AZv0j1llnglYt3nMk8av/q80ss9JvjR6sHVhkW4SRZTaa4QGVcmNhGQkaeMZvfl7Vwy+c7chwRX4s9ZCyW0MSIuoO+PwwxMCYngFNhozdpwvjnLWaNqPdguGv2/Czy5PLhAjueIxkw9IDjOSLlKtg== 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=dN12aOh/W4Wm4Jc/tHhUeZba/7ImNTCVlKcLDSU0oB3KOtxYrpaAjkEJYZ07/NfDZzRLlda9us4PzvHkPHGC+mtenxuebmoVkgEhSjRll0keD4QfPIOG8ONQ/Un53yTkiqzTI2BP658xhJSaLwPm49Hme2mcNhi7xz6Iha921UA= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38:22 +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.8005.017; Wed, 25 Sep 2024 23:38:22 +0000 Message-ID: <87h6a39udu.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:38:21 +0000 X-ClientProxiedBy: TYAPR01CA0028.jpnprd01.prod.outlook.com (2603:1096:404:28::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: 446b8fed-bd1c-4c05-3649-08dcddbb246d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: SCDkC9NbN1aHbhgSImvOj9zZeErr1kMrLfOI0ECoue9vkHCquyY+858IE+8NDKLLtUwJ8obWGl6Tge5XaBQo4daNlXcLK0rVixHKpw2aMIJrjNTUJPus2dVm9EZAoH1ld0dwUVItrV/8w+nSYXpImpyf3AzwRsP5gq1mK0O7uCeS0tBp896VEa0z+qiO5SCmvvhzSXanmJRsv1IRMhT9VT+J5vCNmJmVwzfvyXml8Me04ukFNxlrM6p6WsnaS15XpaVlqFat+tU2fj1IFFY4Rz3CznMDVpoElTMwFLFD6X31bMhh06LaBT5yqDA/o9Ot6Wa4kIfy1Hwhndb1+K8vVTpsChmwUyhVGfQ99SZ5sM3nxDGJ01zn99eIHm+OPGKAjVRuHkcM3lb0KTD5YrEmjkcIhRVeMZlz1R4Q6xscZrcSh93dzFcdBQ0Vu6AIXeNbsCHSlsq+MSMX6GMdqhKxi4d0Dc7bf+gj21y4M9KNrCITM4RJvW8q5aisfbkTexu154ixiz2H2y7zlWyyZL1Tpg/FxMFldOqq8QnisxJOoOlepvqZ9QuNE7O864vQtDhukTU2HKHgeaWzy99W2sqqRKF8R3zG3a6VG4v/LKw/rb62bbin6bLoGYEBYOA89pD0xo8yYY1QoEZ8dVUYT9DR4cNr7K+W3zWzREEuL6uQ/1Hsf5qoTQ48HwobgvqqI+3j66TPyfNE7Ji10cDrVq9S61eqC0OFzckNgRvXEIFSR2zFqc9ecPbXIocu0i6izYYY0njzNBrkTnMQQ4sVRhpbTxNOqJviRMuc8NWaAGkrpTQnX68Awnwc2PyuMsdYcc34EuqfMsTBwPi36cVuUjdH0WSbzq55miDanH9OubWYKNbtF5L4QkDzc9thV7HyWQmxXNIYhKrOQk6x6VYb2hGwmy/0HQrYD1NmenlSJ/gW/PsAXD58FT8XRv2DN9K860AIBakcQPLLJZ6iz13dP9EotE3wwxMd45sJULlpADw52q6891L3ce0ql4KGLqwrfaJlBcqk1jmspH2Yq+okMHKuvG8Cu4TB8dP/VVdvLJu9ycO3dkFk8WyOiBiOR/H/kxAC4whKqbE7eysdl2DO7CSRLd+Aff9HSSBdzTPigHKbtEJP/+MrBXzZAzQ6hLwy8Tmjj+LSxvnigKIVortPfLJrcgwK182wtXi7A20DKEhMeZETbeYzGzyufcxB4Fluht76Qp7UrDMd6OiYrTI2m63PsKBDKvN70ES0S0P0X5yDpvJFYToU3G2BMsYK/6C/mzJN25CHfza7wdDkIBrVZloWFMDt9QTwZ2gQRl/3Bon7fdyJWU7e32EPjqNBHwATeAtKMbNtk+B6oDq85uocTpFs8Q== 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)(366016)(376014)(52116014)(38350700014); DIR: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Nez6ZKr3XnGNBsb1/1KZZrdROZxB5FDSM+cNR54n9fE41+X1bBlRRl1HYgd6YBq++OQx5viBuKMAlKz4qNCvbN8rE1IBTnIOMg+7UPnIHPa0BozqMf+D1TvCgRDpMCqilIeLHQq6IbSTZzorqhaQuxa/F0MzTo1j7AiHIf2z6IwHJZaRZHxSNlhQgN6B4dHTmxBRYxAgsKsam18Aic7flW+EFHVFxy25x4dJiohwIQ2HckBmB0qevBhdGF1BXTNqVwZZJccP9jSaGPfhdzFLNrFusTuXDDf4+KJmBhygTHh6bIY3Nd3e5kS4BxqduN5aNe9Q7QUz0+BtFMtAqn/Zlz655xN6KPPLG7qh/0AhxYyVanyoFlUR8SGJ06735L4jPeLD5JYXvk/I2X8Clddtsb9J+dedbKwAca/nwJEJqzVNBSuytREPCswnE74y5R6SybA0xRKmkDrWvk1Ff90EJZZPmaa4+G6ohS4wvVArTbZSm9YznqnAjdEIK+iTzSSYd/y8vsztQauUdkeeanC2ZEdkkmJVPc0uHllvuyjE0y4wNTXJdbs7AtQvCkDjyrGN7GnNZ+RPVJp1kQfuW5SdV5gOi29hKdKGixe4F22/lgIj38P49wNRqZXdsLk/1inT6fDo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 446b8fed-bd1c-4c05-3649-08dcddbb246d X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:38:22.0645 (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: Vd7uVwylaxzBcPkIl+o8n+hGuqjbP9asDlYt0tSzkYJpVrNGM/rX8j8/R6Bl2Y308/JeUMTaqSWGWNW72yPCeSluo4Bt8KRmfbMa+YGYmO7LbZyDEa+02MV+gGckQF81 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 Message-ID-Hash: PXEBW3EGVJFOJ3GFQOOFIDEQJYMR4FSM X-Message-ID-Hash: PXEBW3EGVJFOJ3GFQOOFIDEQJYMR4FSM 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