From patchwork Mon Apr 1 00:31:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13612363 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2090.outbound.protection.outlook.com [40.107.114.90]) (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 3B412633 for ; Mon, 1 Apr 2024 00:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.90 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711931472; cv=fail; b=aTidMtUNqCaL4MyZVFS9iTSYgXcoindQD1I234/7Vu8OnG0SUgYw3rFRnaezG1HaFAQfEt/jvc4BmZkQDQ8wAbO16fCGmJCMcMuhjYCa3pktw0uE4qGgzfgPL2SFOCcVf1ly9hLITc8UYWiY0jEnqFvAniJ1kJsfmais0DAHqwE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711931472; c=relaxed/simple; bh=G7Q7w/Ss/nQN6wmdkT2Xu2nhjtfxuqpUea4yFIfT3sQ=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=tPR0sSxgamqpl9NSm1qY5jgXwsKr0b2/pDex/WBKq9Xbp7a0ZOFY1lhET+vkM6OrGjLCW03hIjf3RzpK/MYSiXjVBAej7CtCkoVAzVPisxZhVaeuRDssSLhE/XobBk4PcXCoSBqvyn9vTYk8Ba2O1WhXxmjljj1Ntq1Q5J7XSnY= 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=I3tnTkx7; arc=fail smtp.client-ip=40.107.114.90 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="I3tnTkx7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KvSYmjFBrcDZZlFdcizDdINYH9EaqtT5PwG2ll6YN2j/fCjSJESZIH4qy/rjmBUFVo1cuVlnw8GXWKEt6upmUtlb1yAjV6/ulOH0KL5aaPxx7DIGGvGMLe/ZKXKlaDg32WW/N0PZQi+SAKV3hAHfl1ZUYj0AvS4gGbMvR4YbSsAprBRHMc/M/PPe5p7DP/EPKhIhBO1S7l6LIoJF/THAK2N1dI8gEC9rTBWgjp7TZi71HkoT1kdDSbYSk9imWDUDi1UES0gXlTUn6xfIO1Au5pCFYBagbzp0kweVcLQRgtj82EWoegtMuV9PXxH1ljAZ5BTkHCqgf4NIT7ph12WeQA== 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=NCoSSqOFM9rOA86O8V1pnR5fZnljWJ3BvXyZ7hOPCqpYcpev2YsuqIcidtqu2/my+3uVZ4LzduXtBgQgYQSXezS0CLxm/qz9Hg98EvPy8xI0t8+x7OUm4F95Zu62WyrTVOFnyJlG/Jm0N2GuOl+vlMSul2e6Lt94FBrubnJKa6B+YaXgE82zaPAK2NySLquobKmScJuY0lR1AWWUQLo+xOHdxo0rtmW9jikDC0x3uhUJF6mfWQyLFQswvLCmj8zd7ljYFKoczofeBDB4cGs2EGeDq7wt7QObtaL0dp5N7238LkLusW7SNvLF5X11MCTqE8zciwChSp8Mnm+zcDGTmA== 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=I3tnTkx7yhAqePXSGAxJtrPE0+gpAkD0cNwissz0xPXUWUyKG9bMPDnZcUq1GL2FVYo2lQYBUf97I1c3914TtekIq+WQSSR+0Ca+pxusjHCKO4cIMpJilXDnOrssriOk9ydzIAD8hMwpmU6cGtVEnE4pLanyNSBHzIRnjcOfy3A= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB8258.jpnprd01.prod.outlook.com (2603:1096:604:175::8) 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:08 +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:08 +0000 Message-ID: <87ttkludo3.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 04/16] ASoC: sof: Replace dpcm_playback/capture to playback/capture_only Date: Mon, 1 Apr 2024 00:31:08 +0000 X-ClientProxiedBy: TYCP301CA0078.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::14) 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_|OS3PR01MB8258:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zMxdabLHD792T0SBEKGIf1WjWOVasATxDWFmCGGbueIY+s+nrEV+SJoBHUkLM0WxMTztCiyvZqyFm7y1/1tLGeyLBjvq7iNJhFCqJTi5UaDHfbZzoZorg3hhYtreevThiPl58oSG1aYoTKKNLLxpQmXR0nmNAqVtntdJj0S9H0phDnBVWrWbwMdNHqXKwnuEQ9Y8lcQQyZz3meKBBxx/g8brbNXIyvanMjyia/XmDhu/4Z9GplXc6Nc4pAAvdLy3hIO+vp+YO1tBqxmiMqaH903UXgQ5fTMO+UjAUPScmEMIkonJXo5xRjE90xqFOPseoABQ653ViVgH+2rCEL7eDzTfnvRBkW0FBLLsc81jPZIgFEWh47LCoLM3RCfSKgddViqnSHa3DNr1SO6eHR2nspOH1OStEM7EQVhXHOosqu2g8RYYvCPS+vJN8UKjJ4vH5Ss5CnvQ+1uAW/OBrLgJS4CwixcFgMx9b3QWe8pKU7gyZbwleXyIHnX/dpN9xDaqZ6bGyM/IYJHqitdKS8YxinHnn0F/MeK960zXqNSkuVykd2xKEeyjOBf1QHEDOvTvflnsS24fbzqUKXDcwTQCHM6pV7kjAKtecjmVThsJThok8hm2g4YNw3IJBr3Aw3a5bKnToepDFNCWZbpcUcES0IMOKOuUWx7R7VVgahMqf7O0rdKRuiFG2pb67IHkh2zl+aXYCDzaBILfcMmAYK4a7nEba6NqVs9/Wk4ZdYjAZSM= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9KrBdXX3BO56oBVWwcEGOER9neRXJGBYOhMHYp7B+cGZ9CMrG0O2JXE/nyat29wkAyAet6tlL9H2ejYx/sBfhWpwTkUQQONDJ0eVscrqxgzw5eu4I0YTDoRweBqxdQbUsoUxRvwhmbta5CCi0uEYr7t56OxOQH7++oXrfb/41mRIY8sOLuG4x6rdQ5d2ORi9IDLKIx5is56ZA09wqnUS/86THKBhmsZhnRtOI5OMU3NAYqI0sIdYTohBBq/98hfg2V1RWpSVTPoSFAmJfl7y8YQiNgyIUEIi40ELqgTn0AiQN8UQxtMpD6R3bfOHc1xeO/5p5Y7DsvlIm9J+7eCgtI8nixBjv2G9k/1N+OE2g3fiQi6HNNS+PYEBfhZ9NkuBjz19q/RYaJmGkBGQG1pDzLrOKdHhOhra4jAYddDljNAgPn46f8hljSW06Sf7e/zHA0YvU8XOWzmGOh2FlA14uib7OEqIVeC16+h7dRTJu/w66B7I+n2STbUafow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pYyqvfdgG8rh7RSf30nG/nJHc3F7K6nW/fjA6euNIMfFot1ffWjweCY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ed5cb8e-ec13-4c9f-20a9-08dc51e3065c 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:08.7982 (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: AC2skkfWwS7DBE39b5nSpSC/OgLzRmP9X1rVKl0SvFhIgasCIZhYUZCtCHo3XKhQQjpH4XmySLLSx3J0+aNkd6Y6Vd2aUfy7h5+mhT5FLvvLEtCSqjWs4QYDH+Idq0gk X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB8258 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; }