From patchwork Mon Sep 30 02:13:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 831960 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 485DBCF6498 for ; Mon, 30 Sep 2024 02:14:30 +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 6E72D14E9; Mon, 30 Sep 2024 04:14:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6E72D14E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1727662468; bh=HyxQlGBeBDV45/C7EgNSTKuR+6T3qCPkVX7ikEBLsa8=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=fmCVKwQEY5NaqEeDfIu7SYOMKfidEx92vr43L3nC/AypJBX4enInJnqddb/VcJgTC ZvqiupY7iS9bWzUSzOxGHbDMFXCPFKqmt0bcw19D/MMbMAqjBC/1JRucOpOF9jHi4j k9d6MbDxUqH2vslCEu0ysHkcvMRpx2fvpcMfSVFU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D98B9F8059F; Mon, 30 Sep 2024 04:13:56 +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 CC7ABF805B6; Mon, 30 Sep 2024 04:13:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E05CAF80074; Mon, 30 Sep 2024 04:13:45 +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 6372FF80074 for ; Mon, 30 Sep 2024 04:13:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6372FF80074 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=DAhG2f3/ ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ggteJYSUW7oYwTmoAN0/M8doMxdF6lymiaCXB0pWPmdDz/+qR3Z4oA+2PzaXuybVUFmd3FYf465FnPkdRG/PJCLnBxs/Ww7H2acXF6c6ZQInDzkMNxPuaXQnaQLymc+f7n7iNgbK2XYnpAlMa75hXfNnW4L2SfBqIRzpfWkrRdKoIKWP/53xT9+0+78Yk5YTnQnXeTy0ytIRLlAIFIDcCr7Uqi7HhiTub97JdNZ3BtttoA+M2TJxJfwWV5IVV15dgjUa5xr4dgB1tYz6vpss3zvkH2X1VlR1MU4Vu/tFQsMSkHi8rXO6GbACcXEosunPn9x2HOQNj86K6W1Tv6UhqQ== 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=q8Dxnwq4IBquD89IEv7h8qjFMjuOhEnrekx/IfY3zuQ=; b=mLLnFx44IYS9QnRTrmKR0XCWw7X9PH51g9SbtTqeAmwBK4icQgRvE9vAOn8jcfiU9ysi7gZg2nRyabDtKZJ5SORDKRldkaQvFd5pGj4il1qBmrhtEmWPaE+ZkfXYQr2gROvdG1etjEhKfp+6ac7oe9a0hPdHmzF+uIMMbTKoiaVMEGAaqZpWjvmKd9dNKShob1eHLW0HdeqFONHApdkINrptLUy6mwQdlXssLET+x60otA9HQRzqqode8YtI03jqItX8lFOy1+oQ4o1hJMYGPY0WjaEQGtxomL9Le8HswRdy7UWyTWV/SxsWq8b6mdAEOrQecHapi6QRYt3e/ZZDPg== 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=q8Dxnwq4IBquD89IEv7h8qjFMjuOhEnrekx/IfY3zuQ=; b=DAhG2f3/5TwpA2LwiY6BzeY5v/70ZWCkG53av2GUWu/mxMNXHSt3jSAIoh5/wjQifZTPZ5y0GdDV6LtHaTq7IBR1cgMKAQbpeu9NsxZ11Q1lNf5+p+Jbk+BDLoqwVgVdOla7k6jARPZ8IUScJYfbw/j1W/rqvfp69+VCpWVw114= 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 TYCPR01MB8143.jpnprd01.prod.outlook.com (2603:1096:400:104::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 02:13:32 +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.024; Mon, 30 Sep 2024 02:13:32 +0000 Message-ID: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH v2 00/13] ASoC: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Mon, 30 Sep 2024 02:13:31 +0000 X-ClientProxiedBy: TYCP286CA0334.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38e::12) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB8143:EE_ X-MS-Office365-Filtering-Correlation-Id: 333474e1-b6bb-47a5-78ce-08dce0f57b4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: u2gjYe1KZoqSYGO7jmRolX3mI0hfNWH/ak+JSsN+FXOJqaozedI+SHEDR+P4uT5OBUBzdJK4NzP05pROe7ePByIUUTAilbTHc2iGPD4CNC2PbwJPefOVnWnKFT+GVuGjBGsG29nN6QVYdt/4juER0fZsU0qeawa/pyyHpEl1EshdQqROgCsmt4laL/ALc+hOw94ExAn9SKVFZxiXtxi4TDC+OREGVrrsYEd+O8dMAofwoKWEHxf1BVKr2DjYBtL00fpNRhflQT7Lw1I4wLTGICVK/4erT72GfqNLhMu72SB3iVo9g0w14DV3y4B1+7p45uahIae7pJFpFLNoRvmTpjoel0L51PKLjkUKvEnzVX3+uK+qqJhEzC48Aq5RpU1/SGbKBNFO1Do1kZjL44LZxPklKUY7WA2l0ZwoJNGK32+ncMFWAzzrWul8NuMkkf1wHXoFp0BCLmu0E8ZfyZN+l/dSIWlJGSPKgw65QxNEBn1P7Q4J7bsfrf0SXSkR7+IRl3wMgwWvIe4qXw5LxmeArrAyRBcj3PmvbCOOinek5VbcqJGgtZGqHrugPDM1cK8evk0l0XMlI1FoxLEONbcRWUbaRxqOJgERbdixGmvB4L7i+YG1Dn+NGuM3UqcCxOaCXnYtswhYLbk3aFBOcUaAu4S/zgm/1L4RVU5cIqsjhncduzgrKfB0JkbFurdm89SRIHdBJ1I5vl1ve8BFOwqxPn7SSt7Hr5o0Fl8v5qf63oG2cOokpGsI5RNHCTrD/cbN/njlAZbhYJjp86asbMacDO5/0XpCwVcOTW2kVDtVtRQoE0ampwjMP+O5LwCEUqN54t/rEJvHtzGjwX7dOBCTu+c2eb/mAH3I+qwEc4FOnRCIKb2UMyfCmMr7nFnZcZyFaZbCVAeyPis80/lPT3ik9hhE3EfsJydA8JkQx1w34AZ4m/vQ+a1daiyCggtuIx3pgYSWhlVTliGRC61flirnEsHMYiHNZ/Oki7JrA8JIqwud4gFQ/NGobD2uHFXywSu/0mG5028pF0nvOgnIiULiTjWXpzxLCWOMXT8vMlEps6EgeN4ARDFAPt22RvGLCR+A6z9Fa6EU1EPUKOr+FmOBKTX2LfqYnN8vAt6Hgq2+pLZS1B/6CfYchX0wc5x472lyPG6FVFtMXfqxhaGPAwuwVtk5zAbGbNxy/UcPSMOSSjoLzDNjDAtjnqqypW0WbJ0wDEndyV+jjY1FNCMNZYtwvU5BC8Om3pCCBJPtWJVSG/v/H/6lmCXlgV2RPO9LAXnK37/bIPjUbV+CuMtdBEyqh/HUILKgb3HcKVeQqxUMFX/ryjR0XjYxO6vMs9xC0KPaniKWMZuQ3GGGPUqkuECE/6FTXXXFspdEIfALc+XQLBXobZsMgsObaVHVWa/ZPWiKLmAM3nr/7znMp69bDLdfxQ== 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:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014); D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zRh5n4+H0Hebywy1nG25tzluObAGEF1PKSs/sHLFh2UDJVId/7iqYHl2xcw8ZkLD5xbdkAA7x+AL45awYh1QopurVzreqn44EL9Sl4TlLWSgcEF9iwVin5eOiFWu1FC3zUHmMbvx56lEChQzad1RqH1roY0ypiChWP0HKGb7c7Wr2O+NWfZwwouTqnIg9GrW2oNSNTIvKqTC/Ww15VYBR9Ms463w9utlKd5WlE3oQxcGYrmCVyVmP9f/S5KakrCQDEXtvrhIqjgi2lO60B2BaGnQww0bwv9O/uQKceqn8O07kfGsBxojGiKY/qMFnmhd7H8zo2OMnBzW01UZ3TFdrE7Pmme2RpzoUZ/6A2fg5/+EUfZC6BaubFkpc5oSIK0DBR6nWhqVoFqbWjqWUL4/94vnrG5yfVDmEkGtYjac0uRNwbT4YhwcpmIeOy05irigdvlomplmfxIVIZ7In3S+VTFNnp9AbjviBfVZ/d6BMIL6AaUzWbV85SZPYwISQvhSq3xcZHAXesWRxq7mqrxyPubu9VbZx0TzdyS7N7Ak4jPDsYWQ4JPIF34+JMdF9UuAd2chwN4tcCBZaGm3MgzyKoQuz6pAPn0VeqLPGK5KpTMUjVkzk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 333474e1-b6bb-47a5-78ce-08dce0f57b4c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 02:13:32.0751 (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: cRIlKU90JGa0wJdG9EKheO6P+lsSJa7gA37FTH5xn5lPeQoIrAzV2TQ1mOLXa0TbYHucNrNsu9FCmv/vDv3jUeh7odRc/eLOOP85/JzcZC1zRSTjJpHOJh0eGfowIOu4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB8143 Message-ID-Hash: BA2JXEURDFK6BHAFPTBUXEMASVO4223K X-Message-ID-Hash: BA2JXEURDFK6BHAFPTBUXEMASVO4223K 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: Hi Mark This is v2 patch-set Now, we don't need to use dpcm_playback/capture flags for DPCM since v6.11, and thus we can use playback/capture_only flags instead too for DPCM, which is same as non-DPCM. Let's remove dpcm_playback/capture flags, and use playback/capture_only flags instead. [Before] [After] dpcm_playback = 1; /* no setting is needed */ dpcm_capture = 1; dpcm_playback = 1; playback_only = 1; dpcm_capture = 0; dpcm_playback = 0; capture_only = 1; dpcm_capture = 1; And then, because no-one uses dpcm_xxx flags, we don't need to have the code for both DPCM and non-DPCM. These can be handled by same code. This patch-set is based on latest linus/master branch. v1 -> v2 - rebased on v6.12-rc1 - tidyup flag handling for sof Link: https://lore.kernel.org/r/87r0979uhx.wl-kuninori.morimoto.gx@renesas.com Kuninori Morimoto (13): ASoC: amd: remove dpcm_xxx flags ASoC: fsl: remove dpcm_xxx flags ASoC: sof: remove dpcm_xxx flags ASoC: intel: remove dpcm_xxx flags ASoC: samsung: remove dpcm_xxx flags ASoC: mediatek: remove dpcm_xxx flags ASoC: soc-core: remove dpcm_xxx flags ASoC: soc-compress: remove dpcm_xxx flags ASoC: soc-topology: remove dpcm_xxx flags ASoC: intel: boards: remove dpcm_xxx flags ASoC: soc-pcm: remove dpcm_xxx flags ASoC: doc: remove dpcm_xxx flags ASoC: soc-pcm: merge DPCM and non-DPCM validation check Documentation/sound/soc/dpcm.rst | 11 +-- include/sound/soc.h | 5 - sound/soc/amd/acp-da7219-max98357a.c | 20 ++-- sound/soc/amd/acp-es8336.c | 2 - sound/soc/amd/acp/acp-mach-common.c | 24 ++--- sound/soc/amd/acp3x-rt5682-max9836.c | 6 +- sound/soc/amd/vangogh/acp5x-mach.c | 6 -- sound/soc/fsl/fsl-asoc-card.c | 24 ++--- sound/soc/fsl/imx-audmix.c | 18 ++-- sound/soc/fsl/imx-card.c | 4 +- sound/soc/intel/avs/boards/da7219.c | 2 - sound/soc/intel/avs/boards/dmic.c | 4 +- sound/soc/intel/avs/boards/es8336.c | 2 - sound/soc/intel/avs/boards/hdaudio.c | 4 - sound/soc/intel/avs/boards/i2s_test.c | 2 - sound/soc/intel/avs/boards/max98357a.c | 2 +- sound/soc/intel/avs/boards/max98373.c | 2 - sound/soc/intel/avs/boards/max98927.c | 2 - sound/soc/intel/avs/boards/nau8825.c | 2 - sound/soc/intel/avs/boards/rt274.c | 2 - sound/soc/intel/avs/boards/rt286.c | 2 - sound/soc/intel/avs/boards/rt298.c | 2 - sound/soc/intel/avs/boards/rt5514.c | 2 +- sound/soc/intel/avs/boards/rt5663.c | 2 - sound/soc/intel/avs/boards/rt5682.c | 2 - sound/soc/intel/avs/boards/ssm4567.c | 2 - sound/soc/intel/boards/bdw-rt5650.c | 4 - sound/soc/intel/boards/bdw-rt5677.c | 4 - sound/soc/intel/boards/bdw_rt286.c | 10 +- sound/soc/intel/boards/bytcht_cx2072x.c | 6 +- sound/soc/intel/boards/bytcht_da7213.c | 6 +- sound/soc/intel/boards/bytcht_es8316.c | 6 +- sound/soc/intel/boards/bytcht_nocodec.c | 6 +- sound/soc/intel/boards/bytcr_rt5640.c | 6 +- sound/soc/intel/boards/bytcr_rt5651.c | 6 +- sound/soc/intel/boards/bytcr_wm5102.c | 6 +- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 6 +- sound/soc/intel/boards/cht_bsw_nau8824.c | 6 +- sound/soc/intel/boards/cht_bsw_rt5645.c | 6 +- sound/soc/intel/boards/cht_bsw_rt5672.c | 6 +- sound/soc/intel/boards/ehl_rt5660.c | 14 ++- sound/soc/intel/boards/hsw_rt5640.c | 10 +- sound/soc/intel/boards/sof_board_helpers.c | 15 +-- sound/soc/intel/boards/sof_es8336.c | 8 +- sound/soc/intel/boards/sof_pcm512x.c | 9 +- sound/soc/intel/boards/sof_wm8804.c | 2 - sound/soc/mediatek/mt2701/mt2701-cs42448.c | 20 +--- sound/soc/mediatek/mt2701/mt2701-wm8960.c | 6 +- sound/soc/mediatek/mt6797/mt6797-mt6351.c | 24 ++--- sound/soc/mediatek/mt7986/mt7986-wm8960.c | 6 +- sound/soc/mediatek/mt8173/mt8173-max98090.c | 6 +- .../mediatek/mt8173/mt8173-rt5650-rt5514.c | 6 +- .../mediatek/mt8173/mt8173-rt5650-rt5676.c | 10 +- sound/soc/mediatek/mt8173/mt8173-rt5650.c | 10 +- .../mediatek/mt8183/mt8183-da7219-max98357.c | 34 +++---- .../mt8183/mt8183-mt6358-ts3a227-max98357.c | 34 +++---- sound/soc/mediatek/mt8186/mt8186-mt6366.c | 86 +++++++---------- sound/soc/mediatek/mt8188/mt8188-mt6359.c | 58 ++++++------ .../mt8192/mt8192-mt6359-rt1015-rt5682.c | 78 +++++++--------- sound/soc/mediatek/mt8195/mt8195-mt6359.c | 60 ++++++------ sound/soc/mediatek/mt8365/mt8365-mt6357.c | 14 +-- sound/soc/samsung/odroid.c | 10 +- sound/soc/soc-compress.c | 15 ++- sound/soc/soc-core.c | 20 +--- sound/soc/soc-pcm.c | 93 +++++++------------ sound/soc/soc-topology-test.c | 2 - sound/soc/soc-topology.c | 4 +- sound/soc/sof/nocodec.c | 7 +- 68 files changed, 318 insertions(+), 583 deletions(-)