From patchwork Tue Jul 30 01:01:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13746072 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011015.outbound.protection.outlook.com [52.101.125.15]) (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 6C11A8BF0; Tue, 30 Jul 2024 01:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722301316; cv=fail; b=oOZ6Q1uQst0J4POQhnVW5z6N2YxOx/gWAgUtoK0oCLoOateBKyVENa3qIclKgrWxargbB7ZhfmC5ybAqfzbf0G2mF1mEa+W7XIClG6wRrDtH05eznPNm1hJrb2rBPHGVZkonhQPYwfBa2zVIHlb3h3pkuuAoBZo00JwQmPKufdk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722301316; c=relaxed/simple; bh=gn3dltBRPseZexIUgzKpGWxlC5wtz+Do3+oDhZs9Sf8=; h=Message-ID:From:To:Cc:Subject:Content-Type:Date:MIME-Version; b=UcX18KuxvKIUnE7+Ank1U48eDGLqomCerHcGrUCWJo5joguX3ctil+fUo2EU/ynpfa/dHcgjlXLw+bBihbqyXjuXZ6tDm3snP/jZK58VQN8nqElaOfrjK8HD0IY769xuvWmpTQFhcwMgkLdVgPkGydRNBPex4TUx6qSm2Z9R7t0= 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=ZiENuw2i; arc=fail smtp.client-ip=52.101.125.15 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="ZiENuw2i" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yL9Rk1zJiVFUnag0oRqD5lETZbaWZ65xmDvFiS/bJl0/Qyggu/KiHJF/bH7bapJ2Bgv7EgJVnK9SxZL9WtBdHk/gev/hhKNawUhyoTXzwFISgaH2MlwoHPM05Lmu2pbSIKbFehBRJgvZUrvdinBhibIH9T8Y8e1vzBnYtHJ+euuLfhHlverRWgC6EUgn0PeMdRy3vWMgq5idedHzW65gys7xYiCLxhGt/rUmMEMkhPmxCLcqKgJyvJ8xyFumO8pQWgYMfPvMqqZ2sMz2ZTAr2FwQE2gjSYtlI4VFBzKQz8NjBN1CGqrkR2MvYigZX+6txdQr8++1S5hi4/KtP3jr0w== 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=Bx/5S83WbETnGCepUEykMP4xJnZKW6LJpXV5SoCVhGw=; b=m8F3cnHzFPuyRAI+nBrp9WhTnmqPBFubFHGR560iiFauvBo7MquHHpUrnnBHv9x+IZPf2JuviC2GYrCB0dAYVKIP1qaBYwsy1fyQaHwDMNab+crtVE/hwmiyF1WHQobmWGfuq3Uzfko5vhJWh/V1UowP6WkweZDGmPOxHi1neJiIRNq5eZYGLXJc962fGKEhg5M88pXhwVrEmP8aYSvBU7RV4hFDlI8xz9RV9yYYLNg9bElL/2hY63p8YkktBzUolIEUukwS0+3xY7AjTFYGd+arDnH8lTn9xcqDT6ue651c5BtOrE6nEslHTSxpTZ8pDN/xvmvrIYbAQ1fLiwk2Dw== 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=Bx/5S83WbETnGCepUEykMP4xJnZKW6LJpXV5SoCVhGw=; b=ZiENuw2iAzui3yxASDJaagU5+ATSqT5H+6ZJYXW9WzOF96PIPmzIN8lPmrgOTvnyl5PF9RYTCzmFQoGzMZfBHir/fAkw2jg/EsmldS4YkVbyhdFME78RvEXIQa/HCmKqX/cCkFD8K3y5VpMV7bAXR+P3Y/FEXMWhNNFfSNEOQAo= 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 OS9PR01MB12484.jpnprd01.prod.outlook.com (2603:1096:604:2f6::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 01:01:50 +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.7807.026; Tue, 30 Jul 2024 01:01:50 +0000 Message-ID: <87cymvlmki.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto 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 Subject: [PATCH v7 0/4] ASoC: grace time for DPCM cleanup User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Tue, 30 Jul 2024 01:01:49 +0000 X-ClientProxiedBy: TYWPR01CA0018.jpnprd01.prod.outlook.com (2603:1096:400:a9::23) 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_|OS9PR01MB12484:EE_ X-MS-Office365-Filtering-Correlation-Id: 5172d0f8-d27f-4d7c-64a9-08dcb033319e 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|376014|52116014|7416014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: iNhwEWmzSXErE1ai6EZWKmAyhammPtQp0zfBShy32eKceBn6pkw01tkW74gemWKaEqL0iNN59fE5qsOQt4oxm28czxnK2hhwnBYwJpFqI7NijYxDRF1lbAxHirbNdpLWR2/3R/s5KNXIts65C1e5VieNrwbi9AuTVwMC8oDRbAaxydmGYXZh8uUs7czL/YzsUqgsAqhUzwqANROMdPMMufC6qY1E2F65BrQuNj4UrOcLhy5YeXT1EJqT/YJv7WV/KgfrP+iZo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8Ri2TlkXWIVmghHWfQ86j0mMevaY7/sw1L8sw+csqnWCybfO5hFUJrFKTt8W+N 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)(376014)(52116014)(7416014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u76bg8l58KK8ok66FqeI3KLeM7bJWddzMBuwIM5wKF4tV4tb/f0B18drFfExeCUpDQN5oK15CGDGL+I8MlcJJYr+tWdls0UZzcpji7nCsK5rhjEP6j2g6ttnNX38Ur0BjpI2Ya1JmJXz1YQxUmvuNFgx4Tq/iEjiMjPXt6Z2V2Z8abi2VYEisXTDgZpjM2jmkkZphxIqgFvWcxiFLlXJUWBaUjKG5mTgnsjFn17wboXInkdD51JJHeFJW52ALYeLpPeQ7Asy3CP3hvIz2gHlDxK2aD0CpGkRs1Z+djuwgGGrR+5XVPFHs24ywE0a2NG5VC30SnFDrVX8MtB5JVsdaNS0dZv9R04+qVCz6yCJBA7vz5hY1LdbfDVYPd8yK1TDmXJseP2qewBviTzM+Or0vKDjxA1+kxic4z9jbL68BXO+i/fJehwcgSQ+D+Wo+py1dEyfteb1ofxw17FL19+XnKGtBAkmhXFBR4YNXxU/czjW6SkkJv5ly4pEJlDLjz/PDgROIWL5V05Swh9DacxIUqbjwE6CdpkoqVsHukFHaXvrTqKUpTSR/TwGvZMQjq0kS/TVAa3EYeFCPagR9/EQH8L76eiJw2feW3MCDcP31oX3Vvrae476g5KvqD1i+cQRCr2iKv2aka66Is4J1kBuqjDFKGQY99jNMThnrmTcHM1jWPPpCoWmIT+lgx9aQEuGkWvdiebrrxGh73S3Qt/wMcSDQSU+yE3FY1h7IDiBOBEfUgcix0xMYomSE2ouQ2jrI8dJebM9wlhWpkJd7PUNzq4N+022LwLHbBbbIcL27cyPGbuhgykppMvPb6qJJ5kjKs7dTHQ3fyiQ5Q4ceK9mi+7XxdPWjBFJI5+jx2SkFn42hHJJssMm69c8Dnz0l+ozixXEWJwf60YP3/I2gw0O+30aX63ZMSO/N8e7xNTj8c+jeNazRW02R2CJ8Bm4X5tbbtXEPcr2E2BxkTC8N7mJ7StMr0EqkeSTd5a/W25lPOvosPrYbM8vpYcZvl3QNDMUrfqqfWYH4xVpwrHinJmRvaEB+8dIR4B+rO1wK6MLejtgr53flNnELJ9gsASdZf06xxq/OtRaYYmq+LDdhmbsCBo8gsCUTo3CVVD1l33MUrhj/YbZKrWxGa020VsdW3n/a38gdEMMwM+hDFfqqLjEauPVbTfQyJ+eLL5QWNNKa6UjHlpsxRekVpIpvvf6IGrSU4Caw3oDMhMvKgdAbutY4yTgK1He+VkumjTi2nR11i4Rl/bJ9swdhK3gUrZ3WBoA76jeX8Lib9CN4Q49MaZY04e8DyLA4/sVzxWR4OXbVul+Tyhgw5PCUNEgQwZKfhPZeN672lx3ujZbszX7ErE9jjiO3EjJ09oz+jzav8fBoDTcGLrQBhi0xv1aTs6VISvQW9uzJpO8dwIxKNg+61GaDZQgrYXk5KJkh7WecMALjnGsZn7+xSalnkO2GT7TRmb70MptHEzwm9ts9fZ9+KSWnxK/Lvvahl3xQmTWciTGp/91VULiqYa/Y/8ReyyvlS1ASg6VbNKj4enROKyaK41NmkAc2rsIRgZ/wCaVPAIXyX1NE21O04UbZ6FwVWEuTt7H0Afcqs+CjKTtX+ImnkCfxBks2W2OzsbEvkHMxuKWqQg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5172d0f8-d27f-4d7c-64a9-08dcb033319e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 01:01:50.3504 (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: 6fS5MWCcEJF4CbcnFWzVzL3VEnvOKRHVTR3Z1UruU/kL/+XNjqV/+t2GOIlpyY0FJyV6tmJ3K4xkVDZulh3mmVM3Is+04YQzA7+M9YYj55Bd7/E81J7fQJkIie5kJa10 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9PR01MB12484 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer This is v7 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 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 (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(-)