From patchwork Wed Jun 19 00:19:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13703262 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2046.outbound.protection.outlook.com [40.107.113.46]) (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 EED58F511 for ; Wed, 19 Jun 2024 00:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718756359; cv=fail; b=o9T6ZtZYS1Q8VHRYMsrz848q9Slkd8QVf7/Sc6++xnAs72FDjjkxS2lhY/gjrzEmcPuUsEGEOXvvtHsD6NnKcEjGYRJdr5Wp9w6R/PPKHG8HB+1ATqAQNXoi04o1RcN4EFArGSaB10uaSnYuJiyLbUB/n487Z6wLFh9vf1CePzw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718756359; c=relaxed/simple; bh=7H17/cqIByBaGcq4nac1XNzqB65i/P/KS+ygAUE3Do4=; h=Message-ID:To:Cc:From:Subject:Content-Type:Date:MIME-Version; b=i2Y/kl0tI7kglU4/CezUjVxrHQknpYfoq+CGY69/9VgVG3XvUNNJAhC69SOtKhnAumNcyHZU+zUFVRzZ4ByDUno+yVPED1eS//8FYv3C2kHWWHQTuMXUxMozCCXVLGOLhEEhEsRyuwYdsjx7W6q5YjeFR01YZaL5tXk/kM7Nb5s= 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=N5IlqfVP; arc=fail smtp.client-ip=40.107.113.46 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="N5IlqfVP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OHH5oXLqMnymVJ9LRD4gNZpIeWhzPS8kU+J4L1y/5LcS0U2jMxEQ3JRhj66kKvd8ZpcNHeF2AKSsDdOrxOslMN7bsIOnS7JI+pD+IH6LA5KxZTiPCylilZWsjlDMuqAjGKuG+uOPfvQSSHmJEzc/EzwYqpqOaDA1XFIMLQPxV8KbbDLv7TBY5BsXsnNmB+TvhZN9GWt6jfJfgthy9UXiy5vrIwWXzz6qn2UMQrpPUySicYqbztlvgoWdoRImLOY9yDU0Yi+mPV00GjHZmaTpS5WTDRRfK8+4hvXYP0cmjaiSRxnfRoDSX0M+cVEN0JvKiaECRgsXj2TZXB3FnxkdUA== 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=gzIUfAUkpmJnc5HDlT3gu4cFz8es4En+Y0bDg0mUzis=; b=mGngiz0KqvlRAeu+Z2Hvb2gEyfLzP3d8IA8ZYkkAq4MTBSdEkRNkPZ6Wd4TGlLSm90GzDzbeePEKpFnpGZl8oKaony+Ensa9WX61mHm21eeC5LQMy89/mXpm6VQ3zYDhO1eGvhf5Jju4bYeLuN2el1mQggaedfnNud/PfJZbBsXWUgAhkj+jPPq+PXQez4Wshb5IDW1yxP7uEZUZW1Dx01Qm8MnVMvmtQ8bUGznD4QDHNap3ZtlUMGApy4j6c2hntMELx1+cjkenv6s/WPhp8g2ri71mJ9PPOlJVH1lw6/4zogMKrdL9W4UOge3Gu4XKOtwrOA6qN4TvEkf+pscTOQ== 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=gzIUfAUkpmJnc5HDlT3gu4cFz8es4En+Y0bDg0mUzis=; b=N5IlqfVPMtSmKUiIRXdJxnDNEvDzfJoywhmpFTjmBMGsDDNm25HqN1Huc+ToKGInnYzdln6wkodpLpU6I8yWkOVmGYIS4QfxWC6sNLU1G8KrEAssj0NywaDXk4/DnIrqCgA5hVNj1BIMgXCHap+stKHr2d07kyL139TI7dD06eI= 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 TYCPR01MB11717.jpnprd01.prod.outlook.com (2603:1096:400:37d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Wed, 19 Jun 2024 00:19:12 +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.7677.030; Wed, 19 Jun 2024 00:19:12 +0000 Message-ID: <87r0ctwzr4.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, imx@lists.linux.dev, linux-doc@vger.kernel.org, linux-sound@vger.kernel.org From: Kuninori Morimoto Subject: [PATCH v6 0/4] ASoC: grace time for DPCM cleanup Date: Wed, 19 Jun 2024 00:19:11 +0000 X-ClientProxiedBy: TY1PR01CA0195.jpnprd01.prod.outlook.com (2603:1096:403::25) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) 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: TYCPR01MB10914:EE_|TYCPR01MB11717:EE_ X-MS-Office365-Filtering-Correlation-Id: da7f3092-eaf6-459a-54e6-08dc8ff571ed 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:13230037|366013|52116011|7416011|376011|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: Yf0CWfoKn+sinA22rB3xHlYYdVqDO2L6Kz2kqJ37be77fSy+Ock3ECPvjL30pr01XmSdk2tvpESGR9J7xjXIHI5Cd41imfIYou+T9M/yhMw9LsnLNbKbvgKYNVnXjDqC7/FIxUwWScO42Wr1ovkSiT7rodnnpAl3weiJXQVEoUyPCmqIwd6LX+7G0ZGc6jNFRtXRk6WzbfUtuQEMrwb1Cy8JQ7lrjYTnybYyPRABSYqAH9Sg6j9x81LWzeKjOWfLVm/Abg+R6TFbzXy0r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FZdwi7lLDt3Ce0v4iAYGfJjlcoNQ== 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:(13230037)(366013)(52116011)(7416011)(376011)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HfWWv0OWXOtT75X2d+MHuOrohabyHOxEeUYSKHxhAoT0C60WSFP+8b2xVa4V/xFyEMCFPYC0X9I5JzTx5zmhf5a1xOLaOzkr/0YbXr/plyhzYb6UJtYGGCz4YlH21VrQeFL6k+qRe8oblV2dWyPBQW3h+gggq2owyChWo45jXTaktaFMLadC2L08aL5bacANVb/N/neoLy7NMpGDT5Lsk0Yj/I6uCDITSl5zMf5pTLeq6iRwyDSiFANYKVDc9hESKQkNvhS2Ei1vQSe/Q3jfBdzkjBq+iSwbtT8b7ANPuu3SDOFJNCjB4JZIEqoz10TKxIAqZHnPd/1Srj9DKTF/dr7rqC7CLGt0hXJ0usAyLQX1mq1OG9pPsuWZnPUKhC/2DBuGK4NIblOApB5vwWaXg1rcEHxfNXXNx8myaEHLoIyuaomMyg3TP8NWFhjj9kXvXBlLyR04H4oDfnxNU4sPdOt0UM0RCbgnh83FgS6OhdV4IFmghQgoWmvY+4kLzJqBsjBLRqDDynpOSqUV8gvU+zMtOwZxb9sAVbdWru6W8/ptBp+jkQgwM9sFgyQLZiytN8YK068coYS28AxRPNen/aQyCQmnmQqWy3mBBTAGUaUbqH2z8tH8CqM2LoA0yJJdCBBmPjhj+Hzdp3HyHvxuMlqwI6aWcwXe4qsrmuZbSNuxQEMOb6B5SATxGYKkl8zO6CCX0O0zGXtjC7KA153IQ4RFoaZIWJgM9o2bJv23OHchFZHhQtcKCYh6GNMKvd6jtwLUJArmg8ljDmnpF0qtPU+sJUdCQr6+7LZqOzKT/rzAZNRQ0Ea3s8z0A+N8pZLprS+xxJPNxdXL8NwjLgXYxTpapq8zjfPEN0JeQ0LiQP485o77oWpwAVVYPUmgFQPmtdy2pZswKhcd2brof1X5+3MgoS8xWArVAZpzw4IpSaJ9GGtHpY0Z/dm2M2Wcbq+r0ZbPvNsBzi5UawiFtyEYbBREqRF9w/bz7TVAPs2sdIJmTAd31YixuFhChBTInLP3kqv9YmBYt26ExAcxBD3Nl2VfFGAgzI4l5XpP1a3IGnIUEZ7cJixz1imHSk8adOxRexxulO1bvCQdsQ/5GwLfSRtaJruWenE0BgY1KuP7TgRfuy+3MTqfJa9GtU0zJvB+QoeHYiJppXeV9PDq/oqZtHqpSpa0l1DkFxBWA6cz+UU07HKxWqp8tAy7HNyl7mgmMz1XXEtwPG7gJi4u6iQzeXNTxIGkb5HYuBKUFar9E6hzS6aAMQEr6dZ1XFPJX3rqtgkrkoKS2fd7XrMERyO42v8CRHWyBfU3LXNAw17dWRNI7DIRiN5PqFdzGi5NqXm/JYBnXgieIpyY4M7c4LXujRMY4azJzlOSb/xPm/6T+rD6vBzFkpsaDEmeTZbPxyEZ4bPiQ37Gs1zxepAgc7t6XGIRpPjJU51lI/uE9RTRcELPyjw1WaU2VPO+/1GDqovKZb/0P8X5l5oGK5MTfOShgrMAIDD/G3ewP42bgLmk1a755HpZZwFnR89UGjTI6qOrONmzf0wmsP3E5wN6MbpSztkuJAi2fnj8pvmG5Q0EVIniCQcNbAaKiV3WX8bN3/675bqOQF7X5VZkYVHOL0glCoxZwvl/CAUHavTO907dwoA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: da7f3092-eaf6-459a-54e6-08dc8ff571ed X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 00:19:12.2964 (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: PDnJj9xFOOORU1W68hScxn/a2CoQ/iXn/JiohitHn/MmNtERypW0rMVlqqekSXIHnUCFtutlMm/FEu9d3k3bZJ7QFDKhCJkfWRBC1J9MJ8C1IIqrDFUpZjbYXTDFc+0V X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11717 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer This is resend of v6 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 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 (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(-)