From patchwork Thu May 23 02:11:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13671219 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2074.outbound.protection.outlook.com [40.107.113.74]) (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 091D58475 for ; Thu, 23 May 2024 02:12:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716430323; cv=fail; b=TAEpyBV/8xBZbKhjx33fMttqpwtshtYTyLl9kbzQ8BYik+dHvSPORxD1SGmQ6KEY84qwZiyuAQZc6kaq5g6VAJTpZpHdze9tk16sPeV2giNRYTte5yI8iEi9FjEP4zr5AoabHWIxH6cEs6fgj5FVyTESz7dFB1isW3VincxPl6E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716430323; c=relaxed/simple; bh=V1o+XrLcoZf+PIyAn7ncyH6DgNhodCLW4tpujr/kUCI=; h=Message-ID:To:From:Subject:Content-Type:Date:MIME-Version; b=EDKfPlJCrHQm+rMNkAvutRt80PTXrFW6RfrnGJWkpcTbUUYFLKl/K+KO4NdjJQfgobr063xQeHGEqbTrbrcSUb3DNEi59XPthQvqD+YZ4MZo+1jFSVJmXqF2iGfsTzfA49qugAhc4W3U7e5vmhH1Zohs3V3I8eoHXqSAM2VYDj8= 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=LiejmYv6; arc=fail smtp.client-ip=40.107.113.74 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="LiejmYv6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GvXj7o0KA3RFo5+xIYLR0x96YF7heAu5SlTBnt7LzI7NiIoioCQ0C0K2FdTEDC6QxxfC+/0wUB2ETL+AeO0cyg+jsI3NOpUOsko+AJBLp5gj3aRZ2/4PT5cFS4fxWsfmbawhjS94rKCCioeMPbJu3Kc6fjqocB3YhZbxu+ZPs/u3L+XCFq6pTN42wNxnC+UMtsEljyc/p3Z9tGPTigbP6NKvmr4AAXsF//jS/ufWbBZea7rFO0aM8bvSForrKToVXVg53fseczPL40evOqhl3Wjgb2mnrJkLZo0G7+HC1QDnuluI4+3pedSPdwUYE7Djw1IOkcgUX4D+VsJM/mgqcQ== 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=x+WL5xDzUEdWYaTRbmw1jn8h7aza4LRN4xJm2YGKkAg=; b=ZuLsyzi+iAzEv9uyZcvHQpS7THK628p2RFci3JIgNPlg1u3E9/rmj/v5OfDFZsx+P8uuRpvOwpQu8H/42ucEN77MwFhYtiVUuJ2de7vrySLKBgvfPvehyyPoVpHpJq/xYv42tyGC15RwI77OmJ1FWTlc1mOE0pKYaMXKCwhOivIuPsbL5zngzFMNt6dPtJNLGeSR866tT+Yj7w7f7So3A9rnPn0QLBRlLylkijhl/iWJbgwzMmUGN+DiT84BFhRfRkgh9yJICcWwYa5DO9SncwSCSvRLAvxqZu3wgUq+TWx8Z/rp/FK8L9M5sWKRParhT4FUvQ66w3TXsmtTW0zdVQ== 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=x+WL5xDzUEdWYaTRbmw1jn8h7aza4LRN4xJm2YGKkAg=; b=LiejmYv6xuZymyronkCk021M/mBU/U+QOYLVQUghuh7uCR+d0AG71Vg7SUARfN6iaQ78W9X8EMD90lgkmdLcouyREPjXrKQhUd8x0CZks+tdUZ03MFtIVYg7gANkne3lsR0v8cZv44jZQfDyuzpUC9ITN6vX9ZA5UANQ/KV7VWk= 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 TYYPR01MB7104.jpnprd01.prod.outlook.com (2603:1096:400:dd::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 02:11:56 +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.7611.016; Thu, 23 May 2024 02:11:56 +0000 Message-ID: <871q5tnuok.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 v4 0/3] ASoC: grace time for DPCM cleanup User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Thu, 23 May 2024 02:11:55 +0000 X-ClientProxiedBy: TYAPR01CA0233.jpnprd01.prod.outlook.com (2603:1096:404:11e::29) 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_|TYYPR01MB7104:EE_ X-MS-Office365-Filtering-Correlation-Id: a2013de1-29fd-4ee2-92f5-08dc7acdb887 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|366007|1800799015|376005|52116005|7416005|38350700005|921011; X-Microsoft-Antispam-Message-Info: /kLqdeu2UmN7PH4A6gj33+ItldAYeUxSCP5of+5BwivOz+0Le9GT/205dH8gSFm3pAOwKLeGPmyv93jaCUCF4+ex5Zj2rPAata0L1VyTA2SGAuJ9UGkMPtWb0JjUfJDWrdQfa9+11QwORo50B22T6iZIDkAUw79Z/sxnQpdbDS+or1dnrTTyYlnBN5/b3vpXuNMNzp7trWiTUR2nTcT06upMYqqEIJJR1eeoWEmgsPx/GpGk5LDP5duUIg/dVVG1Bco6amdIen3/36UVI/PhyNPd1OIK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-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)(366007)(1800799015)(376005)(52116005)(7416005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /F0gSZCg+E69rImJSux8VzGVXwvWgBdBON8il9ns8angJoBOFdnI8rZW/CzKxi33K8KY+7uWYucMxERe9FDsK+4JTDIdqbiRgB9jJmola0JF6V9gPLk1E6f/3ZWMiSRnqXgojEB1Te71qBxQN8Q63eF4G7gSXigLkPkCGwVrmFXEtsGnKB6KQRrqLzAK/5d81Psvj5jxgTEIUvOdZvESfc4IgC4QZFF8Et6e34YLKPHH+K+87+gV92mEoipuVFkSM0aGiWc20SFkcBom1SmUPnKRkJ14G/YsUDghtG5N3+mMIp+rX5IsKWxUKqazfDHLpsS1QTbnWiYb1yO7BhaPEzzVhTik0QMMboCSYCQ1K7SnAbGMnmgUtO9z8gsK1soVZEnVZCMSscJ29wtPZJG/qmDP2z3+1AyjkglkvurW9J21TZeOxxqvJudZrxSO2/Z3hL4To8xBiYS22EtPyxPxM+N6leTKnO4cPBNddo6qmvu+8HIUOUMGE36CuWYDH/TYn6lrMNaFAyU4Dm9ZauXFmvnZBCfl9do/zLaY/hFSSd1ytdq++mThbz9YVENSnOMmBkGwKductN3S+iPLFduPu6XtzGbdRrzbb69bJacba7fEFxA0+d/FEEpTRzjNaxvPF9IK35Hf+BH6PzWbe4xndejwjXrsw3wlQk02XC7fTkuf9Dax0ZzB5LeKokI74bwVUisiaQ0j2khHkOLTTdEm53k0xGLnCzyXQ9MJPy/g8KhWgBDPq54dkqsLNmVsseqhzDJFmYgumSEpMsKG6lwuOrtJoICZZrfhTtGEOHFN82hJin6Lie8HxMBzhFwE25VMjxxQsJGEX/YJ90linP895OnGIzMUBVSC4Rs43MQanwzVX4XfHWXxE7yHuKjhcpPxMd8VLqgjgrqXIIEmA5cy5+/bxKlEDWr5Sew0Du42LAUemhqkmlPF5rpg85r6p0G1Bwhoi7MbpxhvjpsQviwC13tJuz7mT+0d1eRwnm8RqgJBn3xtCsK1VyqGdFuNNfhJAD01R5ql2eP8iW2SkW7wUUHAQf3H8JVtfPtNkphT7LijD/QvPIiatHxqGetsMYc2KeCJdq8Ym/czvXbztRVCO7hXXO12ECjTQvX2eeq8cCIUoA1T4vMZFW72BATIYSC0bj9rSqy7ALL7gazJwGh4qLcuEbC2vKoiJPY6cuqVgHKOlal0UZE2ARmEJnSeI18/oUXymOvCpdmNTtOmqYhmjgISuEw1XeF7f5iLgX/07JDhKVShW2hxVks0FKBM2bNOhXTyOCbgrmw39Ckvq+jnIjq4Cye0Ta9I3J3tGboUqvWKTtNBXTL0U5kwYOw5frbLkd8GORUAKBM41QLgFCt8cHKlvRLSE7HfQqnr0/F+dS6kfHSGIePjv7qsHxVWZtSMq2cRGhksAf3bqjkdrkDeigALvDqUInoP0MlKsoKvmIAvgEAAzuTOKbwXQn4ThD5G+5GS7DAJHVvd8+8ZsC+HMQZ5yUpU/x/tA5XVy6Pcyb+w03XpyZbxXMaviRw86DKMvcVt2EntyOMjqsJw6HkoZk7MzBE+BiAfTb9u4rQYoBAy/0yqk0OTcErYImdzaOB0/cSoHDMhrNRTCvTTxJwWRxw8uGZjullS+yU1C4rxG+U= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2013de1-29fd-4ee2-92f5-08dc7acdb887 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 02:11:56.7702 (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: JAmiEKbw/AnJ12vUzyVyP90V0qEvhJ/dIGBCncgglX/8fpI13NjK9u0lggsM+vh++RCBxrnsPpZ7Mops+7HXp0Kn89LfM4WgRWC1C4al82ORCt6kKEYFhl2mK0fRK5l4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYPR01MB7104 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer This is v4 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 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() 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/soc-dai.c | 38 ---------------- sound/soc/soc-pcm.c | 65 +++++++++++++++------------ 12 files changed, 45 insertions(+), 86 deletions(-)