From patchwork Tue Oct 1 01:41:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13817313 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010005.outbound.protection.outlook.com [52.101.228.5]) (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 A31C28827 for ; Tue, 1 Oct 2024 01:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.5 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727746867; cv=fail; b=GnIrFzUcNCKAXM8t9nSnlHZEdlM6finGM5vODC8+cz8DvTpw53QLcbQtZ1tFsOdjqBF+mKbjVFWHyuF+NY1lTKR3ayhQzA3uxw6Tddwi2DvuqfzqXg2RYWOaFJBqx+aBUgW3b6osI9FVAOGaRqljjYhOkM6XcZyDOQhe4X8MA5k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727746867; c=relaxed/simple; bh=khzQb5e8ifCYQxzhe56YOoeuhKHe1EpBSyA4zP/sAkU=; h=Message-ID:To:Cc:Subject:From:Content-Type:Date:MIME-Version; b=B2HWq1ZMqHQEKuHzQBdcDDReDirAbCHNXXf8z4RoLERrFnS1nqq4uTYP/qa5l7jCjsULoH+JNbIDmFBE5GNrpgVzOckXhd9dsTSov0vgNtXcGkPsdWXcWzu+V2pGdpcoBCUZT26oUrwnsYtitZnnxFsZ4X/wWFPqQqim6oqvfvQ= 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=AARvETTR; arc=fail smtp.client-ip=52.101.228.5 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="AARvETTR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wzEfDHKurn5jHoOCNzOzaUPZihIxCm1csJVl+Vszi8CRaLG6bcRuRIz9t5El144ShTgTIiM4tmlsHeZZNgWKT3S9INiGo1Ib7QutrlXOF6JK3W4zRbukvXezGnqEcNB0G8AmcbSGcVa3EEPQuCYSH7QRiyehrUTstUSc4C6D0rGZkSQ49YAPsB0muC8RP4DeErodU6PNz/yDhAI/dxLgF29Pll/ahT+z3ZPsEGGxTUg5fCFLtBJjIkoRlKTxkY0LYlXF1Gm24CPuw0MWhWtJKgnLeCbWnrD+2glqQwD3+VOBXmj4qhXf0Y1S159167lq0uO4RWWjtMTjYDUN31nTVA== 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=MIEoem3NtdAHyfap+NLD17vSjnKAZJwu3LrDV35ZheI=; b=WXOWFigI2bZUeJ6uAJvC3JioYm6OGfbBh14v9WkgaZwDoselxF9VBr2wCoFO2/wovFH0AaUuartohwlC2P9kVdK6nIl8Hgz6NbGnw+vmGDGVgwPi3e8HRwx5slSQ5470cSsNIHnD7Y9xOpTX9WqZwZTViKDp6A8eF9Q6+1bLli/rOryEQugodrMbkrmKxa8bBgJlQXT6KrpK26eT0AfQM4FdRanTlKV/Sqy1GMvDXw4XXcKal0ruoniB4cYvuZhGgOtQ8rzSlkZtxjL24gk9+2JeP/gj1Sjj8/553KZ/bsm93YdRSTMhuq0mzKm8ZUgJg7jHGJenr6O+dceeIcNB5Q== 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=MIEoem3NtdAHyfap+NLD17vSjnKAZJwu3LrDV35ZheI=; b=AARvETTRIwYMmZjvcVVeiOdsMLbuCzb9WBwbBpEDDN/2cx7OEWtfT5Upg284c9Y1Ci/et6hbxdFPddOtfD9zwAlIFO/GqtnYfBftbennFhWenwfx0l+Hi/mzBoQ3+XM0RGwePSC8cIivWT/gvn5IZ5JfwkzGMc/ROLQTOGN4398= 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 OSCPR01MB13482.jpnprd01.prod.outlook.com (2603:1096:604:334::12) 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:41:01 +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:41:01 +0000 Message-ID: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH v3 00/13] ASoC: remove dpcm_xxx flags From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Tue, 1 Oct 2024 01:41:01 +0000 X-ClientProxiedBy: TYAPR04CA0009.apcprd04.prod.outlook.com (2603:1096:404:15::21) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSCPR01MB13482:EE_ X-MS-Office365-Filtering-Correlation-Id: e995f1d7-a58a-4b28-ac44-08dce1ba1ae0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: xFfB2zJq5fpt0X95s7Dl56XBZ1/SJO729Bcfl/dzZsq+/cOaONgKj2HOI4s4mS/jtPhTM58f3vfq7fjeiEGgM7pinC/DAvVel3glm3K19xgcgWiuPrn87KefnrLsp8g1o6jcUNwtW66Xmkh1cfI4vQsvpYTLWPTDKX1z8Xo4p9NCrVcQ0W5mWuM/WZD9rVqodQiobjSCRg7MAitd+eanneUMwDkyANlpU6a+ZvJAP/FJJHDWSfRvA8EVEg8bjHktclLNaP31ZWmvZG+8Ul88WoDhkqLO1NRRmR8QzPXDYVyKe3TlMGWgsfypz0UPI/YJ2YrPcvF2CY62k4oMfI7YgC+Km9dfaOn9tjcTSLoAyHXLnOxTRG0hjAYKSxmM8ZYUMTxiGBazW/u3H+Se1EB++71LkHaypUliQNHHTxvOhwnsodBsaxrONSB4qF8hixrDf9dgCrCv9zRCVU+v4thrwmDR31MP4k/h7OccWe1pRsNA5s+CP1zFlC8siUosyHiIoOfD2fxPsP7LepZgmHBKzWsmWLJmFKWxiZOuJ31nZlaNbaegdTqPCMfjl0veJb0Fjr1Lek4aekTkT+Uclj9t5ZO5D64r+PgHUxlYEkwdzpnkOIuGmyPkmeUlRBS2TEJP5DWp+WoMMT+G9ujsxsllWdXv3lz80AahJr9/YdpRq0XKSkVpdcDKP8ckDivabeEDo51E60nImUIn7DTmubY2v31piNwQYnjp0mo9RVLTN9nOIuKr/yFLFAgEcyqttx2T5I3+cBmsq3F+h568ZcCXGRWUQO3AFPBPP5dWl6oUEl8AUXqiqqZcDlnEAUXlJ7eqVw7k+dgVc2EKpGbec1IB4x1V1ueQ7yvtiiIsJQF8GqWKZb6ieVVbSNz6vn/Yj7a2P+RfJbkS06KR4owzbujHdmiZ/SDuI7C2+EU6AJUiLxnD9RYX8Avdzjfa4GYXN96Zm3fGhL+Tu0TSL2z8CyTk4MgvcHMwcp0sJ1P8x9Ao/27BH1SUCFAnNdC5uZdApnqZtmBBJCN5p0ex8xWSV8wiQaoEta9B0XcyyDLm25ojy0exfe14X9+BU69s8AqohbcYsFngsY9DoXzo3yOs48hQ9E4dk/ookePuKZ83deGABB7DxNFuFrmUOZiWDBLlk2jGwEuq8yqMM/5Vph6rcqjAW+OKzRn975TdqjvKJ+2F1hnT1QLzpFpCyvDmZCnp6008qqGS/q4ejDev1lovPqo+AAVRg5JKadlRlKjMmfnKj4TiO0fjicjD205z9u2Pi/k1qco1NGxOJqw7t0tY827KrsYV98OMtbxl/m94LKEheMnKL5l1e7TsH8K65qb3R+7s+8zQ72Jg7ebet2L5WIN8qg== 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)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MtWKXHc/81B2e2fJuwJwRPWvE5x+Q/+RCamMJ3Cfozjgps8dafqxXCPU45+DHY7b5UQPKYMbYn43dnaQm8Tld5YHdkybD2S2/31pd8OzwUooTwxuWghNSWsgrVelpe++UzN4njlFA3ZqxzwwGyWBEpKwoSw3wH5fRXR78GTlYs3jf/E3vpMRs2USDw3PJi7DjC2F2gf5G8EZPXAhZn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qTwi5gBoM97pkQEqbsQ+VG7q7tOikTLnpmJp0wxyi1YhcAnqab0kfnYaiA1zSc54Dojc4BtOHE1IFmMDnZ32x96d5N5AUB8ZTuTrBLZoQe8aWqfEs5ngShWiMaGsk+pFeOAvCXE2OHmhkvHdgoHG0ywgdEe5mvn61qvdu2YM5zyIeXcXT71/K29hHkdE/53R7JC9BOZodFz4XZ4hMUMvFl4Fbf0h/YyPDLmFJYKu0xC2QfKCZ86bxiKo2hTdqlW5bSpS7SnWDpVGsbTyPI7xtZK/f15/iF1OZKCdwXp1T4slXGSH7aq1jbxyZWkbq86Rkm6HnfzTLcN2lX1s+ZOPiBCJw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e995f1d7-a58a-4b28-ac44-08dce1ba1ae0 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:41:01.1903 (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: MkFq5Zs6RTFRKD1+9e+qvdPZtB9GKzEcIXpzF23rZ5k8O7apfiEGFXdfrXdI8Pl5hdUEqBFqnkqku06I8L67ddYXLFEFcHdCJ+1zPaNDvA1FoEd5JGZlxQZNPPzHTBwq X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB13482 Hi Mark This is v3 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. v2 -> v3 - tidyup Intel files v1 -> v2 - rebased on v6.12-rc1 - tidyup flag handling for sof Link: https://lore.kernel.org/r/87r091lwhg.wl-kuninori.morimoto.gx@renesas.com 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(-)