From patchwork Mon Mar 25 04:36:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 782690 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 AC5BAC54E64 for ; Mon, 25 Mar 2024 04:44:33 +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 E50B714E2; Mon, 25 Mar 2024 05:44:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E50B714E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1711341871; bh=G7Q7w/Ss/nQN6wmdkT2Xu2nhjtfxuqpUea4yFIfT3sQ=; 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=gm1uHyBDcs738EWKgHEUpmNkJMihrUyUX/XXlxgeMtyhNjomLCDHjn5cavecqKXm2 FKBHJoDYhVTMify/1e12OaTEL+0iaH+r0RlOoQz36ztzK0pPUDB+bfBvrrP3gL1/hX RKoA0qcxsJyF/+lcoyButH3UqE1T1KQOQ6dcobYM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 94EA1F80654; Mon, 25 Mar 2024 05:43:06 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 3AF82F8063D; Mon, 25 Mar 2024 05:43:06 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7B5FEF8055C; Mon, 25 Mar 2024 05:37:18 +0100 (CET) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::601]) (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 7E178F8015B for ; Mon, 25 Mar 2024 05:36:38 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7E178F8015B 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=aZujubCv ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PIPt/2g+h1Hc7QmtMyDfKDb6XIa342h8iZVeln1L/vKRk+3jY7YS7gKBY/OImI1PRUmFNBB5wNF+jv3mhEuRfgiz6gx/GfzPm9iVa/cbB3JAiowQwsr+L1H45rzonE8MBaLrifLh+TLyi8MU87olwQZiku11y3JTZ2Qez58yQ5g80qOKSUQpYSrbz/g8KPFw9m1fY5aweAQBXWphIqr+Sf+8mU9d03+baqxbMaJ7RdccJHAQpudHaWFo6pF+tmWZqnd+n0OV17UlE8So4cnnBX7/d41vhbklqOvK2QrggcRMDPH7u1EVFOWr0KCY1F+Mvil1NShcu4T62YfzZMgsfQ== 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=9EWyQeR690weBVNGhlFiX0+X8nFlopGtJM8dti0LeNM=; b=HODe2udzDKrIOqKVRLQSyI5mroKNiXFTVlo2hOo1qH5kgwRhiGmMxHDe2YKskmlTEsy9YDNkHJ0Wf6obKU3uhwNAvKrHDjlAVu6ymXalaYPQZVHgkGfQDcSbLnOGFIkkyzPj4L6lc2/VXtMuJRloivDLsBBrt4GX7YjsaWAfSOyn+EPjBFx7FPXMJdUy00mPfxy3INPPnWCAD6kAHMUFJuIOZEiJT17U0K1TkXh/OnJn88Fp+gYxzNdf9u2Y9KylWhpFpYhpR8sD4kUiNfQc5u34s5tHHuv1iAs3npcEFYAOpKb1B7OMp9TiqoCspRkHk6vWwmOQDGAyHCblvQH3Pg== 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=9EWyQeR690weBVNGhlFiX0+X8nFlopGtJM8dti0LeNM=; b=aZujubCvc4wanFhuagsqe9yy/WyFgOQCzOKALi2vVkxbbU24txaj2b3mABkVqIC9y2AIc4AsbMW52RSexR4qmfWfoE7iFa+2bdowYiJYFVroUrUd8/lV0NO2kWCz+doaAhk3bSM9HajYup17bDmKcXiOHsdIV+heOBC4GD3tH7U= 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 TYCPR01MB10698.jpnprd01.prod.outlook.com (2603:1096:400:296::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 04:36:33 +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, 25 Mar 2024 04:36:33 +0000 Message-ID: <87il1b53n2.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: <87o7b353of.wl-kuninori.morimoto.gx@renesas.com> References: <87o7b353of.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 04/15] ASoC: sof: replace dpcm_playback/capture to playback/capture_only Date: Mon, 25 Mar 2024 04:36:33 +0000 X-ClientProxiedBy: TYCP286CA0057.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b5::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10698:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d959bdc-08c6-4aed-831e-08dc4c852639 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S7GNRZ3+ZU+EyQ/MSwwXPvx43pE+bgSCDhQ/czJVtSb87nvsu9JpuAGHwDeEVTT0s+Jq3OW9Dr3Ph8N1jKgeSgrzGTut2CSi+YLxljSoEsAMUuF7vLS7UUFDqW7j7ciFmXPD4g32oMM5vBlI8hyXXk46jDlRvAnERdK38R0lTgGwvShVMB5GU66fokNV/koH5JRDoBdSkYFIi1uIS1vIsaqo0nukt68jCEs5TZ6k4PJn6+yqPai3sdy99KWQO9MWwLlYTUTXfb98ezs5JFt4LRY8qu9OWgqXRtYSrleiVDUwAM9SnmFm7Rkifeu97eFbkVitpZ0e4jYtMWh++oEU2zoqHCCTgj/jpVdJRHtSvd++qJx9oHq72n953x/Oc6FPyxq+EBf3e9br6qBKg8MbADCG8i5AAsntuqhqLgk8+1JFMTFXXBkABKKhKkHfwO3SQFsY3mXm59N25vDIlPfDIdOC7KcFS9RBeJV7TSDAfBKu0wjRx3miuu7e/inmUE81Hqva6OIC9yq81nrlFGHhxjAdkcuyRYBM3gbcBwFgVzOqwXKDpFkl38Zf7wXz7b5PYaZn1D/eB6kl1djSJbK6lguHnIQLf5KqiKUxmgt62SO9BppaOYFd9Ad9sYGiVnf0feAUC89thVPB99o8eY5U+F8eTgEX2bvdiIUR805a7N0Cf+GKcesAyzfHuYPQjgnETqd06E6gskbwZKwsX8BtQxgJt8wqzDe/j2yE1GALBLs= 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)(376005)(7416005)(52116005)(1800799015)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jCWVuJbvQveuAtqePIHnJGkxITU4W2vt3+gs0KBYqPx1Sjl32m0Y9gf9h7Wr67xh4E9VnoXSn+9Xrb4l3BNvWPDdGdbWZ/cyMV1mlSVmNIXCYmMKq1UCkDxYVrocbhr8YA1RWhSlE3DfTH39oTNBTGKjT7bllIZdEyxn4pv2Iwg2F2i2nAfFLar9qHgrvaMG8eFdk1qkQgFQyZq7AKMfZCpIc0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fQeUaucupM4Iz4NwvfX99P+q2Z7sXPmgpenf95LOjxSbNRP8VBjEm+FTPY1ysy2FNCaF0UEdv3H6TghskX0G7+GrMNXAKm++7YNXGpQTnvFJCz+xFAZF8BnYo7jPvBG4aDaHEJaCucKmT6Rowh0rf3epWfhHw9sRZLt+Pi0orOsvxsL7yZI0LFuBTSI6msQarQe72DBf36ylfVorTIW4d0uWsEwc44BhN8KF6cjwj8o9wdESgm4ORSMX9G858blhNgHhbpBq2s2NddBTi/Xjhnx4H6+tppM4IaicGdoDfASdBVpiTa9KSFs/mkQQmoGOcyY9XvX238k2eotGqIq6AeBZJTY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d959bdc-08c6-4aed-831e-08dc4c852639 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 04:36:33.6157 (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: TjPRh2HtJzf1yt41iFGKZmaf0zsF5HYCzKj/MmUfQtgvXDYaowOU1i4BvhDOrQiDI3PkfQhz/zgxNoO+AKJ7v63Wfo9GerQUFgADeoFR++1160naaMxhVgECr23K7e4a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10698 Message-ID-Hash: FFGDL4WQM7ABV55OPSCQHWQRSHY4G7DX X-Message-ID-Hash: FFGDL4WQM7ABV55OPSCQHWQRSHY4G7DX 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. We can use playback/capture_only flag instead of using dpcm_playback/capture. This patch replace these. Signed-off-by: Kuninori Morimoto --- sound/soc/sof/nocodec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index 34aa8a7cfc7d..a0105c31723c 100644 --- a/sound/soc/sof/nocodec.c +++ b/sound/soc/sof/nocodec.c @@ -55,10 +55,6 @@ static int sof_nocodec_bes_setup(struct device *dev, links[i].no_pcm = 1; links[i].cpus->dai_name = drv[i].name; links[i].platforms->name = dev_name(dev->parent); - if (drv[i].playback.channels_min) - links[i].dpcm_playback = 1; - if (drv[i].capture.channels_min) - links[i].dpcm_capture = 1; links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; }