From patchwork Thu Apr 18 04:13:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13634110 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2045.outbound.protection.outlook.com [40.107.113.45]) (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 64EBA4F8A0; Thu, 18 Apr 2024 04:13:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713413612; cv=fail; b=uuvAP30W1aA1n6HgaR6Rc8P42v4+dcVyz43tYoNTJgHGKrJEBxP35cf3bII85UFrsgwCdyAGaCqK/JyieHcoj29Ycc6fu0qgEW4q6wEoQ6VppW6VDSGNxeyVWj9JywqnXIN1TjRSae4Z9tpTzoKAaKIDYXvcH9GJWLa2P0oszsY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713413612; c=relaxed/simple; bh=sYh8jtTawX/FkpfDHKWeTJcjO4NaJLHkZc3fdH3M0KA=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=dBmt4WWj82iQUNah8qWU01jMdPkPugANVy6KPh/Y6H0YvrbxxLNTlJA/oZWk6uJlQuQC9b/nf3UZFQ7cUhO0B2kWgBeKCvP3ANri2YU6CyT4nETEKC3vPnMHmiAqHt6KDt/KLHyJ4zyU7KGtTY76yAjZxH1jNojs+clklE4+iNM= 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=klU2aU5h; arc=fail smtp.client-ip=40.107.113.45 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="klU2aU5h" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kUVJ4rZLwJROm/W53VmJTyM0F76CBkXZXe+nAfGgMyVGIaBsO7ZvLe7zPFCXz1xjEw7Ywaj86wyVLq/cybF9qh5ojWsd6ABrlUwD1VaJmafgHrypou01ypmyab4E2W5fYTk8z/rFkPstzKwUeWAUo/ije4Z7T/j3Jl8inMUIU9IrgppAv1CACU8DC78iMX+JzP8aJQQ5iLgBOlclhMbyLkIblW7gGMNIIa9vEQGitpbJjqJdlrcfALdV1PrVOH/ncVcVNdjfARYWHxCS9N1McH4WUsd8+iW++DcLw7+HIZkxwh+z4DqlD73TW79JM288vyYKRRrkPQB5MKHIRfrutg== 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=lkQXMt+6YY8yxS+T9XCdXja22jM+cVphmJQGitbX2vY=; b=PSl+VLf/IPhenWWfmRErpg0BuNWWHqae3wkLBn1yYtgfwiwButAX8kZx/hNAQxcakSx9GZGQQcuNX02upiGwyiPBhBhn5l3o+jJMjh+mjqAiQHqJ6G73HzgjcWJqx8JHO9gb6RYz2/dLdJQX9PeGf1NnT+XQXOnx6xFuzWql14Pg0dMxWPbem6gY9wZ/N5NlPJk+ETkwLLAJOPzoLhUvVslNWCN3vGdoZdu4CvUbunZY3VjrZZw6IHqVlluKUIenuvLmG8zEZHXc+Zbta0qIbnWR2twDomJUOfGPvT3JUAcMqStSIm+zVmtjY+jvCtfB+cMxgsbl1r/MNvM3bSDk2w== 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=lkQXMt+6YY8yxS+T9XCdXja22jM+cVphmJQGitbX2vY=; b=klU2aU5h6L1AIzCPcYyJ5Lm3fUAZ64sX7KJezEAK9kNF0pADo3EbOxSGk3pxN9mlApLRwY7G0yB/rWVFaLntPY2XfXqs8r073BTcFoj8n65kw0jmezgIeGLF92rBg8tUsXaFwaDmJyOLFf2hhygXYDxB5zOF/n3MxO/P4i+/Ldo= 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 OSAPR01MB7397.jpnprd01.prod.outlook.com (2603:1096:604:142::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Thu, 18 Apr 2024 04:13:27 +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.7472.037; Thu, 18 Apr 2024 04:13:27 +0000 Message-ID: <877cgv8g0o.wl-kuninori.morimoto.gx@renesas.com> 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: <87h6fz8g3u.wl-kuninori.morimoto.gx@renesas.com> References: <87h6fz8g3u.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 07/23] ASoC: meson: Replace dpcm_playback/capture to playback/capture_assertion Date: Thu, 18 Apr 2024 04:13:27 +0000 X-ClientProxiedBy: TYCP286CA0251.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:456::20) 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_|OSAPR01MB7397:EE_ X-MS-Office365-Filtering-Correlation-Id: 93960a2d-ff5a-4ef6-a831-08dc5f5de624 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; X-Microsoft-Antispam-Message-Info: siEXAoDhF8pdgA4lCAGoVsY1YBWOPgUm0/deJ4WoGGpK08L/9eeX6TG0IdZU4hQWLu4j+UIV6u4NTd7Pnu0Z6hAHanU36DVNAa+2H5CgP+UiU8iPCat48AjIRNnH1TX7HibYvzUtN9N7sBUYuwjo4xrC7LIooTqk4X2Pb3J1p6cp4+nOlT/z7tFTdz+tSnYWfZ4Uc+VMwYl5b1dbx/aX0kkyzkiTON+vg4ygZThVv9cSmO5rVj6ntgru0I7zth5hCb0LD2wB6WsZYVcBtdMu+bXPGmvgKds4BWngOPAPQJ18e33Rpl9TEZjlNCx0pDr6Z7F0T/XzGGagO9s0GTI0vFnvawne3yiw0Rbc9JIPuwc3+q3qfqQzfR0P6HQvG650S6nVyYa24pimNS1We7q1if2d93ouiuF33KhkL0MMZsPJtCv4NKNzMYmIh326GSznfBl+BT7ExSnJiG2lFjn9q3hAmlZRbm7ZveTH0VovrBa5j7hDxj+DfdrBmJBjE1xqAXczvfxlTQwss+jTWpCGa+UfDEaYd1sKi+DByETxK6BAKooIs2ZJwiAbUkixVh6xuoIicQh5HRJ7dFSSyqCZhI2TZdXvjx5lorFk4Hgxw+iW2gor4UikjIaIDVLjt08T8RQmzsu2cA/cN+aiPMgE5G9LFF4Ng+hDyHYnS18H5j1EcJtFYpthuRM3tHzoK8vYZpc0EugTu1m8EZAhfGemkFoq3+dsisw/co4X7YVpEYM= 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)(52116005)(7416005)(1800799015)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gc1Qyx5woil9XLRKSWUgBs5Y/aIspLpLcHXy6HtwPlSSpM+HAA3TbnYSpPGXNz6AVUhlYRgaEC3vqlZwqq7/hk4BRoPYQ9DUtdo7dLmxhCKXGGwd2okF0DwkxJEu2DWK+ALVIdt6+GOqhzBR3NnGbMCCygJ/l+hDMRCWwseHY+ZcQhg1u/qo5hNWPhdUoKk4fllLIiT0mxVAQQLVHP5ZfudIAykKWUfA7aBxBlFFgQmmjXYh2XFFW1KGcji7szgiE3QxyLO4bLBXvzqAmxRQrPh29wbQKJt5wIWbEFBdGoSKwKtW13TGJCW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WGU0mqtUNK3eR7bRGCTzYZ+QGIDERfwPeyZ0qgfW/vg64T2IamZn7+JDf5V/O4uEQ5WwkXg+O57pLPBG9TVcyAffGKwArXYawb4CMWEMwO0ajrYGKkB5s82qw/y87kXxMgFPp8r3IHNI7Ht43yslDXlqbse+aazT6FsrrgIChSQTp9NddhwG0oGF4dUBOVS58pPlkhMFEO8R92nFy7Pz4XRvZ2aiZDhTLjrdPXYJF8HDTpKUCmhwRp+9NariCps3JdQhfzM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93960a2d-ff5a-4ef6-a831-08dc5f5de624 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 04:13:27.8298 (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: wTYDRqts5wrqRwI4Y0/6rG5ZOtHp34cPJX6RYHybpfp53AU6xQPzv0Iv9uT1ppWT9Dihfw0I8AcqKARvuCLXxHRfd9IG/AlYptCNQEpgSVxSCPcFRdZ2hZcqxw2P8xZC X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB7397 soc_get_playback_capture() is now handling DPCM and normal comprehensively for playback/capture stream in same code. This patch converts dpcm_xxx flag to xxx_assertion. Signed-off-by: Kuninori Morimoto --- sound/soc/meson/axg-card.c | 8 ++++---- sound/soc/meson/meson-card-utils.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index 48f14c28f79d..55198cdc6daa 100644 --- a/sound/soc/meson/axg-card.c +++ b/sound/soc/meson/axg-card.c @@ -132,7 +132,7 @@ static int axg_card_add_tdm_loopback(struct snd_soc_card *card, lb->stream_name = lb->name; lb->cpus->of_node = pad->cpus->of_node; lb->cpus->dai_name = "TDM Loopback"; - lb->dpcm_capture = 1; + lb->capture_assertion = 1; lb->no_pcm = 1; lb->ops = &axg_card_tdm_be_ops; lb->init = axg_card_tdm_dai_lb_init; @@ -176,7 +176,7 @@ static int axg_card_parse_cpu_tdm_slots(struct snd_soc_card *card, /* Disable playback is the interface has no tx slots */ if (!tx) - link->dpcm_playback = 0; + link->playback_assertion = 0; for (i = 0, rx = 0; i < AXG_TDM_NUM_LANES; i++) { snprintf(propname, 32, "dai-tdm-slot-rx-mask-%d", i); @@ -186,7 +186,7 @@ static int axg_card_parse_cpu_tdm_slots(struct snd_soc_card *card, /* Disable capture is the interface has no rx slots */ if (!rx) - link->dpcm_capture = 0; + link->capture_assertion = 0; /* ... but the interface should at least have one of them */ if (!tx && !rx) { @@ -275,7 +275,7 @@ static int axg_card_parse_tdm(struct snd_soc_card *card, return ret; /* Add loopback if the pad dai has playback */ - if (link->dpcm_playback) { + if (link->playback_assertion) { ret = axg_card_add_tdm_loopback(card, index); if (ret) return ret; diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c index ed6c7e2f609c..ac417e673951 100644 --- a/sound/soc/meson/meson-card-utils.c +++ b/sound/soc/meson/meson-card-utils.c @@ -186,9 +186,9 @@ int meson_card_set_fe_link(struct snd_soc_card *card, link->dpcm_merged_rate = 1; if (is_playback) - link->dpcm_playback = 1; + link->playback_assertion = 1; else - link->dpcm_capture = 1; + link->capture_assertion = 1; return meson_card_set_link_name(card, link, node, "fe"); }