From patchwork Mon Apr 1 00:31:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13612369 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2115.outbound.protection.outlook.com [40.107.114.115]) (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 F0CF17E1 for ; Mon, 1 Apr 2024 00:31:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.115 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711931511; cv=fail; b=MNdiWk04OrL51lXFKR1MKeU9p1oG7kOKGQBruavL2uQUo/MFruX6evhtrTxNTdvJnTw5DCOQ16EIZhYlGmFq53p4uR+y6nrJIiorQAh68n4WSw7xapY7h68EqWqzNPMnkorsFZyUdwYAPF46osJguHtWIjVsMhoq3u2ha2wmraY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711931511; c=relaxed/simple; bh=cnB/V3wohlLWCfkt6VQSScJ43OvBpoF23Awr73jQB4Y=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=X8jeYCq8JWBMgNMQp79ZMnPN/oB2szWutr4yAbV15eLVowxmPnXG0T4zQjMvPNZ1KAhMdXPyBlK600sBjhV5IhjuQNcA4nOrldYcq+FLrYJSLlsgXrCCnKzQEv2q1vrppMaIc7zj39awjILacymSpeYQYzjAs70TZhiTr4m7Shs= 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=BqgSlRmw; arc=fail smtp.client-ip=40.107.114.115 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="BqgSlRmw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GeHn17oHgNQMOTWY/BgRB090SigYvcdMcN4FcvXa26hoDNETliRdFPX2CJjJCHzHxTLSqMKLzrYHlq9JNH7pJOycbIJNChADHlWzPpZvd7VzqOOepZGjPYJG5Tx2BELq66PGKhiylMeV+KB/sECP49l4ZaLwAmfSpfQKnvoD54Ge2I7xC2dadG+dvn0ERg+zzPEbI0h0qGd0ydDe4FgAqylgs/iCS3KJONs2bn12jbEPc1ZG6VDdBNNGlYQxl9oo4ZhtZYbvtpC19zb8BgwtoseNrNicnXPg6mF6J062QUS3SsAN3mOm454GDjX/6DCTK6jd+Wr46EG/ioxar2yoCg== 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=nxuSQVl0nypRiWotmWz3lA2eBHp44qVH8lZjAAMD0do=; b=jN1qE/4X3pHyBaHucpOe9mADA1+VWQF8CONJ7ZH5SGHlaFF1x5r6Bn6DfRE6GWx8usWp56w0V4sGGAx4UxZV7KPw8iAWfVoY50IARo6V5IQJMV0MLCb+4uMyTcsZtqvS2odNrAxyzkaJtK6lJJSpz2+fInicTXILHL0PZyQIwvdZK/LEbNbgOKYIIYerLpPprclIxOZtGuqsWBhlpFTSNplZdsXyn5A/TBA93i4zeh6Ega0gQFa8GhvQ6x1Ob9cGLqPJ8W3RdybP5jVaJVgMW71hiqlXbGnBc14sRpRtpDxesBJDmiFkg9yVQJ06vtSm0nbcLowMuYB5CzP8QNNClg== 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=nxuSQVl0nypRiWotmWz3lA2eBHp44qVH8lZjAAMD0do=; b=BqgSlRmwKDt1S4oooDSLarqh8UJu1ZBGLVQ2PkqV1k74fejsvUdQaY4k6cWQXzoUZw3SemOobv/12BJz1NzogoGupZUpqeoCm8vn+tXBhcVLIYm04fhT/t2qmqXGYa6Mmv4tWWn7eh1PodCqaPdhGMwkzIaJwneJ0DpvjYpLSU4= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TY3PR01MB9964.jpnprd01.prod.outlook.com (2603:1096:400:1df::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:31:47 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:31:47 +0000 Message-ID: <87le5xudn1.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-2?q?=22Amadeusz_S=B3awi=F1ski=22?= , Alper Nebi Yasak , AngeloGioacchino Del Regno , Banajit Goswami , Bard Liao , Brent Lu , Cezary Rojewski , Cristian Ciocaltea , Daniel Baluta , Hans de Goede , Jaroslav Kysela , Jerome Brunet , Kai Vehmanen , Kevin Hilman , Liam Girdwood , Linus Walleij , Mark Brown , Maso Huang , Matthias Brugger , Neil Armstrong , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Sascha Hauer , Shawn Guo , Shengjiu Wang , Srinivas Kandagatla , Sylwester Nawrocki , Takashi Iwai , Trevor Wu , Vinod Koul , Xiubo Li , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-sound@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com In-Reply-To: <87zfuesz8y.wl-kuninori.morimoto.gx@renesas.com> References: <87zfuesz8y.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 10/16] ASoC: soc-topology: Replace dpcm_playback/capture to playback/capture_only Date: Mon, 1 Apr 2024 00:31:46 +0000 X-ClientProxiedBy: TYCP301CA0004.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:386::12) 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_|TY3PR01MB9964:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5ixjrql9GN6NQSAk0AxbqEUFUsplsDOQt8QnQ11sVlS58Qx6CAydm1w4IltaqUG8w227YQYiZwmqk0cheF2z5c45HxD24TWzxKPaU/WUYjxkXwOSQjmmkuIJ2tAw1hnqNIdAfcev6Ie3VAK/scbyQViFMrp/xxWXQPRNY+nup5cAo+CsmsvejGXrMVUIxmC3cO2kLuStRLi2xxO3v4XwRXBOWQ81Nb7E/E2ZpFmEtCmHE5PDL4bIbFBFCNb1feqOieUqppPWTEUzIeOw0pWTEXP0mctRwN4Tzs+4GaLpzXfL0GFZrfBIDN91qBhoAvIfdhrt1fShynCg3MYOBTPik+d8mROGJ2hYIkj7gc5EuVtIQV5gINcH3QmI02tX1P68WbxkJLeTCqJo8rSNgey2jCpoZ13ZFxkzLXT5Kk5UE6dfdESBJFLiOvUhIAjSEWpUqJvuR/E7UNK5MicIkzFCd9ODiSa/4Rqr34py7LmkXmZGcVhehgf53hGbRSdKSTk6cT6EF4wZM9U3JOvlcw+WUf9M7ybxQSgHiZmJcwTRF6TrOqz5lNWQQPQE24G/Om+lAQ0JEOijZNGwi21DCFF19BmLKxZ2DpSqsJij3M1okIUy0T4n4Q8ojEFFMHfiDfMlspiC8gkN92vAJ8Szvnce/A9ilqTgAVRpZAPhSFLE78BTimvFxjmA7eJMujzSmB611gXvTtZVpR94anrZ5oAfdt2Bs6f4hV8NrxV+k6uVG58= 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)(366007)(52116005)(7416005)(376005)(1800799015)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VnDBupkSIqtvgQcWzsfRtG30fx+zsad6GjS0DdXRju/oP+kx7941T3UfJKGQqoOmbP6tSL6rUTodbTTAeFoJ4NzKjxVfGS6JukF9Q13jZqSE3gq2XGQPXx+HQ3AAD73mlue/V+mLL/r03d3P48pXI6J6AmhYxtw92Kj0kbmC7g7vKC8V7mz8iH404bsVaX1ByI/MxqZ/Gx+xGdr85MmIPVyskx8ly5QZoNH/BZh4iKT4u9OG2qfTI8ycxIUZJBuCCNHGVl4HL0razZ3cLSmOOxzmFLde6P1yoGqAGb3hxtdx2zcLi3aCh53UWidD/Ng1tQrOI35HxMDiQOeIrEFvTqoOc/NYU8l5Zd/8c6f2eWdFJDgSZq/d4/M41+0cGY0JjUp9B5kAu0PWKqoJr8UwpLBEOSrl2W7yypCiJZjz99zMki1v88YtFxOWP8heVqhXsPQnPIiadZS6NYhQRtlQCcmzTQskpt9ammqeFx1AFCVuW0AWREOVCrrn5fPAj36e6h1j2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DKaDUMDZ+VidLG6zQeFpWTHWlfudiAP8K0fnh4EA9l3HxmXznpCxo1eQ/lg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b628cfc3-aae3-485f-b35b-08dc51e31d59 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:31:47.3028 (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: qIPJqoSh/rafoCVT7RAEUCzK4dmHy1ZeXL2KA/3WTmxSzadNH9qHiyJB63DgZqpYchdvNquNtXAgi6vjf9mg5rYUt/sVinNYDegYhUz18x+/SSm5JapGx3+KxiowcXE/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9964 soc_get_playback_capture() is now handling DPCM and normal comprehensively for playback/capture stream. We can use playback/capture_only flag instead of using dpcm_playback/capture. This patch replace these. 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 70cbccc42a42..fe6a4021b350 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 fad9432a10f1..c98847d2d219 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->capture) && !le32_to_cpu(pcm->playback); if (pcm->flag_mask) set_link_flags(link, le32_to_cpu(pcm->flag_mask),