From patchwork Mon Sep 30 02:13:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 831602 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 524E9CF6498 for ; Mon, 30 Sep 2024 02:15: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 6C9FFEC0; Mon, 30 Sep 2024 04:14:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6C9FFEC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1727662506; bh=GgGhujaI0woWlgYqdJG4tJyAc+dIuukpTkAfJ3dobUU=; 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=BCmORQucMw+DG3V9ap0Fy0X+mifGOiwoT5r8M2wnbTqXDREtdtklRAeMXqBB1H7xt Zk3EEkMizdAYiGnjEyB4LIMLiEYyds6DpThPWkBKI7e8WIPX+uvgaE0k7//lSF1IWk yiDjf258c6lL3MUpwOP8QP+P8WYOUOEEAbkUcAVU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35DE2F8061D; Mon, 30 Sep 2024 04:14:08 +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 7FAD8F80631; Mon, 30 Sep 2024 04:14:08 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A7DF9F805EA; Mon, 30 Sep 2024 04:14:03 +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 C63EEF805E9 for ; Mon, 30 Sep 2024 04:14:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C63EEF805E9 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=V7o7REzA ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZJm6Je0T99gDPy4ilu3etum/L52WpKoTwgvIfNfyG7kXBxNnA4T/zHpVSc66vkCsjYu9R3TCr/Z4DdT3adzLDgD1xXVNO0a8QHRMRNMTtdrlJkFoOfyBDnyQO5P8oSCqYH0KnctQnSNhwQxhs4ozTIjttfaI/ZXqD83eJQ6R1uM512ANbCRIIU7NQl/0nUx6k2jV2V4nADk0LzV55qGhnObaW+hX67BymFeFHlwNXYSmDg3scLtxGptlqZNfKJsYKsER+vWvPu1sZzkTC5P2ppNnJKjB5/zDgOtofuwrI2eSa5Js44FjNgw6Hc/+nvq+i+HPJUWa6XKJ98NUBrR2Jg== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=vysd1v2QLTGTKui57eE4PQZZWwbQfnzTgawMgFkx71y3AASYJgUc2lvtUndl8BHJGyX5wYOogVom9MuQ8XqYrRsVm6kcThu01q+E0j301oC2cOwmoBZpfNdnJub6hZbfRjmNs+D0Gh52cBdehtI9DJKYRfSp1JrCrDKHUMek/D8rnGiItznZ8bTAj5BwtoqwvGVjH6jOIolZ40cxqGfWgb1ljwAuygCnhzUXDJOuuD4/lvBg8tNdsY7B86ShozBrSefJ81i0AqB6V7KPa8LsGFYSW+3QpjiYwvC8t7zklN/mJ1gOYnAx2LmYbMC8l/Onec8qVToIeZpaDE1vRuMvxg== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=V7o7REzA28k7JtEtv12XD6kmSAS1ezK3sQJwOqcuugAMd1N8F+SMPQfRYjOsvyUx/LEyKqidpKaec0GNLCXkeVbsScLeYO9+2YHrlINKyY/CEe3kwEe1saWtNmLLZXYM+NJ5bBLQbFxHMK58b0ZujFPY5PpNEPTn9DDyDJOLaxM= 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 TYCPR01MB8143.jpnprd01.prod.outlook.com (2603:1096:400:104::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 02:13:58 +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.024; Mon, 30 Sep 2024 02:13:58 +0000 Message-ID: <87msjplwgp.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 03/13] ASoC: sof: 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: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> References: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 30 Sep 2024 02:13:58 +0000 X-ClientProxiedBy: TYWPR01CA0029.jpnprd01.prod.outlook.com (2603:1096:400:aa::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_|TYCPR01MB8143:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c1d7c9b-a063-4a3a-1207-08dce0f58b42 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: DCLJyD95mlPZSyJhh/hOcRSF/C1CUj2g5NL04isaQKCvXRP/oSBSfcSWeEJKyTyqZIYhFeS1s4nE40oVeFFEtXF/P2+2VCJ78A3ugrXIxy6KCUilK9vNKrhv+MJ97KVOy5GHEMx5NK3LitQPH3TWeeQ0K+55hRNVx1Dk5mzsp5OO4wDLaa5CuUp26ND1cC5wrqozbHW+FdW6EZvd9oy1Y/onhUIyjeFRmpsw8u8AATRCp5YP13Sd9X5Bu2ubsdI91IGkrVRRl1xqnF8X5b5Td/JWQOtfbVpp3AJuc/Z8r7NhzI7DEfkJx7vAW377LO0gdPIYCp6Ea0lFFJPTMDVLBNBjkiVk9KJTbg6GGnpZrTMKClgYoxQMK9QR9ClTQys1QaVUU12XL8+A1ZrpfnqPdU6N9i96z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PV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Pf/mXcGTKvsBNrGZfym5jGN7iAsArIhF9DfdaO3qFO4Ahxeu3tICJ3D7QRv3kst5kvvDuPmwO16tj+mJTdk2rzqHmr5CpWLltaagnFyNeBqz5owmhQVA3Zb52bmMkCYuBK/e3us5tRgIoa+lzrJCJSP2kLSPyhVfiugNC+bwPDfIvHTTsJbkp4csrI60i+Ntb2mquYjX9un9dyy769hb37milwEokRtuJqTurM5dmmcqkwUQsx2pf8hvxLDbPJ1D6i+7pRQZ0a7MpqDgVm1LM9GZj+PuyjFM/ZieAZypjqh4lEfkDPUSlND24cbJtzvVLTE/q+ovHstoYsPDagpJHuUE31Utax9np9rWbYYURLDE2OWtdkcmexd+We+2aa86ikxYpJiVd49L1NB5VUXONV/3/Gzw0ogMKxYvnVCyURfJTMI63FDnEvydkS/iULkUq8igPxtk9Ye4IamLSqG77Z8uUpQFfYItk2V67l1oaBDP6obGDVYWCxlydu3IrvpiNJO7tuwDhvXIAnUwWzwWrQtClKRxwFHeBKH8oXoLvEqYWIWCP8aPglLUT6wWvf7ID+cXGrxyd8DgXa/JjELBtr6dPZYnjdJtvyC5CDNKVmeK+B8S6CAb0+hEPRRVSX2Bl7Cm/ZqF4LwW9OTjVMOYIUGZmVXUpK/y7zFT1u3tFHodard2hErdFM2++zUlXFz+mdiJj2hbQRG/XXRDYSLCi5prowuqQL0/C7FSkvTGyeelDia4F6pynqNIC6Pn+vSPPyUtIWINu7kLMuSq7HIFdL3hDt4vcZL+E/Fj/zrYtMZE9PvU24SFpPoCpqNpUv11xQSLfP4ndsYKGTG2Hl5AuIQ6nkChtbSxXd0kBnXfWYUotBw/YL6OuZZQptdgrmvkyL5+w+0p5WGpI08aOGvv57DpBTb/bdMY5KhZTpgoiJywTyhwDfRYddK4MwYmSbraCujLv1W1U5o5Pep7i5NxBmN/xRQb0wRuW4To/EiGDpXkuLviku+WpFZUnagnSVJt4zCOTJSMN63xF5Jc86Sk5/wdSRwcFUPnezmvGvnGZu6Hd/BRo7tWxiTC9H2YDHC6Ho0BYdzipy9uKN7AgA58DPEtPK50P0dV0xEjsmUMCIAuWW9egAXW8yX/aHQwsS5PmU6z4IQjLfAkP2F6dxclv+xwOhSUJNQY+PMN4qlpZVFybCrCQmQtW4zxCVv34Qn9eM6v02oBNVKz3w+WOC0FQNuKIsZlLW5vYRcDZ9ioEyVbK29BviSM+vHVgTxYARxT2lU7CNodWpUQO9Gnn4Ucxf1xZscnJH16V07hZFIy51pt2xHaZgowV1gIKYJT7Jv6yAFIY9hbGj8MRW5LHzwBPL4Vgunh5f6lZyfJNhnWia1TL+0/5quuKnKtDZlJly0KwS83wqKkz/WCNFJdhm4imfVTBJU94/n5QaNl5ntwO3u7hO4L3B6md4Ce0TQOoFhkkcKCS5b9T4fHEvfEXXVecxrd0lDNgz9VpoQHQA1CZYoIapN17vUM0Comqnctk5Mdu+A4PIbglCD6jDNs4Iky0gERCMBwJ+XspwjG5O2w3MN3UTos+RdrR/qbp+zhBL8BFSEScARj/xrCxFG12fpjC4hAkWEu0HC6Z78vXAK9s/U= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c1d7c9b-a063-4a3a-1207-08dce0f58b42 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 02:13:58.8454 (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: BqvIx6E0UBOo82dqucfSXwY2lSRuPi23FWYGGOrsrycFThfFKTSeQglrDBYb6bHzMYiOSI1670xpRjsTxnMc/2PRsuxZ2A29NKf9W/oj8sRrmOcs+prVfqKlfgNHCVD6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB8143 Message-ID-Hash: KOLNAQOUVHMR34MR2YHRK4ZUDA2LSPZT X-Message-ID-Hash: KOLNAQOUVHMR34MR2YHRK4ZUDA2LSPZT 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/sof/nocodec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index b12b3d865ae30..c0c906a78ebae 100644 --- a/sound/soc/sof/nocodec.c +++ b/sound/soc/sof/nocodec.c @@ -55,10 +55,9 @@ static int sof_nocodec_bes_setup(struct device *dev, links[i].no_pcm = 1; links[i].cpus->dai_name = drv[i].name; links[i].platforms->name = dev_name(dev->parent); - if (drv[i].playback.channels_min) - links[i].dpcm_playback = 1; - if (drv[i].capture.channels_min) - links[i].dpcm_capture = 1; + + links[i].playback_only = drv[i].playback.channels_min && !drv[i].capture.channels_min; + links[i].capture_only = !drv[i].playback.channels_min && drv[i].capture.channels_min; links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; }