From patchwork Thu May 30 01:17:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13679587 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011008.outbound.protection.outlook.com [52.101.228.8]) (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 E3E38F510; Thu, 30 May 2024 01:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717031867; cv=fail; b=EzwiJXsr5hZ/fI8m2QtprUgXESEujXGMOl5kogrsGq1tTurUCQDID40FB8u7s/g9KWpGUdUKtuAEnV0PXBaUJclp4BtkeIPFKfQmPDGS4dqtGjJo63WuB1fEtqhoM1A5hucZmcJlWcg8zPXezPNieQR1HyR5JJxxITPh0+NHtm0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717031867; c=relaxed/simple; bh=2R/R23QICHuMcwSbw8H64i0DM0woqJYpwXg6mm4YtlU=; h=Message-ID:To:From:Subject:Content-Type:Date:MIME-Version; b=kNj1KYrr7DQps/QdO65zioM43CsUJfCIzldAZvWSh7gFD8JfP9Qzzz6p0A7sQ2JE0mTHwPKxEh6j7GklaCH7NRDVxDOG4XDKZUo5nhXEwEFYfIOPSRKJTyH8spPHZPFmkUomZG9oIS9aCcAC5x+J2VWMT3o9lCy2gIBSTTGxEug= 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=UiGkng3k; arc=fail smtp.client-ip=52.101.228.8 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="UiGkng3k" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ii4ZfS/d/F+tenI32HW57+Ea5esiugOQluSylYsHjP8q8IUPKz2rkoeZFuxja/ZjyZkNIHdORsHv3MASQCQGjUDNT1jztP2yKGoz7/pj6yiJFhkNXPM+K6RbKVEk56Uj6WpVtG7kYsEjgOK6BqJfLEWQ3QivXq+ZewlfcKUv/mS9SQ9Cys0vOi31BNU6V3EvbxqsfRelwDlPb4TsqCbq3tQEig3ueSsa5ulxiCjNv0T4r8iNhsTp7NpVRirtY1vHk6/dSjVtpngjk1+nSYGePqfzLml98OEjHqEHUqaFRCe+iS2r/Jbf7YYBkVgx9QXIrNeHr1VMswD3gFyMYmtgDQ== 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=TQW1zvp3OZfpMaa8MJ0x3F3VC0NQa+6ynogbGcPDbx4=; b=ReW392dY525QSs7TV018JPfw3zXAegS6ypa+WIUIXpL3skHHXLDhkPLwmAq7Ypy7mfbrpn6xnTouu7qjeLPGMAVtSoOwy/9gvj5gyJt6MPBWlm7GTh0OQ7qT8H2MB+r43laodiiZ+ZeFqr4Ha+ShmnXY4dKKCCGasMFwbQrJKleIlQzXE4VhjioLNk3xdkcQSS/40aYWfiwK513OikGS4nLvWdfAQmts0VtiMtI1V/pJ1U9TvUBTd9MePzw3LCq+76obGqOGRn9M2KEtfjRu68efbFpkjQlyYYspfKxnSAscex9zRWoX2GraVsznHJBhzsy9xccjEFqebX2K5zmUvQ== 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=TQW1zvp3OZfpMaa8MJ0x3F3VC0NQa+6ynogbGcPDbx4=; b=UiGkng3klDLFBYWK+XgovBjoc5SNKPZR5/iVyt9lqB+UJICu5zYFHZek3CnkRJcDtwBMnT4fmJ5zJgdKwCOX0zxK66uW1+mO3oQmn1CMutT7nsZ2x/VickqTKTWnKMZDsLHw6fPTtT/DbKP2/RvbItXwbABHjvQvJtYgVsqhBZ0= 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 OS3PR01MB6933.jpnprd01.prod.outlook.com (2603:1096:604:12c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Thu, 30 May 2024 01:17:40 +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:17:39 +0000 Message-ID: <87bk4oqerx.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 , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-doc@vger.kernel.org, linux-sound@vger.kernel.org From: Kuninori Morimoto Subject: [PATCH v5 0/4] ASoC: grace time for DPCM cleanup User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Thu, 30 May 2024 01:17:39 +0000 X-ClientProxiedBy: TYCPR01CA0111.jpnprd01.prod.outlook.com (2603:1096:405:4::27) 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_|OS3PR01MB6933:EE_ X-MS-Office365-Filtering-Correlation-Id: 01ec79e3-4655-40f1-c52a-08dc80464c57 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|7416005|1800799015|376005|366007|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: qAUxTycg5+Ftjs+7b3V6wVVzbYwsrGt03AxufdvqPkqikenjvC+UHUNJCuUwIPLbU9d2m2H7RFffHtlaNyuNowOGIVPrD20qYTjbJ0dlI/NQVKoQOC29wyT2rTTKx8gX2pp2rXporQi3c6ex3Jo4sx6AUzq4EBSI10L+Nm+mCjodQW9hJWjkOh2SolNRouxk9WaTxL/wmVCE2VCf7IlqDXxvWiQQIOj1ZvRgRe2eH3Cxmj8ewYNFdY8BHqM8suKDjM8hOdNnkoS/FUhxQ6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8qkYa 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)(7416005)(1800799015)(376005)(366007)(52116005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dPU0rgCaV8QFfT24NYdmaHCFBYII8IOuzxdCkSYbhShnL2XlPzrP490qPpxa2PVGBSoCbyn0ZCyF9gy6fBVS40W/8pCeaOeG31neSg3KM6sGx2bUAAZ3JAC4ak8QnOnXdwPOFIQ+5+lA+Mnlk8rRJRZAM5hjAU8mnc+1uGE6tGyrJlW0MpeKvsnGuFw9zbh4XGsGuIaRFU9/1LM/4Sa9zk0RnmBk2Awq3PpWmTEaSq4fWGhgrSi0XnvfeBnjhG3IiPzc9sa1bNsngIhJgurW9frWiZLlE+cMb+HU64VgyX2ieLOYx0HJJQsRcDgclke1EmTK4ZjUohfgNocrQWr40a5vUrHTuXqB2YAsx3V+r8iMoBZb0SXIm8O0vT1VNc8J5Z0U87TjUFgIki3xLbs87EK9hGeRM53iG9XAli2QNscslLeJHxVq6dnw5NHhPxS9gnRB2uJ+CjQ5ED6Qagb09eAoGL4Y+S+QgWUYkxJ0aaQLDIqHlxa8xItGTtKD9Gc2BnAvWdedlHoNiXRjUHFcEDWuP4Y7yzzWwI0NtEhaopfQxDaNWdisZfXGTiWAYrZqcygHYErTeEo8b9LCv5B4jcfaaIBnhMESz0JWBMe2/qKDdR9f1SPapL+QHeXsIF67IXNA6+0J/Fc1yZl4RuaP2RxbNy+DtNdZx/CiwEVaBnH57uOtO/YakHr9nRE0ewXyO0BCTkXYIKPxlNgcPBJeOLQ5JZziq830JwSQj4J1d3W9aWyWvpsMMSKbETtGu8pKd/BT5rko3AOwjeIjDALPCmWzAkhz75fCfR9j01J2olM/QgpDi8jgTDk9Lj9Ryb52jbCOKgwPSpCJCzHosFwZ3t5jBbDYA+RUT6e557blNXM/15jMvO4SsY+x0+8/kRc3v4Rz9tzGTipr1J/yxynmna8dvPHjaA0+JhxDBr/qmKpiMUpMf5cdBr07Be58sEAA/3btb5VVf9+C1qLNLZKxaBdOE7k15FL403g9BViwVDaBcXOKcAEwvlNAofhkoTDaeVtuE6HEmxyXiPTyZTUDLcSZybcSyuNC28FyFwTpeRBebKOFvUT9xejQAFM6sgsJv5pxqFhMLoGINJnSgedIA0hTLg+79/csKD4sUxInY71HeczpPeJMDzMgMrd811pw+hhH/NdVMEBk6QhF6fAfmJOfP4/OqBdZIcMtv8YKNXJq9qHwZ+G2IETct2rzIiiDfW2SfqpNfBhVWhOqxeS0SCWI1rQTG9ADPGozqol3l8PLR8MM9klZsBR0rUBeFJYGqIFNl6fLw/PoLqzuFzPOncVXLf1EGhcmLsiAbEO3P4xzx7bfTEK9PZ6Ug+Mj3k73WXoI9UGCawNtEc1kKonNMgkgu5LjTcfScicsp96VMRaJoC7iPI535FvAPk9ekb2BBvmYPhzLR/7HnekDEZHEKFx7i/o4Lo3IgvrLLacat7r2ve0qNSUwm6xeAMHoKvp9/zidyTjkkT3KnVQL7IhTbtRzFZNE4XkxZs2EsbINWDlcgrqrhgpyTrOmWYvxOdKvMmscG/9NIHebna+iqYKoQEW5DTihRXbBULKCaPzZ4s/7pokXL0pIWVR7C0wtlcj25L2Fy4pvKwZoioreOyox950LWIBuFI0zBBI79Wa80VM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01ec79e3-4655-40f1-c52a-08dc80464c57 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:17:39.7877 (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: cc/bwGdsgrnEp596cyrEQj1UcM77l8zE8NiOj8uhvAIzg43l/uf3KhObXEFPrrhHC0DQqc3K3faJjawfXbNhQTnd03SzghBxqyxtuI0CLnQDr1TxvBa6oRUTY94cexns X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB6933 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer This is v5 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.11 or v6.12 ? 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 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 (2): ASoC: soc-pcm: Indicate warning if dpcm_playback/capture were used for availability limition ASoC: remove snd_soc_dai_link_set_capabilities() Pierre-Louis Bossart (1): 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/intel/boards/sof_sdw.c | 4 +- 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/soc-dai.c | 38 ---------------- sound/soc/soc-pcm.c | 65 +++++++++++++++------------ 13 files changed, 47 insertions(+), 88 deletions(-)