From patchwork Thu Apr 18 04:14:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 789899 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 EBFEFC4345F for ; Thu, 18 Apr 2024 04:17:28 +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 48CF1E69; Thu, 18 Apr 2024 06:17:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 48CF1E69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1713413847; bh=93zGtpBHa207Ijy7uSdU7+d6fx8AEOISx8TYwaPaswQ=; h=To:In-Reply-To:References:From:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=PIdymz5dDFFQfnxY/3ZsbxfUeNC4jsvsGjF/mmAsL0IcdOU1oib129Ba4VFHomBZt Nh6h70ew7KvrR27yOh1vxbwXFuEM7wCWiJtgxHY8J+sjjo3p0uJ+yL6Nzi2qTWLZjd 6U8MekTCtN8Y9vapou+ZAUukg5abRbwH1OBVkwLU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3B21FF806E5; Thu, 18 Apr 2024 06:15:09 +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 01750F806D2; Thu, 18 Apr 2024 06:15:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DE388F805B4; Thu, 18 Apr 2024 06:14:23 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::600]) (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 61B45F80236 for ; Thu, 18 Apr 2024 06:14:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 61B45F80236 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=P19UObev ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Use11NmyVKk5IYCx/y6ttl8FRcumxTLTfdYirJbVkIJ4TrKksHHVJNFQbtX8CIuOMp2KnYLQQ61JTYIhCv5COmp81oqGqT6s+6YcLeyCvqfekFHngh2M7ZG0z0aM3jfMGJYHRq74bd8SwV/bmHHUbyo3fmwY8Lt+/u1LI5MJhRv4MfwmEnLwoyJAcicqh2TCoURGeXaR18XeQekjIx9CPuxE9m91mw8F1YNppE97hAXOdryKeZ6l/AfSQ5ZChZN66UI8Gl6cxTMR+6GVUYxfafq6HId9ae0jz3OPEKDg0lcLDXICd0C0sm6PNf8snI+mTyYgUzdwWmwwOCLKpQ59PA== 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=a0dOwLQbiWSj/npH2cmb+Ck7k/lzeXjY0mNBmAUWL3o=; b=b3yfHrV8Mk+GZFH7FrLRHTnLkTmnMTi/w03wG6LZ79vK6tQLhL8fZnWCqJmRMDAZGEoJrI12AnoLDLGiFAMp9m8jXczonVjCAoEFn/wUIa8numAf+6vDksPEUtwZARnVmzm7UpnY2RBcJEP7kAL8Eqn857pYdH64JNoBjtdTtenG6mQDRh+N7OILen6aGSCjluTqcZ0whwH6c+A0YuWSH1VDILjSnf/etDTqRKEJmswBpHg6VlgNkz+kI93jrYu1DJIwRWaZUkuRmoKYpWPJbHe8qjXjErt8mndHtEmqMDH6warR4DrLfbYhv9r7M6qLeVBolRX6KXD19wH4vH90bA== 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=a0dOwLQbiWSj/npH2cmb+Ck7k/lzeXjY0mNBmAUWL3o=; b=P19UObevhac28JXQxObwJCTVBoN/xX+1Pz5UwzRWxKGBHlvJLA27olE6bOzGeHiyzo2u+JbNLjcI4M8XgDLC7e/uLKQBRrFZh70vKvIiGR4BA/gW6pWG3hERs87k0NQH+eVtLoTzeFuQiBbfKgIzegSieqGr6832yacnddglioU= 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:14:14 +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:14:14 +0000 Message-ID: <87zftr71ey.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 12/23] ASoC: soc-compress: Replace dpcm_playback/capture to playback/capture_assertion Date: Thu, 18 Apr 2024 04:14:13 +0000 X-ClientProxiedBy: TYCP286CA0008.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:26c::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSAPR01MB7397:EE_ X-MS-Office365-Filtering-Correlation-Id: be1e9416-f0a9-4c64-ebe8-08dc5f5e01b9 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: MHxJ6K0EzT4BhP5yqG83VjekTQ3K5FKU0/k+MJzCeaEs/iQPOw+/7iY5pG/aWjUHa8K2cwbgHaKGU53QoeMhFlvYXrc+gO7OGXnugksrHgOE2L/JwoVehpXiF4Hrh5Mm4ZEq8l2y5hliYJPgFqHqalWnprmPeulB1/qiLpQCp9uYO3MdsLtxj9JCNNk24lAHlERpi6CqYQGZlsr/Bn+0H/ie8dDu9Rd3TeXXjHaS0OmIvwVpE8x3a++f5XXLTa8Gn4RF9ZrJce8pwKit4z81pkGjlyxfEhpiRau8mTanhB+8exR37+S+J1kqDSBZw6rU22pRm8t6ljnGxeQjZxa1foik3dMxCWJnNkZR5RfmwwOiLqn7XoBUWG6o9C3CPb6ombwRvAyZ0iH1gCi3EHeFyz/xBLGiQqMa/coNNpWEs9IkZ+7dZS+aelutZtnqPyygRRarujoaih1rY2+1MdVtZuj8//yzA5JlvavO3rdTZwujsJ2QQPlPcNZLWI2g2jv89keHh6+ZNg8w1/L3NKY0C2dYKceYr0uXcniYdZdUG01EYca4MC3KlrVvsyGCeuZFYpzsNWVSSEtKvZUeeMABi5JsMpfIRv7Rfco6EbmhXzTZNZbDFkpsPNvuOSyTxTo2PfXVioJjdhNdfjFd1wYVR+ckTjKxiYl/oZx57wurdGlUvRmC9uvzsyZHoaUi7EqjeWwpMhdJ5dmI9NQB5XCwxzeomYSrHnC+a0YqDWApLRA= 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: J5gnfMWCKXiXbo0+2ztBwCX73Vj+VSKTE37jynKhlCfK8Gsy0PdEBpJv18+HNPXEUYE2g4Bu8qLOGR2D2III3Qf3QZRJEekruRcP/jfgK4epb4i3M1io1j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SS8FxCgpmQX6MCP6gQSs72eXntAyFmfl5aRbrrtcF2XZ7jz6jmPMZRRFp9dUMGSYUL9kWzJJO0tfEUTCV34p534Ynkuxm8xMBbNdfGXo/Ro21+b/FhghVT+agX0DBWE3zg01goB+K0OJ9Z1BqPH5xtvBdLbY+eoj6mOZlifDMkk4Y6EBUw+5eoE9oKqg6C5ogtQkffFAGnUtN3KA7Hj8gZcdUeeL2aRFg6GKRsxbZs2SSvUQY2jdvvzopMxbEA4qzLFYohr/ArrRxBzMVu+G7bmQvSTIHFbtcMRK6C/XlTqze9ijuuEqqy7TVjVpXoKClsmgXXqHykc4RY8RwdamSsY49MQPUJkoG4O5RMTW5xxHk3jCA2kEo7LKcZ4iPATbGm+EVz7Ec16ffeboHVIUJ+WxmVsuCAbudkAGFS1PNe3Miow+3kLmK1Fjjlxkm8iLUII= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: be1e9416-f0a9-4c64-ebe8-08dc5f5e01b9 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:14:14.1335 (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: gPDBqitxHKGC1xhq8oRZypTI7xgwhBKiJxF327HoCD7mEiZa18UwdTpngqRhvBtNQS3Y+Nc8ez1Ypg3ycAljPEZPLPlYi/HdaJs/O9r8YOLnJdfh5FflkCeVdkp4Ytfy X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB7397 Message-ID-Hash: FSEFXVY62IU326XBLZOI2DTIDPQSZE7E X-Message-ID-Hash: FSEFXVY62IU326XBLZOI2DTIDPQSZE7E 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: 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/soc-compress.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index e692aa3b8b22..347189ea30f9 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -610,8 +610,8 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) rtd->dai_link->stream_name); ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, - rtd->dai_link->dpcm_playback, - rtd->dai_link->dpcm_capture, &be_pcm); + rtd->dai_link->playback_assertion, + rtd->dai_link->capture_assertion, &be_pcm); if (ret < 0) { dev_err(rtd->card->dev, "Compress ASoC: can't create compressed for %s: %d\n", @@ -624,9 +624,9 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) rtd->pcm = be_pcm; rtd->fe_compr = 1; - if (rtd->dai_link->dpcm_playback) + if (rtd->dai_link->playback_assertion) be_pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd; - if (rtd->dai_link->dpcm_capture) + if (rtd->dai_link->capture_assertion) be_pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd; memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops)); } else {