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: 13612380 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2091.outbound.protection.outlook.com [40.107.114.91]) (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 0C5B87E1 for ; Mon, 1 Apr 2024 00:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.91 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711931493; cv=fail; b=BWnVNp3Jtl0Ft3hYhu/v+Gjvs8jsq32sNPVSFXvo0TQTER6cbsYwuyq0EqHMj3abxJSjXSPh6T5dKsBAzwLIcNRkqzQpqmAI7L12b4V7l/FM2YcL+rDlnjXpBqW6dCAy53iaFUko3eSnxbdxBthC7uXzCOxXMhP4K2S/n0q4ZPQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711931493; c=relaxed/simple; bh=XfQ/Gf0iqHN0LHI/gSaZgk1OmFdidkxU6r9s3zicDOw=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=abYL2jhAjnkzLwfU8zavRmskJ/sVMgp3eiBWZvZ42b+9bhQuGBH3XkhwKEpX5ftGko8nQCTrHQUMYT+pASyEKNDG3oN1EpWw6/J5kwkGxp5Xs9mXGtLPnRsoKHLnLli+erdPSs8I1a0jaX9Vo3Hx2/2+agxjHLnP8+gjBrkAF84= 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=bOoOS40T; arc=fail smtp.client-ip=40.107.114.91 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="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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev 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: 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/utu7ytpT2Apk434W1xShtUQQFBa+ogWCHVat2q7r4OZsgfisXmV7Vp08XncBdAHQjHTUMl0r0fwqg85sqFv8/YOr8g1rvvN20hCsczct2vqt45+fXqYQveDi7sjVWgWrg3yrRjEK0icGwwIOP2w5CzDHo5fMBLwDxRW6YSVy2V3qHpzKIdZkL4/Vjva5hOzT4qTvo22vwhe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M5DXH3IO1I2u5GR7AAQgBRTUU3o= 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 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");