From patchwork Mon May 13 00:31:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13662942 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11010001.outbound.protection.outlook.com [52.101.229.1]) (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 3DDF033F9 for ; Mon, 13 May 2024 00:31:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.229.1 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715560283; cv=fail; b=phkOwHmWjzH6DANwjfLfZKe0BfGfy62UnBQp2XAtSBUP7uQNWjRUVKSzNPmLrylLqFFSoNVhrGf8+dqW/cZTZTZJZ/JYCQzZHpX6Rp0iAxk1bWE5VE0Z+CPCRI/53fqGXf+5mS48muNzfqzUr6OMfDcVUBsN1rwzxy5FnV7z7ws= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715560283; c=relaxed/simple; bh=Ks5jGXQLt6qun7V2eluuAAkL1zGuGKWAI3HgUHOLOR4=; h=Message-ID:To:Subject:From:Content-Type:Date:MIME-Version; b=OCwoKXXZ5LQurai9Sk+ZzPN5H1Tmuy0XkU9HMdL0Cbccbox6UXpizLgQR3ZkY+NZHSyeMnHIQgDZZt1he+9dcOwP1QcM1zt7VcSaRMufHgSR2irA+f2EdqEhtSW4nJYnQ68JuMjG9lYOTVBXQeLnpM7Tq8oeMQ7EwNOaJvxhYdg= 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=p4bPhcag; arc=fail smtp.client-ip=52.101.229.1 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="p4bPhcag" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZurpV53RaSKv5Nouragt2jGMv1YYW9AIDA3JtkxezVtMwtSP9e2OXPPofGb7kBOqUDFsA2kpU2+bGeYr+kaWEdRnXzokqCI2g6J+qzRtBorF1ETLjx5SuMIYWNdoqRBg98qoiab1cnfKfgSV5us/4TiI5p3aRfWjNC1yIAEmU7tqImskI7uimx6fTF5z8gwaWt1pnVxnrNjIxpTn13DxwihW5/DFl7o7Vd3jBK+a1u4LX3KVh7WjU9rukQwi53sp8WzOiD00g92XLC26FmN3QwtND6ZQLPO20b6ofFboBXrf/NmyI6OJlpAUkcbzVrhYi28P+hGMseClO5/6SXbG0A== 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=ymbbUopb+35hn+vs+VykGHPtXgmd6VsUZgnJh7Bni3E=; b=C848V+SzA6VKyXUct3paGW6lWQxq1XqSWH2U4PMfkg5AJ1uAcPIMK+uJ09oWATkh0g0K0m3bsZKGO+HbOJ/HblS5R4HeHvSbx+mTJgui3Gw4u4MEQL0yyHbSPU+bO2DyR4W7kfJh43WzHWTNU0S5+UG9HKnwxsOygL3UhC7wX/YETzy+cRaDbH9xKe4qZd4g8X5Ul8w1YQn7shAbzFMbgi5+6kyXhMlSyWYqrGjtVmxW1lo9/9o2DWYJH4K54VwYXB90N0CuVIr1vvwUzz43mbl8x3rZduBKa3bdzYT0rs04gHQtmbUMFUH0AjhYUrPcZ1RaxfCRi5WF29kHzpIoPg== 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=ymbbUopb+35hn+vs+VykGHPtXgmd6VsUZgnJh7Bni3E=; b=p4bPhcagNB8+EokMu7osAYDey71gJmrcPDum0nM08VCdVVuVFzHJDZKqrw3swrnmuPcGeK3sRIkd0JGy9SrVo4uofSkpjovhAt/LC1SrZTPKIdddIlIA7mqbw3BjCbGi+YhAusGThSarwN9FI0ujcGaAdPnG4qXZZpEqsp4ub7A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TY3PR01MB10906.jpnprd01.prod.outlook.com (2603:1096:400:3af::14) by OS3PR01MB7383.jpnprd01.prod.outlook.com (2603:1096:604:14a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 00:31:15 +0000 Received: from TY3PR01MB10906.jpnprd01.prod.outlook.com ([fe80::592:9b7b:ef57:2dd8]) by TY3PR01MB10906.jpnprd01.prod.outlook.com ([fe80::592:9b7b:ef57:2dd8%4]) with mapi id 15.20.7544.052; Mon, 13 May 2024 00:31:14 +0000 Message-ID: <87o79azh65.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 Subject: [PATCH v2 0/3] ASoC: grace time for DPCM cleanup From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Mon, 13 May 2024 00:31:14 +0000 X-ClientProxiedBy: TYCP286CA0091.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::13) To TY3PR01MB10906.jpnprd01.prod.outlook.com (2603:1096:400:3af::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY3PR01MB10906:EE_|OS3PR01MB7383:EE_ X-MS-Office365-Filtering-Correlation-Id: 9fcfb738-b756-45ae-9dba-08dc72e3ff5c 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|376005|7416005|52116005|366007|1800799015|921011|38350700005; X-Microsoft-Antispam-Message-Info: GQfH9SPj6KTO/jQGUoq2gqDNfk/XqwC9vX+FFkKUuJ61XbisyuUe/9GDK2D1DtNzglOmTh2fwlkY01V/y3Dn4+wGlz2mtz82rijVNTDsL2KRiFSCwNoslcItGRe5cML14XpAIWLy1nVLk1ViTuRZcV90PZQDd/GwRCFLGB4oQGQPMBS8aovA+W2VHJog1+zBzlE+oNhjLLQEuKw/ZUh1Cmeakj5pJXNh7Lk0R6ZkuO7xPvxvU8duSUxxck3i/UM0NT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Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY3PR01MB10906.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(52116005)(366007)(1800799015)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SoSNV4yo8xib9z0GUSkJpDoL/nitnRH2XMTGB2bN83jXp538QS3fA5/lAKnRI1m1fxat+vKnaVqveQgMlgvIQJ93yZdWK5dlecGL8P7l6HwZeorawlIC5bIAn2COw8TsTlCwjjT+txG+C8E0xmcK9bWiJMCoFCHVp9ja+8YCg+kGBU/umEq9oeMLLiGOV3n8AtLt44ufZJNSMyjXugIZnQh7Si9T7ikgXZEnRR2a1By52dvic9Fus/lCNCeLV2UnvEotHGJqwAXIfucaEOFfw1HzVLF2ljL2jsxQ9ztHqeXTyS8J82XiyVludDlIGee/35kCzV6d1+z/PCRw7uZENYiGg70ohDgpL309PlZE79W7cVqcYxfG2KYhzRo/eiDVkBb6vevUfQ0HLnfbhxnqHp7QNCQBSrfEOn1CffeFI/TD+btReYiy/Awrs9t47kPL8nMfgP3FCYPgJdq7dDBMVGoRJyjvwlcSe/kYpfZv7FDxmi/rSQHjiE3EY6SroZ8GHyKXWLotoCdTRkFnk3clCtbcrYFY61ZKiPt8SPtDmou7PClXXSPaQV2x7qjAr/b351FSWSuu5+hhzDDI8JOQOSJ4U/tzRv6+/dTDvH1d7MJ3U6coOl4/+fqJq6YvKtSiqF0pOPql34a6U7Z7Z0SQfxTAqpzTg/6FlYisTL6BmXk6Z7FqKGl7agQTtw91xx9OHUNImsNva04vSrrEzToP6lgvN4fAVf1NEpFBK2ddqh5izbLm9Ck1tW+wUKXr+pjv+MjpDnCK4HKBnJOE1Qc2mzYH+Z7MTCoVwTgjLnMyD+I7vI2Pqr9Yy0VKcMErdXxQFu8wS8fcrvrgJ5wR6YAjMBcGS4STWfYTmcfeEl0gOZrvoYPqrzCZYVrGAHwtNa5k02mhJ6B5AgYH0gUi8+ynDGHSD4rXitJyBD2dX9aX67MBllHT3R8Ywspm49k9kKcLgXsECdLGmVMC8c21uA8ZHYiG/2NqwH3Ae7Y47cHs1c359x9jNLGiyCRe+6oApfh5KMeJ1C80upIY89IZ6w8bk3tqyQT+0PvUC7sHKu9zi6C4qdLO1YbiU3GC20/aSYsPmsVRag6EzvY2En7/CdomG6pE6gKcOaV0vZBfpeU5FchH9phTtvPlptuSaO+qNcRKCzPF4gC1/9wGpgSmNSc3BaONQQOSDh9AiPtVqp8iztPCuwupRBCPPSK7XGVJgmJrrzL3rJ1T/SllfZcrKMQX4BnwFCX+ESQTV+NDDL6zlGYjvo+eGPN6+ylMT2N9broROWQNlrxatqTPITmPXoxIwCG2BYkuuUa5N1k3VnGTv1oZtoWygTHqm4eilEGCYKsNA0YuVAJdguBnhUQ6HmVUD/t2eK6r6VugtkxXFuJJ4vy1GZZprFkh3i6a9QjFDutzyCJ3LfhkfGchffyVpMDmkDL9IGnmGBO6oljHv+iUsoaKe6meFR5eEUJBOzhxVFjUs6irXq2gh1cm3fV6JMO+VnHLt4s//XYai2mQEIt5MdN7PlGL+obcSP0rNMEVq8EWoMII2m1YCdM7ua0WmW3KTgZvRUaPGdg2B4NnOnILIDcHIzhd4Id1TA8kWstQJMtIVyHuzU0/5xlmcop9uwb1qc6FIMwusZFvKDd3QavXTLQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9fcfb738-b756-45ae-9dba-08dc72e3ff5c X-MS-Exchange-CrossTenant-AuthSource: TY3PR01MB10906.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 00:31:14.7865 (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: KpmqXwq7mh7CwzCKLWB906ziUlONGJLUcSGsvxTK8Ipj1Tk5rnu++LmpOVGG19ioXs4PVmsYdfub1/YOsj9kfwAdEEVR40OquFVM30I/Hg/sPoC5rwN/pQrdRMMGUUjx X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7383 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer 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. And because of its history, DPCM has been checking CPU side only. But it should check Codec side too same as non-DPCM. Some device/driver has been bypassed this check. It should be error. [2/3] patch indicates warning in such case. Because dpcm_xxx flag is no longer used by [1/3] patch, snd_soc_dai_link_set_capabilities() is no longer needed. [3/3] patch remove it. 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. [1] https://lore.kernel.org/r/87edaym2cg.wl-kuninori.morimoto.gx@renesas.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 v1 -> v2 - tidyup Codec check warning output condition Kuninori Morimoto (3): ASoC: soc-pcm: Indicate warning if dpcm_playback/capture were used for availability limition ASoC: soc-pcm: Indicate warning if CPU / Codec availability mismatch ASoC: remove snd_soc_dai_link_set_capabilities() 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 | 1 - sound/soc/meson/gx-card.c | 1 - sound/soc/qcom/common.c | 1 - sound/soc/soc-dai.c | 38 --------- sound/soc/soc-pcm.c | 110 +++++++++++++++++++------- 11 files changed, 81 insertions(+), 81 deletions(-) Tested-by: Jerome Brunet