From patchwork Thu May 30 01:29:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13679618 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11010001.outbound.protection.outlook.com [52.101.228.1]) (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 B64E4134A9 for ; Thu, 30 May 2024 01:29:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.1 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717032560; cv=fail; b=pgc5HPZG/JGxLr3AEH8DD9lkC8nJwZ4V6A3Q0Iwacv8gb7C/SbXTjnUrKJGzD1n6l/dlbu68ja3xqFJnbiF1jtvgvmgxlaWL3ZzzHfCX/4vlsKprbW3C/MtQIWN7uSjI42l+mdpnCDlS/+eyN7OhRtbEYbBgGhlfcKpIBivLZhE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717032560; c=relaxed/simple; bh=bfl/JRU0+6fz2tWj2ZPZ6QzVeJisjemnLUSb0s+09Ew=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=edajsJfgdmoWjFygOnPGgbEJSwquEmN+v0EzkVBAvdXVAaKek9ZOrvDigwHPCqxt1z/ATULQ0XEmV3MhknaQf5bVbrKlodS+gvuB1RYlpPZjo1phToezQEBxkrI2QdE+46FeWoc3DfqAPMB46BUYiF64a4iC65mzHh7EPoKf5WM= 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=Z3gnyfDW; arc=fail smtp.client-ip=52.101.228.1 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="Z3gnyfDW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ie0pi7UR+kyRo3snePKK8fwXidogb9rZBMJpiBvw8PdKwvfa/dCAtNQMvrKf0n8GvuljNWEZqStltPQQnIdkbbXnwyJtzhuEDeb3ThTtDlP/JfxhsmBzVTJQ2KCTQKta4ZKhoz3LRc7xSuonuwm4LLwpAlWTTwb85QRuZRFPIP+EdwRasZFCYK4Wf9956GuJ2nQbmrKdTrOkglJ29nK/m3s+kdj8GhHWIRT5uYpa/quAkznTsmi+Nq539IocESHK7Qe7pCj7fvOlMCkNfSCDNxwKQAxDIVkO/ZyMJ0XMh6zxD1Tokq7D6l2sx1CelGE38atiK07h3tOOzljVL7Jyog== 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=M0EBnAAZBdkDfxlXMTl7cfgx8vZN92k7oH69sZV7pHw=; b=k+plAaUCxT+ALyrLdVp3tHcEwOP6KWMHpqcv5JIyj2TX+5kmDOXYmdHNXmXlqR2W0fdirCgotVRpJp7m2R6LezHfAIlUHtcaNpBFzd78gK+d2826IuFufaatcACeAd5wG7YFJfK4rQnp3mZAZPRRbc8uBcWvxlYx1EUVBqI6F4cGfy2u9vWjKYT8WXNkGRlBw0UCyvgoiENSLarTFQne1dNVhL3I8HjfYCmHV3UaP/7MCuE+NvH/4P5seqtIfvDl/7AtE7aC9a/k6JHYgKIMLMWYYu4h8nlfg04MkW4AnGM8oojLw9cn1ZHrebgffgsWf98ydxCkT0UEAhz6afOZUA== 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=M0EBnAAZBdkDfxlXMTl7cfgx8vZN92k7oH69sZV7pHw=; b=Z3gnyfDWcyTqEmJonCs1KS/jnKaC/WPjJvnul9/3lO2Hqo1c2XsIixXv0aehJIkuW78aKC9PD98osHOxq2T8ZKjvZKpn0YSfOQZnXiColNUTuIhrcpH4MH9WGqR1Qy9sB7CGjhZMvdj8iSXjZxYADCRU+OCK/aK3ENNnrlCBwPI= 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 OS0PR01MB5524.jpnprd01.prod.outlook.com (2603:1096:604:a6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 01:29:16 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 01:29:16 +0000 Message-ID: <87wmncozo4.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC 05/12] ASoC: samsung: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 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: <874jagqe9w.wl-kuninori.morimoto.gx@renesas.com> References: <874jagqe9w.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 01:29:15 +0000 X-ClientProxiedBy: TYCP286CA0091.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::13) 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_|OS0PR01MB5524:EE_ X-MS-Office365-Filtering-Correlation-Id: b572e3a1-1053-438b-a44d-08dc8047ebaf 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;ARA:13230031|376005|7416005|366007|1800799015|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: QELEQIQKgWsrhH01axNYQZ/qx+Q68pHRE8XyPaaJcBRh661lu857pQEp5hMb1bhA4CeCR7eKWTt4EUcjw300ZFi/Mk+D6wxfOpKe1rFIe296WQoMDAesH4B1b2xBDaeYIadRfMstm9J6oeJUg5Ib4GKt4WTTqR510+oKf8ATQaRcUadZrS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0TQUMGrOOxaxMc8nGhdaZE+caxmZ4ghfWSCSEr1RlVJZfOvBE7/OOoqIq35e1SgZqZMi50cU6c5jZ4gO2bTYWqkPjZakj3pLJAvv2HPADsbXFO/eyFbZ+FyjQpkTrUvNadWjBbqRupOZKge8= 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)(376005)(7416005)(366007)(1800799015)(52116005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7T7uFmW9flNT2E+GvTfGUHsse8+BhwSMb4kl3/Dp2g6yANxHP73VC19oW8CodC3QKpMkS65mIxqBgctXmSVZdaGCKA1owqVSH3Rk0UDvoID7fkIbKNQ+E+Yf4P+HUa2tjAu5M2VMscL1nCF5H+FA6pr1zkd8O+hUXhMAHW4ZWIJ6P7OMwskOJpRZNgfC9O2uuxWH/0RWETbCu8ZTA0dTJuT6FbEfrb3DoBIbFfVqXDL/E/sdaSgAoOJJ+kOc6TJpigOmFgbGxRW26n9hr7Z1/yZPf1iBxy+6h5gUL1FEJ/m43QBFMq6q5XREDs/cL79iLS0mXBihJ1fvSd2jaPZQw8NUMEKjjQ+PmBXSzZixxWeO379ZwoEJH9vu+ULj5RmfrzgqimQKER1Ha0d6s7N43g/CUjwrodYwdWWEAbHwp9IexefdAqlIXR1IH5eKHZIdGIaT3r8q0iEauMDlH+rWsKjAGMPnynrAqHrqIbH68xZMh2SX1AwxMVt1DHuym4XEML9EzG8iL9k+mT6WF3gkGELxR5iXA4Hzm4BMFKJ1ybmoCDXc1Bq9mL8x8Sxzmm/ZMoTRbQCmmODshu3LBIkPmkaxwVFz3sJwOzNtYkHA5MavfqkSPlXR78gWao2R19NnGmB8QgtI1wXzAVGCLU4QbQ/rSdoGloQMmenRfnefVH5TWHdMxEKPlJ3k0B7/EOGmfY+XlPdanOx7sXsTv3Aa/ZuDEEZzJsrVuvwqchA9KScA737axjsf4Nk1M+76MJy/MaOOoprLaiyaCE4zPQJtSWM8V3zhUzmGCWWRpbYPB32P5FQTgHYBxnPJNO+YINQe3uthEqTAVotEu84qX5OMhyop024N+T61aB6qiPHhna98HlIQdDThegoRfFswp0UsJZFB8rbgN5Zk9UgdVuD060UOlr4Ic4IWnfHv/U8leX6OVRpkpLxrmpE34MiS38HhTN9nIkRlG7wndlmulK+5vkjYQ4bBEzujVhG0p37WpUXF7swYkjoa625cqMRdfoX66InvUYcGJPrg7FLltA2utUzvVWo4yBkciPnsJSlKPuHQ5oQikLq3Gv7ZAG2ALLT3pr9osGFl/niUUFNumsgPK8rZFlnsMwnZ2dosmDI+SNTVjEY3OH1hHofrtJhcwY9XtX7gZQ8zJ8n8HrOyQwK7346mik2Nhj/e+bAD/7tuuI74LLyiKGQ7x/ieBNyXbh/usr3raRy47nmcqDvReXqiQkaqqqaMcHGD7Uq3mmgMhcle3H3pZXwNWWpxFVgle34WCXMxmGhjAcqZXUvW7pOmjDZmQg9k03GauT7Bjnzd0aOpI4PdhvMCDjLfRMzugLN8YCO4wtdy2SGE97PCBmVpOf2efvwFhBtEdOTgYYeOj9xKUASbEFNohzrTBEaXpUY+8GTncYF6sf/nMYZt/dTtAmwOG1aLTuScR88k2GXXHkNEp//HVriwTTjxclwWf9NoIh7lXDrIttctCvuihOYTRYarkBfbqu0fwbPxnXcsAzqYEU2EqZWaGpAPFMRonaMRMLeXgQs6/zjji1KmPWmmBCKmc6xsjb4XugeDFPc96NAzk1PPizoXIGxjqMTK6NB7rAj+vJcLmp8W22ROZqAmY7aDyHQeQjyZ4N9oC1r4Bj8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b572e3a1-1053-438b-a44d-08dc8047ebaf X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 01:29:16.6590 (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: E0tRFgbhaNOUIGLIYVKhNr+Ijfp/vaN1jsyIZHBRgIhYtEnFbWfu1SJzyxHfaQB3GHZcmbZHgrTjRIXlA9do4UM3n12XpamwO1jme1b+eU/19cTzjm4XUthd/W0nbxFy X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB5524 dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/samsung/odroid.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index 110ae14dd7eac..8489bf4dd0704 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -171,14 +171,14 @@ 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), @@ -189,7 +189,7 @@ static struct snd_soc_dai_link odroid_card_dais[] = { .name = "Secondary", .stream_name = "Secondary", .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(secondary), } }; @@ -278,8 +278,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].playback_only = 0; + card->dai_link[1].playback_only = 0; } priv->sclk_i2s = of_clk_get_by_name(cpu_dai, "i2s_opclk1");