From patchwork Mon Sep 30 02:14:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13815315 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011021.outbound.protection.outlook.com [40.107.74.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4343C13B for ; Mon, 30 Sep 2024 02:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.21 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727662462; cv=fail; b=LNcrvU/ia/1k69kj98AVzglLkqfHk7wMHOs17rWtVziELCJiqyWJfQp9shWWqzdOc0eaMreyNPQAxUh9gXFdIclIgjWG5iY1/f3oW3l+3NuwdeweXy8hijA5SblsCWstSQ2/VhPgMvW9/26ps2Gfa10M72vcHyekLEHke+YvGpI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727662462; c=relaxed/simple; bh=n7fERorHze2JmC+6AyjZBH0qej2nC8phi50bjVYRW4E=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=IWuS8/DWZ8GPzOX7wQJJma8pNlGD/gKjs6iM0zKpPxMwcHM6G9WyVVlJfwBGnfb817Dshm4Vw5gy1hrLJzE8HwCOkFp4nHYfAaV1SAg9rsiH1NwuA87OgeZMQwI8snObfQ2774E6P8HOOPKmrK89qVCKvEHFGr/RsX/wh8yS4Os= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=UKD/lcKJ; arc=fail smtp.client-ip=40.107.74.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="UKD/lcKJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lwgul+TBNZPzpwCfowsLVsz5AQWw/zHi74ohsMaxQpIoOSwGPcb8NWfWnig0Dq+AlZx8bWQn2xUcz6GOxbuLV6MdUB4yat1rawwmy83zAIi1fTxtdXMqkvPz6G/fkDKVL09Y4HdOejbXlOL/veifAAo49l2I8HgpQVpq/vVjyu1OTmQnQ1w0MFLhAHx9+QV3HyMmdqIfJPiEQn35X4fnJmgtdVKPVseb3ZYIF3dtV5RVn1XwIcSUN2+bEwE1mcZ9fauClt3U52keY7KBDnjvo7k+RGxuZ/fY8U541fiXKqMpL5TJUKWT8NP1LBhNnBwjcO+xuu8BZG6j2XwOrGj5RA== 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=jMF4jl+f4QWWhHT4aTQllChMOMqvWYGJPoNm+2qgdpLUo2lnpRgs6q8P89eByvR9bj+mKskHZAEQvY6NWy5vyF9rgtqyYDmbRBvwH+NxyrQPiI4plIT+4Ij7SeBMpi+2uXwMK+RQnjlJOHCJDUE+U+B+G3oWqy/0igSg/pxjSkO6rhKB5Q4dMK2DHZNEvRAriMtrngMisP8qSj98k1ZnuhtR94hYIiuaja+tNDkCODRQKDtP1X4Bca/ms0SfL6O56jKlIFeZrRztYvbw6Ba+30Dd+EgHB7nN6S4BaUrXv9f9RMekrnhutuahVokla6/vsAOu5LFsgCh2JWOhVMEDqQ== 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=UKD/lcKJQnc4TtX/bO+//Q01LPxHcxvOqgVeVp9bFR3I0sk3yBNzT7FM1ydRiMHGZxUgBt/OJ4QkrbuT6dL+XI0OxCJWpEZ9Ad1oQ/f5pqoLjgVpETp19EIlFZ1EJt2k38FcHP/dug1xAcOVo7M1JP3tKh8cqsjS33weSOhv0yU= 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 OS3PR01MB5798.jpnprd01.prod.outlook.com (2603:1096:604:c3::12) 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:14:18 +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:14:18 +0000 Message-ID: <87h69xlwg6.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 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: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> References: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 30 Sep 2024 02:14:18 +0000 X-ClientProxiedBy: TYAPR01CA0235.jpnprd01.prod.outlook.com (2603:1096:404:11e::31) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB5798:EE_ X-MS-Office365-Filtering-Correlation-Id: fa8bece2-3897-4703-75e6-08dce0f596c8 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: I+X3xCQDAW7yoBZ84HLDvBPAor8VxqpqV7Y2ARVZBxjIdm6qvvmoYfw9JcAgziwpU+UlPr1tc31rzrvJajzzQvuTWgFZeMAw+0jqAYmCAH+YcBKc9KOmo91VuPVTmumM98b4IRkmrephhzxvWUmpQWA24J9vlKBpGhQhMZYdPUeVgNrlYdZEAFRCmrd/VWngBHYVAgTMhf4bKjrbHEj2UPA48y7QB7R8hNso2I+ZG48t1Zdt+E5/u8b6Ej2O/u43ydtbzu6bS+tUd4dxJio5H+FdSozxlcay3g2xH8OO9KzJ2sL660BtFK6ChTuErvq2xWl57q3uiaasHFUW3Zd3w9z7hS1eCrxFm5t9S2TQqaIh9fVQro1VDFsLAcjVDeJSxeBJWgmqAuwU/9dCaryNUgYDwp2QEWhyW+jNaRFMRWabbzhVK3MIGhfgO5nvMZMtFBN5SGxH+DyPc4MRSjP/7sT0QINs9MMAlsQiJH7ck2YQFEJw8/VUjppTgVync17ems/IE2Taye1gdNy6XElSkopBPE0SdHkMWs59mcuEP/egu0PA4ZzuRMaliba1tiQocYVmgIAfM3Tanh9nvX6w2UnadMBsqyMPdsFpXwvmSrW6RAEpxEe66Gf1wtSee/FKTyb5HYB9wZXtWORSqJhW25fMEs6jQpCMVt/ZiRCG2uxx//UozzWO/88DO4vf3eFcpgcqEVQPtPJF4yxsmECZY7pSUKEMxN3Y+9F8xmMCcueARgMmfhbp+BLVBklCAsLiQxEJoeLmzF4JnnAANKoF4jSWftQxiRv4LRd8yPtEsR0i+KDMeHo7whxu3t1K2WWRNsI9l/Cfxja8siwamn2FpiRLk3bt4ZQ5tFOtDNKh13xNW1BgsGt/bnuy3n3GqITXIu4jGQv6Fkq5l8P3GN7reCutFzVLjSqLow9JYy/s4kH6Fj5PWPeFd24aP5ZnsyPBvYDjrKl3DVwYOCg/tBJNhJueF28TjX20o/xwIR1KEzy7KkA/LntISi15/MbtaSdnabTuxxhafHvudPWd3PYqzeROpHYckNxGq+FQF9Xc3PrUem0WXp0Eeg8NOMrTQ078WozRewgbtUlKSy134c8SGQ4tCGpWIZ/hNeGMlkq5SaZsknhG/1ETP4I8+N4A6HEIWpxdfU+WRmYdUAMnHw7qDgsL0p0zqESnLTE9hrOArpkhs8u8BxPiip8wHEKn4y4hmSbUTkfFdD3gAUkMrWWAJl4S0/Vya7IpdIc7KaUJ2bLg/810NP8YyB0pzJziYdSso0rH7N9FcmZoY8yQuwaBxHstzRRGG/1CTGfgyequ2GYRDff+9RzbPgxwZHH72wC+8sYPui24IQ5cvNAjr7eDjn/fd54a67h8IX3brYpIzY9cn8/7XXTVzq9z3jGzmYhWh1kLoB6J5U6o1nop6jRxTg== 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:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yZFEl8LaFrpJlaQ5p8vJtRNF54idguiMbulHrxhgeRSmbZW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4cGb5wC6kp18sUi9Y5lRPV/KgtFnlIxgga68O/1Wy82ZUtWu/klc5qSRX5y5ssSyIhe0895Kf0kl4Q3KpyHTqMcjqiIXYVhHjVmDdplbyR70DT+JbwfGJUKvfr0qOolA9QEBb943zOmt09nas+4BJOEM9W/ekb6w04CPepUnlksHjzMrIJppIB9hEDeL7GvyHZWpliCGUYtL1F/nj/3/hHowXmkphEUTZcmxyb6u6FXQW3aXpTgY2YoWZJIkDEuSD51Qdtse2vxmqzMU0P7nndXEl515P81FfdIhu7cjtcl0WRO7jr4xy6gktlC1BHnNdMGn7MCpjpA64u2BcaUZwMOcx8JikoTwsmOanIiwRI9in5xyADKLrfMRgN3ORTH0nRRG7d5+oiLeoAKwwkNO7q75LwnKtnG1ZAuNJ++xkctgDWYBx9d6ujCFzch0fi5+L/snyPtUEqMncIfuIMeabnksgsZKOtgqeKv/HaL2+o0ZsDU8Y5TNjeXGAaTrQ6zTEeiE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa8bece2-3897-4703-75e6-08dce0f596c8 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:14:18.1682 (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: c8AVFDmritKPTZwBNcaZ7K5zG32zR+CyqKZIQ6Ql9DiiIhI8uwcJJEOhcgEqsLj3wsArtCKMPzqAH9eTkvPxLfB4ghcsbl3ik61YN2wmUBDHg2ym1KKE/LQSNiOwWXwO X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5798 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