From patchwork Wed Aug 21 02:13:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13770713 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010070.outbound.protection.outlook.com [52.101.228.70]) (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 DC7D41E504 for ; Wed, 21 Aug 2024 02:13:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724206417; cv=fail; b=DDDUc23YF4YL15nvFTWO0VF9y+4UnLHANur9erj9aAAKYETLknX38AbX3xrNVjeP1NGQGcts/n1fnJBURUALwtSe7mB6VabjGZFHui7QQqwptCdqahBivzLrTIDbs2kz7FbBAyAZUyJhICf2qsfTsRk/SMSw7ZfECdkJn8ytHF8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724206417; c=relaxed/simple; bh=FwsoMJrDFws5PDEEAK6qRRexMxWLCb+u4OyJQxZwn/0=; h=Message-ID:To:Cc:From:Subject:Content-Type:Date:MIME-Version; b=dYG1QF3HYjAo1ViqM3LLGplp9TmkEKDp3qSiNogyc8Fi5YQIdAQHuE1ey99iseLPOeAysFBboluytGnqk0j96idGeYSEj/gFCPHtwCJ4UUeRjPRoRpZNXGu1ZCK2Mg9YmfK8P/0bGoXtKpyPYYeybjXTbOtzmBs50ANOBFKlSww= 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=bybn7ed1; arc=fail smtp.client-ip=52.101.228.70 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="bybn7ed1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IoKowoDWz+tcCyHmK5kuzH1JLFR6NTpfKfMPTxPz2QKe/geb+z8qNzPDYZnjagKmWiCd5OmlLKiEj3wKbfL271g/Bmwey18GuX66HmWunx5SKCtIL61YxI1+Ts5fIGcRwAgTN/lmrTSJZ1RPWWdydqyZRb7qY7KsKQlHTJ4dTBgGpPrSinkh6bEpBdSELGXR5alZTWfQFnY6Z9wftus6nb1LVBPzwJrmJRBPqis9X1ZF/P+oa1NpVCCPTWerqOkNBbzgLF7xgLitZwd01BQ+AsVO1tIDphfRgQ0eKnqrYzuCqK0MzmdyDBZkNMORSkrSyvp+KSmChdNrd/KxhbtIxA== 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=JyQBwvqZxMvSCLy7+lk0ctUwgAejzgnDGcXo1Gv/DQE=; b=K062D2qioARPwVsBmTNz2l3TBDCNgnJHlKsTDS1WGdwDTVc1ugWpBWDRVoTbehK/45SWyo/oEe5lK//qCXs9SRjd99Hl1ly6GjB9on+u6z3YQARvtbsqGll58xjKbNCTbfeCgZrPMghumMXMv4Hs+zdyoNIkwcPioXjLJK0FwXcwPa3XKMKj39LcDLz0GKXwH4Y1btZHhPiaALpT5ClS7nQ+smghBqGV1VUNjWTV4k1XJDfBg/qVl74nDqzRdcw1nviC1qId3gmOMkDO1rPjzGafo33PTe61jvh0qVuPiG097CgorjXQ9nz86n9+mnL31G4yaPjfM6MHx3wSF6xd0Q== 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=JyQBwvqZxMvSCLy7+lk0ctUwgAejzgnDGcXo1Gv/DQE=; b=bybn7ed16ngbk8YVFbUqdh/GszOnXgzvPORsTKCJ/a0BDvJfKm3oszVKhD4AKquxZeBwU14Z5BVuFSrfwCgURKmsRKlyss1Jk1LhdiMN7zCnbI02Bd7iJheBQALv8BzkXjXpH03JIGIjDKOl9VC2ovuW5XkKn8eyLCRFbqr2Gp8= 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 TY3PR01MB11873.jpnprd01.prod.outlook.com (2603:1096:400:404::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Wed, 21 Aug 2024 02:13:29 +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.7875.016; Wed, 21 Aug 2024 02:13:29 +0000 Message-ID: <87ttfeaaif.wl-kuninori.morimoto.gx@renesas.com> 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 Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org From: Kuninori Morimoto Subject: [PATCH v8 0/4] ASoC: grace time for DPCM cleanup User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Wed, 21 Aug 2024 02:13:29 +0000 X-ClientProxiedBy: TY2PR02CA0016.apcprd02.prod.outlook.com (2603:1096:404:56::28) 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_|TY3PR01MB11873:EE_ X-MS-Office365-Filtering-Correlation-Id: b2659b92-d3bd-4593-e2d6-08dcc186d943 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:13230040|7416014|376014|52116014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: yh7d4g/SumKr6woKtIQ0Acx0L6kiVtpNZfDUXaaaN3X4fUuJ0YMx5tBrGzp5HGkpaeZUzBg2lf5okmnoFZApfQ7bJWLeadV29vzcqHCOa08iLgb5TSWpjy6GaXQxIRzE8zh3cybew2vVNMB3lYbwyMhNACDwNE9VzycODIH/EdvfPLV4JqtosmDmSINV8JFne2PimWwQEf1V18GSLJJkgL1wCd25SEExhbySg9JW8Kk709nosfUF7FtzrvcpcvbysYRndIduSVm3nN4H2IrQKZmMThZWJEkBwRQ+2NCjKgjvJ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nX6k0l+L9XnuASAYf1d1BY 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)(7416014)(376014)(52116014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: knj9ypKREBCUzHk9+i4TaHUhIDedv8Mju6epmbJt1yYwoDgqmt49Crc6WnWXIe/kxL8WFx5DWUumzHBC1zY55mFokelkZz989kh7QR4F4v93r4iIr/zHLfJHmK7lPwAYZYw5+ya+I5vuQvjexncCkrIW2liOr5o35X/WSsl/O2/mfKtYOeecVwF78sjO+w9KuX/txaXA3FuYx+5qKWhnsjwv5XrXaStchC0lxG9jYKEklWo2brGeW0yR6O1ZIZzYYHLm5v4IBcn3my02AlAxWBZ9DodFN/FKBSO9KjUixVZPzZpssTIGncebhyzIEDdJhDAFZGo9LeBr4nrgQyq+NZt2vev2R/j6rMC2sm2u80z1YDsL/FHkMRvAy2fw/oIFAap8MwreFgI4iFjp4g5G7c9y+urL9InvDjMGfJsi8EF5gtrNzt1F1PhElE5hp78fXS8NCB3ti2IS/VjaEiq+u9QY4NB3ieF5ENMQX9WID+Mlo1bWJn2QzOKwh4/TmEW2yLApiAkPTsg7jr99oEZjA8BSIgSI6yJrLH9a+RfRm4io13yDxnKGy/p4+Wh/FZlSLKZiRn/OISiJ1RJPT6nR9MIJXj/reQk+CVVyI2BuR5TykGgkuul1eU8TYmRsvE7Bm5hJLmXDYLK6UqCiXc0UDo/C8kVW9XvIT1OjgKkt7MKJeVt0j62Fy1H2hDaewOVvEOtIm3oTNd0CBHsUt2BD8wWZLKcakcSPKmOHStJvVx2e0qGBy2RLw7fd7DNHdb8koXzwmTZ3Yw0okGU9fITbF+cIGvKpz34dn54XbJ14ckRm3/LWCe59yoCDXukAqcTymzI4Arcn8SjpDjfimCEz3bBA/B9GKnuXVOoWWukiMm54UPsAJHodakdhSaohYw58kZBlmebdIFzz0wBsWtCLw3qEWLyZ7YFpqq3sOOG3wz8Lg+zkparIuYpHrZZUmA2uenM/JlgW9mb6yRe5NKrGa0HjnuqKsf8MzuHd2QOYdEDfzhVV6XcSuZynrJboD7oeDTBRV8jUeO3yIvMUczvCNePhkm8+t0b1ZKslbvydJfCBfKGP90gjYWKfL6c6d5byKcqX35LnYFyEjXmFOiqnVM/oNvB1jJR+TdEgujRJsRzCiW5hjX/h1l5S1QA5pZ7JMZSS4nvMfLw8qEUqoqCwhXH99LN+vd+fW9Ys6gpGEazSuqaEt5l1HnTcPDd7FSi1QGlaAVwec4Cx3yFDgosGmxX6H487zOKvK9i+SiVXgAAdPpGm5feBjIuaHRfubzZ4N3GCsAW2S4VX2cdeLpdlnkXsexiwgFr698O1YlQqA3M8nR6aBe5aZazBhxvhzloD37TGDyDVRgbVeKSSHdvpWqLfPWQu0rYxIZSAQUTDVTNEFGXTGFf6SsSx9yp2iQk13nVdlLB6rBiWvKm8GRz2jyIo5TOEC9NxvRTIdF1D4tQdWyIeHXSRcmLfLm3+86FwBfE9L+Vj05g6Avpph7eADYWrkbhyJzr1EMyySmEVueHQZ/Hx2jScOZbxxj8DSPRYGlRxo6Tzcg7X3XIXq8r/QHjXeEYnTfmAJZzVynonbyVpn0cftDoO4NDAb4wkfx2gnF6iVbiNFh8cY0TxjejrA38AGYQjlMuc6SBhzBGlhQs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2659b92-d3bd-4593-e2d6-08dcc186d943 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 02:13:29.5762 (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: yWPLzgyaAPAOOhpEfRiLkXe0umgnGZ3YTq2I8wdUvb2DTSXuGmqSL5B5bt98tK4Q6VTIQYm1je2eBLqPyFc6+YX4Mukw1sN7slWGUbz3V7b9SzznQbo9XzpvNpvct/Ya X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11873 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer This is v8 of DPCM cleanup As we discussed in [1], we don't need to use dpcm_playback/capture flag, so we remove it. But we have been using it for 10 years, some driver might get damage. The most likely case is that the device/driver can use both playback/capture, but have only one flag, and not using xxx_only flag. [1/3] patch indicates warning in such case. These adds grace time for DPCM cleanup. I'm not sure when dpcm_xxx will be removed, and Codec check bypass will be error, but maybe v6.12 or v6.13 ? Please check each driver by that time. Previous patch-set try to check both CPU and Codec in DPCM, but we noticed that there are some special DAI which we can't handle today [2]. So I will escape it in this patch-set. [1] https://lore.kernel.org/r/87edaym2cg.wl-kuninori.morimoto.gx@renesas.com [2] https://lore.kernel.org/all/3e67d62d-fe08-4f55-ab5b-ece8a57154f9@linux.intel.com/ Link: https://lore.kernel.org/r/87edaym2cg.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87wmo6dyxg.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87msole5wc.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/871q5tnuok.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87bk4oqerx.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/8734pctmte.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87r0ctwzr4.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87cymvlmki.wl-kuninori.morimoto.gx@renesas.com v8 -> v7 - rebase to latest ASoC branch (for-6.12) v6 -> v7 - based on latest ASoC branch (for-6.12) v5 -> v6 - based on latest ASoC branch v4 -> v5 - typo fix: limition -> limitation - typo fix: catpure -> capture - include Intel patch v3 -> v4 - don't check Codec on DPCM - include Jerome's dpcm_xxx update patch v2 -> v3 - tidyup typo (reuqsts -> requests) - add Tested-by on git-log v1 -> v2 - tidyup Codec check warning output condition Jerome Brunet (1): ASoC: amlogic: do not use dpcm_playback/capture flags Kuninori Morimoto (3): ASoC: soc-pcm: Indicate warning if dpcm_playback/capture were used for availability limition ASoC: remove snd_soc_dai_link_set_capabilities() ASoC: Intel: sof_sdw: use playback/capture_only flags include/sound/soc-dai.h | 1 - include/sound/soc.h | 1 + sound/soc/fsl/imx-card.c | 3 -- sound/soc/generic/audio-graph-card.c | 2 - sound/soc/generic/audio-graph-card2.c | 2 - sound/soc/generic/simple-card.c | 2 - sound/soc/meson/axg-card.c | 11 +++-- sound/soc/meson/gx-card.c | 1 - sound/soc/meson/meson-card-utils.c | 4 +- sound/soc/qcom/common.c | 1 - sound/soc/sdw_utils/soc_sdw_utils.c | 4 +- sound/soc/soc-dai.c | 38 ---------------- sound/soc/soc-pcm.c | 65 +++++++++++++++------------ 13 files changed, 47 insertions(+), 88 deletions(-)