From patchwork Mon Apr 1 00:31:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 784865 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 23364CD128A for ; Mon, 1 Apr 2024 00:33:04 +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 75C211948; Mon, 1 Apr 2024 02:32:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 75C211948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1711931582; bh=XfQ/Gf0iqHN0LHI/gSaZgk1OmFdidkxU6r9s3zicDOw=; 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=nypmKIDlG/JolDujL5szPieZ9pv/s8jrnIs/bFtjqURHwO+cFCzNAeIVL8BW4oJa6 spmDjPaQgAxDkY9wtBb6mSU7SIXXGtqhz7lG147lsPG2mfd4oUNrMKO6K3aaWPH1Iv D8zNTpWPssWkNL7vwGvT2N/aHURb0cjsnj9S1EW0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 872ADF805BF; Mon, 1 Apr 2024 02:31:51 +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 B6FC3F805BA; Mon, 1 Apr 2024 02:31:51 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69D53F8057D; Mon, 1 Apr 2024 02:31:45 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20700.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::700]) (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 ED204F8057F for ; Mon, 1 Apr 2024 02:31:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ED204F8057F 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=bOoOS40T ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FXVmg5wrNyhQiPcyMi+pVlyYxaTLA7ChAEiGG2IfUHSY9c9IDfFcldr3B3EPTZYu4p6bwufHH2MHDcDakP/TXM4NF2/gfG+adG4+GYVhigUN89YVfrvaSv9IAsdARoldOfFLtj2JlCiZ2Qh5UwuqfTR2FF3zsEyaoTPy+q6jPPN3+L/lpTj5jsyj5Hj/8N5tD2k43sBS0yTmpOeWo3YnUsywqtVpbCqvhRi1+wqETn6uj5GufwDzWf6x0Artcl3gy1Xwc+CCRyvhgJzgb9WqErVUFCz+/CLbYRNRQHNiD3h7VdL0r6dOepf+6ug4JBO55FIYG2BBahLBpnjhbOzmlw== 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=c7P5eVuTinS4Z/q4ZEULSNv9I1XS5DDdnlX1GbB3ufI=; b=HvxHFSc0Kuvx/mUSoRc3hkys/r1maCwfuv6PFbyLrDBsmBH1djRs7v9ZQSHv54S0HnPHPazW8aBVR3ZWjQle7WTvA1hu/hfSycEbjXDvAfrHgZGSfcHIRZ/jmjTH9W+N+Qd7KJDydoxgp/NbinbejATGTKNld6ZO6yf6lLQbe9a2qVu0VMTm+QuPRyJMhg+xoO4XBgqhbvCIyqBGsENpNvfsIkAt20TBInSkjEbR3GR4zLLh284ninUmrOLPV7AmWp24XAV2B3XWMc22/l0HzRDthoWMKavnKGZQVm4/jijGgVHfCzfs6npvYhNwghNiOu+RmB/SZwVopqn6U3Q+GA== 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=c7P5eVuTinS4Z/q4ZEULSNv9I1XS5DDdnlX1GbB3ufI=; b=bOoOS40TInNgy+YjKQ+D45Q70gZ7EiGjQl4J0oT58PEYQBc70MaATXWOrQQF4vKaxRcl8wvBlfuYAV6ggQfSs610Pt5oiFFz8aSo0RDlu4sB0iuc7kXfVBew9YDd4fTHN+L6w/fB13exv+38JzIHmTxydYu6VS1/qLpwJBuawyM= 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:29 +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:29 +0000 Message-ID: <87plv9udnj.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 07/16] ASoC: samsung: Replace dpcm_playback/capture to playback/capture_only Date: Mon, 1 Apr 2024 00:31:28 +0000 X-ClientProxiedBy: TYCP286CA0017.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:263::7) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) 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: di+UzPuC984kGyuoQYI9UBe/RddwiauXfeg9qhXej0RKcc3noE64t2JFcq/OIKmsEV8ROux5qW9Qtke2sT/a6N9grJkwsgNp1pqNy+TkiUAZEpXMlfG+or6hLZy2bg23tW4j6IBtJZQaUYWt59E/gpNIde9688Xha1ptsS4gxRpv8eaZCdzl4jiQjdCEMcpLXGiTP8U+H35tk9pncv7PltmtanqaBTiTwktZXaegPTaqvWUJKJr1VYzvzCNsawUKhK0dAstt3GIrOevYLgjZfVQQs5bltcN/37evWMZcKuWf3fCqhsitId8kYtHtnZnqo6Oi2kcKmX8WFo/YFolGQE46qTndHyBov3hMEBvRaP3XlnLj8GivEGvMyCnSUgTUmbFVYLm2drpkZDSyVFPl4heiMEoImeV08/SriByRRAHyOqDSAcURpX2rFe6/GgiOipbADtrwKd1cH6ALSeNbhM2/9pcktMLKGVMRSBoBqSzhj5wMq0jGdDFJDA8/k4HPFp0RFyjDCeGDnqX/ZZb4G+lQVJWYy0FwWdrNnulK9R2taqER5yhSr/XD/4jvo2EuPaIyfxwENQETl3RxdtBO98T4ATyFrypnXPRx5uVEerzP3wLX/AeyjPPGlQJ4A6fD83nsZSI6BFWwUNjPmxSZOs32rK+4FmrC5WqAYNwyEes4EdN7s/C8d3K29SZmCIJBx/x6dqIkYR5pTdcdL8jAfhXcf66k25RTc6+rYGo7Jns= 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: b4+kK7gninYdaj5rAV1pNfw8GjVRN0GNkkRo8vNqgFoWctFKmyCBmlyL4owHptO+OgrWlzdxo/GwMdRGneR1qLpGCrOCp2cBelI+zFKeYrVssEUMuDXgR3Me5+Jy50HYVPcGs87DUeHwA6U7fSGi8Yror379e8Kpp+hOqceX7z9ryi8kNPi87PdGTHJEjDnD+XyKjPciZjb7S2F6RmS4+gRrjwrWeFeUjsOP5VtEaepevzhSvnp3RINTzsmrmVObRRjJc+4Qkw1MHAHfVak6caDT4FxYhB16+lhPe87oYB6C/f9L4+RLi50bnmg/utu7ytpT2Apk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aqtaL1P/jlwDWWMtIyQnJhBbby6AFCsHjaD00cwhYuVu1semukgULwVBacyBdqqJ+pf3amy1dJWgX7Zt5o1np8ZYfelc1ydpF58ktzIhgspchlUFhbNak4dovKd6CkiXdcE4srnTAug13RKsvE6hVWP7oZylDrZVd+S7VVSCpnMH4zi0G/ovCB/DYJ4OnkDM5DXH3IO1I2u5GR7AAQgBRTUU3o= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a04948ff-f22e-4fc8-e138-08dc51e31297 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:29.2799 (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: Gv6CDsvmxN5IYY3wVduFX1VUinQ0bnEUrBIceReW5R9nF2N+7KaBt8gJbVBNDYVcq4vwezZeZjyLMDIxY3TXjvuIRudyfK/jfnlCNJZj3hk5sT2RjJd09jAQOhqEwugQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB8258 Message-ID-Hash: Y46L447LBBU2MKWDGPZD3HM3OFHKOHLA X-Message-ID-Hash: Y46L447LBBU2MKWDGPZD3HM3OFHKOHLA 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/samsung/odroid.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index 110ae14dd7ea..6cea197d62e6 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -171,25 +171,24 @@ static struct snd_soc_dai_link odroid_card_dais[] = { .name = "Primary", .stream_name = "Primary", .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(primary), }, { /* BE <-> CODECs link */ .name = "I2S Mixer", .ops = &odroid_card_be_ops, .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, SND_SOC_DAILINK_REG(mixer), }, { /* Secondary FE <-> BE link */ - .playback_only = 1, .ops = &odroid_card_fe_ops, .name = "Secondary", .stream_name = "Secondary", .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(secondary), } }; @@ -278,8 +277,8 @@ static int odroid_audio_probe(struct platform_device *pdev) /* Set capture capability only for boards with the MAX98090 CODEC */ if (codec_link->num_codecs > 1) { - card->dai_link[0].dpcm_capture = 1; - card->dai_link[1].dpcm_capture = 1; + card->dai_link[0].capture_only = 1; + card->dai_link[1].capture_only = 1; } priv->sclk_i2s = of_clk_get_by_name(cpu_dai, "i2s_opclk1");