From patchwork Tue Oct 1 01:42: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: 832457 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 85751CEB2D2 for ; Tue, 1 Oct 2024 01:45: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 99170ED1; Tue, 1 Oct 2024 03:44:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 99170ED1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1727747102; bh=E2yDpIlOSLWRfFqKIwjn0CpIv0hlhF4TPKa1jkCNfFU=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Iw8iHKz93wO3umNO2UiTTGaxMtvlv7VT7DsB4dCF7rqA+U1OvFY6xkH5Uf1t8sUj0 ku+V9YC+6hR3Bp4rPauT4XCyFCP1/JFIdZWEcmhqM5VAqlAfV8uCrBbaD2Mj4J0c1S z3AFKjXpL82tz5H9KrQNjpSrUYILf3d/O3KSXooM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B2F36F8074E; Tue, 1 Oct 2024 03:42:29 +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 A2E4FF8074D; Tue, 1 Oct 2024 03:42:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3372BF806F5; Tue, 1 Oct 2024 03:42:21 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::1]) (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 5A0ACF805F6 for ; Tue, 1 Oct 2024 03:42:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5A0ACF805F6 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=gL/R4sts ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aHgWW3WoPvnJ7HwAoewaF+9j7VhbeQF1QT/7+kZyezYaKtCSVZ7MMvxMcEBNiAM/Yy1kmVFCcygzApPKdOmXgcwozGwpcoPPPWZucZDMBZwNWynxo45aEMJBR3sx+kcsaIahlH8r0vd2Ngr9Gz6/5KwfqMMDKWnhPrd+KUitat4B/R/qwAW3gbwZ4bZ+xVzXS4HvU0KsFLbNaJzCpOzHjPqZMS34IV1b0gizCpgGEST3oJFrfvQ5ved02V5+9rTTLl/CgJ2PP3ABrN5p/mGBZqcLZh3dIaSUxY+EsuMAuLV3fD8KkeW4zEw/QpuNdAvJmkAFaMuIZCqtCdHTYoUxhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=9e1RMc/IHEAH/sNqylWLLExISaQ39k5QeQNP3WHzdVQ=; b=m/kkjyGcNw/NXmnbFU/cic6VsMwfalllizC/Rd33FhMzOCXNP8ZzYjIFKLz2atyanSG1w9Mp7BityH1QZGiSmcDcuiqXE60flG/+Puv+/z2gjBaJf6E1Cjq9G0TVG4bIU67UlXDmhg5/O45OUw1eSy6wTYsFxQMtIlcIkEsfiPSNTm92eSKyNBAM7Hymn+e9+NF1zui3Fh7bNjz4N6Av1kJogDrB8prGnyVxSiECgpCUvPCwxHg5+IGQjgY3aClRnkgQ0tbz92DvNwMADvvoT4ufe74izZB4GArX7Outzv0nVrTAg4TIZqH5ItIg+W464z1Eq+tMpDTV75kc/vhv7w== 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=9e1RMc/IHEAH/sNqylWLLExISaQ39k5QeQNP3WHzdVQ=; b=gL/R4stsCaYPsY/G6iIUHNUIjb/wPcRm4U9j087WgnjzDFyP0JSL3l1AC8egG3kOtHyqmmQHhttBCo6UJOSgk9QUVYqpXb/qUgmgMKKLRb2ZZO1K6JXah0QhBHO7nkCTe229GxVIC2L8kkw248yfEKzAsiUFVOYEGbcg66k0N+U= 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 OSZPR01MB6629.jpnprd01.prod.outlook.com (2603:1096:604:fd::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Tue, 1 Oct 2024 01:42:15 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.026; Tue, 1 Oct 2024 01:42:15 +0000 Message-ID: <87ikucvbt5.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 11/13] ASoC: soc-pcm: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> References: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 1 Oct 2024 01:42:15 +0000 X-ClientProxiedBy: TY2PR06CA0008.apcprd06.prod.outlook.com (2603:1096:404:42::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_|OSZPR01MB6629:EE_ X-MS-Office365-Filtering-Correlation-Id: 85a5daef-c0f1-4d0b-c63c-08dce1ba46f6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 0QynNM8C1n49eBqCwe8vnm/601QDjm1xlJ7a8MNqEuXKkHxZdVWPbsMvcD6cfypPDCil4/bJ+dH0D4QOwKf21e0XkTyli92jf2KYVhz2/B/BSHGhVhXzrfmBkT2Zhs2x2XpKMTQw4oU4Qpa7g9SuY+leIvkeYbwpQYJRNNpzE4vcW4qHMNjsJhbqdCo+LnqK7bn91Cs+bBJ9gIMjnNMArGGfeKLF9VFfP3LVO256wouEG98z3zc8NYGWMpeSJPsRXjYoyxKCeBTnUFE19zQGsL9eIeAm3CV6kcZY7q52/vEEzjhpJ9kBhlaf+oNE2srKOMa7x+waqUGB2/UaVD+R/i5F4l+NO2nXhjhi5F82NTutzteVpMe6Mf+H1fJoiIJQX7EziACreizLza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ONE; SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9tpx2zIAa+6juQM90FXO+wzggsJhpOpCiSKch61EofJrNTUSDpy59LRZfdppqpsA2Cv3WbqOiG9HPnToPScxX9uYyrtqJtdiRlHNVy1tVgAeccSKn7s0ClOn08Xs2uaIQRsBmToba+jUozlJZ/Y2f8BtsTIzIRY4/Gcg0gLIwrVRMd2Y7/bUgkq9GhNxtJX1Sq1ISm6tongPgDTyq9C9MXJyRgi66orVU0DxMZpji0B/UQ4D8mCVmUz1WZrlndb7XeTM1Q8li2RDbXsgVTRTQBCre83vq3MyQr1cN/WfaUoQqtERdYG0to9rWBY1qiFNU9AaHjHWcWDkIAAA0EjovCwJtiH10eUNweQ9VwBEtygmQOXONlWccyeb3y0ig7uDPAV/bPooTTyoVwgYD+vCqQsEY7GKuh26KimWD+8kWmcwaA8DrzqfPc6gRdpJStHhWtFKe3wdo0zq0A1lukbV5xXfXwndfh1hE2Uv18LLBheAHQ4ma2iwY8VQgtFT8Pphb/b+pkDA67tQCXvoKVrjP/E2JLAl51/qi359+galxxIJZs6MUB6Hso0uf98+ep3xrmyZV7XAqnx77f6pZ6uzEMFBdaARqKfR/h2DPmcCFDvrcKc65nzEIwvoKJzz6+GIM5VcurcpQwVJTfY9ZJZCkWMUR8iIU9L7G6vGLkaakZIi9gvL81Rmh4TUfYDB+xO5Vzec6uoVrvwhcHykUiQiLVZE7IziafL2i5dGym7zNrqqSGO2hNT68PYHFo4fR9FEeJQdPdsnA4NCk9dqPfmVd316PIYcO/xClfYwWuRb2IomnsXyrUNI1r5tnJtwTo9fQfHS81eDa05Ati74ar5kpJheqwj40jqcBqpkGXkelBJy2NxNVbKswEzh2KS8r5+Z3dYwPkQ8Sq/A8WXIrZcIwG8mFG6eQoGh9EwIQWSIRtFlAwykwJ7YNkgnKb0O8mXydlJTCwe+Q0gL8wegpl7No27ZAM8M3s3dTGyAeojaCfLFsS1QkFFvumx5G1i00a2bP0iPBpLTqD61nSAYxqk6VbwUdO4/yleCBz2KrFQuBKaqv9+6rwMctT23oKp0vOdsB2EYsQhZnAfbA6htBU8XA5u6F0aFEsWQmhLrYCOJ6vAUpZLg8GvG7lrR46faZ7wmMhMR4STZAhtNlrSiEwKe2Km1Aqivd7qESIBHW6W4gnzfVVPJu9JdPnKb5u2z/Z3LYvberDHsVR8revJPqo5gGL/MU2e+aVanSmyVHAvWuY7w/3B5+jfnVWGaATY/DBiH1nw5VzTOgiW+FFXUd6WnIqbvb2JdGjchcNCY/UkpqRgbWg9HfcT0Wqdnm9phioLjAHolzNQMsKCedZ0Ees4CMtdr5tdT0m5529uVPBBPNGxd+roPVa0BU/Ng2zyK3c6i8L6HKyTIUEYvM9rwa4xjEdTxilJc8NWskW+1+t+hz9vGMIIc0/F3MEz2cVm3jZN+fbB522p8dao/rt+jOEMb0t6+u6juDtnRQT+mgaKi4jleNtiIzsZPO0lULPfXDekK7vrFqwqkCUMKF2mnsEtvZHB4kAhzVnD1ASisYlSXJq1YvII6Kbpl8JdT7Qb3IKdGWd84pHJzvu8qycTxj8wNiq7WA8St28clcSJWou40aag= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85a5daef-c0f1-4d0b-c63c-08dce1ba46f6 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 01:42:15.1668 (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: WON1eWN/VM6sk5MnsTwIH73oS5rVJfQIV6vDs590nPPWIrlYKAHoP7Y2JVXJ0EGR+E48iaMCx5f+NbAHUdQsk6gXQeDYAyJY1I478e+9ohIwyUgPPNtMiOzlWT0QmHxQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB6629 Message-ID-Hash: GQG7FYK5TDTPVWRC2LRBWQGULIAKPF2G X-Message-ID-Hash: GQG7FYK5TDTPVWRC2LRBWQGULIAKPF2G 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: dpcm_xxx flags are no longer needed. Let's remove it. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 5 ----- sound/soc/soc-pcm.c | 33 --------------------------------- 2 files changed, 38 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index e6e359c1a2ac..123a0140a23c 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -815,11 +815,6 @@ struct snd_soc_dai_link { /* This DAI link can route to other DAI links at runtime (Frontend)*/ unsigned int dynamic:1; - /* REMOVE ME */ - /* DPCM capture and Playback support */ - unsigned int dpcm_capture:1; - unsigned int dpcm_playback:1; - /* DPCM used FE & BE merged format */ unsigned int dpcm_merged_format:1; /* DPCM used FE & BE merged channel */ diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 7a59121fc323..27810f6f8630 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2860,39 +2860,6 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd, has_capture = 1; } - /* - * REMOVE ME - * - * dpcm_xxx flag will be removed soon, Indicates warning if dpcm_xxx flag was used - * as availability limitation - */ - if (has_playback && has_capture) { - if ( dai_link->dpcm_playback && - !dai_link->dpcm_capture && - !dai_link->playback_only) { - dev_warn(rtd->card->dev, - "both playback/capture are available," - " but not using playback_only flag (%s)\n", - dai_link->stream_name); - dev_warn(rtd->card->dev, - "dpcm_playback/capture are no longer needed," - " please use playback/capture_only instead\n"); - has_capture = 0; - } - - if (!dai_link->dpcm_playback && - dai_link->dpcm_capture && - !dai_link->capture_only) { - dev_warn(rtd->card->dev, - "both playback/capture are available," - " but not using capture_only flag (%s)\n", - dai_link->stream_name); - dev_warn(rtd->card->dev, - "dpcm_playback/capture are no longer needed," - " please use playback/capture_only instead\n"); - has_playback = 0; - } - } } else { struct snd_soc_dai *codec_dai;