From patchwork Thu May 30 01:29:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13679607 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11010000.outbound.protection.outlook.com [52.101.228.0]) (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 E9AA6134DE; Thu, 30 May 2024 01:29:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.0 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717032586; cv=fail; b=S58c/v/SEWfzjfE5T8VHrG857WVC3hVUSmClDGgTMGuTOcHkiJfd+ZbKg2qoXfPLqS2cFNLfgQTvre7OOhKv3SA5wsOqa9NqH3hmQU3ZOUpRuuQ5R4ZK5ERF5GzLtzExXskuKPjnkKET8dGpgLIUrmPg841VPzNEhVJfq0dLmfY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717032586; c=relaxed/simple; bh=eZr89klWqLnEVlZq5LBW+pgLYBAYOUnN26Gj1EYlDlg=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=cOrS8zKT0h+c2fOPISGGY5OsgsIckpcwqExgICKXvubdCWDyeURPCHUf1k3RoI7uTd/XHeimDQMgHJUKNXlWl8NA+AUTJfsBTHwZXMrF0AlJk8XvLZhXNDqmygrJsAQJRr+XSdyW8gfxhIBPbMMkKznkocfhEV0qCgbxvF1gr+U= 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=VAbu7mt4; arc=fail smtp.client-ip=52.101.228.0 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="VAbu7mt4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jM9hGCqbjSScUX1zlmfuEUqgwUd35LbBwTmbFE3UWPWT7Uj3SrNDrIKAlhVHTBptkeRGTptvvCkSYO2wQlTHoEPo5hSa0Fw+3RiwsyaWyRyZvLbNtb2kMTKePPvenje3ZHqcH0bA1sdFQUW8Dzc6dxGqSPQqrWmS/9CPJgSdsGp9rKvxNYe3Sxr/tO7v5E1xcMAQaSvTFSsEyGtPPzRzxbBvOVKDHebrDq4slbxpcpKAcCRmUugSz85z5so6iuEGAv1CyhUo1D8sq5sBC1Ghslxg5pbwEGngo2+eYmx7XhffTXVvsjgel/5D+ZAuPlOmHQh5merDdS59EYuvsXheTQ== 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=dOGSQCDlmmfUUHWZhj+W+lpRY2y6kf8s7usSZddtEwI=; b=Jx3ZZwmCOwuyrraTMnFTnGOuvvBcObbB49k/zEoGuSFs1GBw2vbtkIhiiFRSQwCYBqwOYMKuv+4Mf2s0TjPuQCVkMuuMA1+HggK40EWszLXOmkdf+SADaMvDO5mgoMIveqBYE/eurSHWj4Ook0HoPh63D5dAeMxenh5IqtfggzylF5gI/TncyAr65oC/W6liAf07+yXuZshnY66+q0QtVMxPctWR/W/siE+/zzZu1KLd/Dvn0hoDfLPXY2KXxbrS0Ret1GvX6hbkNtnWcRKTsJDCISOVkyiXQacKl+/6OjB5ZODRSZhkiGPXbzY9RYbNnuDkNgw2ATq5q6u9aZdGSg== 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=dOGSQCDlmmfUUHWZhj+W+lpRY2y6kf8s7usSZddtEwI=; b=VAbu7mt4l6ko4piCeJb5JGuF6hzVl8zLp14J03QwyKBaliEYRZqKJ5jjGka0wWel49BsMdkmPjSWiT96/MalZhvPOZJzdukBDEmZOq+bT9qKI9w1DfO/eVDo2fHntp9kl81PPe7L8PhXRtYfmJgzRNKgskVVKcqfId64peRnCbM= 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 OS0PR01MB5524.jpnprd01.prod.outlook.com (2603:1096:604:a6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 01:29:42 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 01:29:42 +0000 Message-ID: <87r0dkozne.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC 09/12] ASoC: soc-topology: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 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: <874jagqe9w.wl-kuninori.morimoto.gx@renesas.com> References: <874jagqe9w.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 01:29:41 +0000 X-ClientProxiedBy: TY2PR06CA0016.apcprd06.prod.outlook.com (2603:1096:404:42::28) 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_|OS0PR01MB5524:EE_ X-MS-Office365-Filtering-Correlation-Id: fac5d0e6-49e7-4173-55e6-08dc8047fb2b 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;ARA:13230031|376005|7416005|366007|1800799015|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: C2Z9F2h4r2bcp8TfTD/fK1GL/oYhMZL+CxBhozm2224HmB652VFAwmuPlZy0MAwAD174RQPfrfcEwPFo2FDkw3jZwDysHBCcbuxFCljuzBJXgPeGS9TZKXIrwhrTTyGVNHgXyloD3OXhwO1crX/k1YfiMWfZryaDUk7gcCj49ZwKTu8HZwB88ArljU2jR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dX+1ALOMP9YIepRUCwS36F4k0dW60qISuPgtaLNPDEPkuEKEH/iG0VMr9SrKVFUysoVDCo12UzrN/Kg8gHkT/boFboT0jwt9jmLA4+3PipEFTntgs= 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)(376005)(7416005)(366007)(1800799015)(52116005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iWOUuRkFWa8+w4KQvwQ5XUiuazdQWg6XP9LCzdBqJjvZ1qQpuL7R9BmOwnIC+62tOisbplMJ5vRnubj+skhiIbe5kBNhSsvwdxtPFmOpH0zNfziCzfeSzDylxfMlp2uKzMlYkXa34fryj/QOiBF+6EpTfmwM1Y25xWgvIHoBfFn9NTiQoDso66OyD8Qvg3PEIFzjanR+5Uh4HB1iGrcMqjp+qCx/yMnoXSEu/tpLrxUGpVA6QBYq0VwU/aui9LkYzKTdSOwvEs2YF5ARypsmPRjCBNsDs4Uapomd/2i9VEUkz5S40ySfD2FYNaOwNsYEaJHZkqlqhqpB4sXdUiFGxsLWPpWCav2NUj40jCABK+RkMr3ldmVncxLwUPEa2vD1vXPdsBmetBbTt8f70QK/2GiwIzwyvBKeHUR+1iYNv/A9viHhgggUl35/3StNuCQ7vashSo/fO2NGjX7nmK61nBbFbHgcyOzMo+QFutZJTCCRoM8E04tYNLWqRrDjEZcDZk7ySc/OaEjoqHo6OarOwDjnk76aaXHZ1JQHQLNjPZXWJZ7RdH3jakcr/c3EOVQl+ohowiSZnv9J5d4NprqzsaGhGZ1/wlucPJY4O+nl0aHpIXRIvjOkVABDpZP/kaDwvHn7b7jR19A36ZfRtekAJ5NkqF5lmkxBy2Tl0miF8qn03C57vzX954TdoH5HuFHq0BD514XeaWYJXLPhQXm9630sKN7F7l8Ow9jVA+I8owBhcPLxC+5AlY/Rsw8ZYUU575GstEbOVba7N8Kde9lvH3WFzJOEUaKLTUTGAkZdihHhmFeus9BLpllK+MjLEQXloRjTUpvvIPop9dN3xfK3Dy9+Uu+5V3ymV0durEVyb2iFy10VO2Ur+uxnOqf/vFirq7UhwOHASfH9vZ7oxnOhEWqJapCkijDxAWlYbG+L5MFEwUSN5LflGrHaLYFE/9o5Pa37oPXjz6Abx4l/4x8d/Sw2cndsY4QjP3ltFNz3/59/PWR+fRFVWl/mTwD5eF/P8YuAT/zRPV9Y5JYrbVfamF5wA6fIE1fTy+T0hkTVFJ8R6WYJYTwXNJHG+Ien+IIQSQK0jQP87POCY8BxhIfd9x+Q9WiNnLaJMMIOzVefGlC7r71B0X5Uio0B1Ij/D/KOChUUhXc5QwzYK/ItH5FXwvnVZeK4mTIAKd+lCjIdG1PErrdhCVK8CNQx3dmo5pjKSQRullH9ThbIPkrgFhos+jOE3b15zMnVD+63jJ42EHITfFz0Y/jB3y0duDyTdmIK1vO/j+hGILCsT5056ij23OsreSn0Z0yzCvpzToJKo5XnSuDqUJuTFUteIje2ftOtTKT/a98YkncJZQfVqp20llBJk5IDzd6F35uml1aIyM9KKLiwnBfdJVNCsORuWm7ZNSmN7pkvjtbwKL+owUJCN+LRkokQkMMO2ohPPvSjDq8pXWQbakwsppub/+2gV71uPSSSBC6WN3Ho8ujAIQvR6B2Uh3JITNCnzIlCJ1RYvyv90soiEm0bmH1ukTRvPHxSl+jclrHbuF1Dpg8eikfPzSZvZIYP5upghym2YEMaKPhZUfuC/s7qfXYuP59EsJcHMfWDE3FSbFjNsKR3CLBMeUHfdc8BFGeZ+ZN18EGi7tM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fac5d0e6-49e7-4173-55e6-08dc8047fb2b X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 01:29:42.6147 (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: Wg/5NRfSV1l6138PvBzZse1DnNlSynDF0ksKpT9xdoQT547pjk5sDPWe4Sc9/UaXbY39/VgzLY9ihYi+pXPbycT5utXhWUWByaXSG+ULNLJ928+XukEl9R15cx9CvNpT X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB5524 X-Patchwork-State: RFC 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 d62a02ec58963..be3c33e6a0163 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 b00ec01361c20..21ef7f24305f9 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1727,8 +1727,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),