From patchwork Sun May 19 23:30:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13667968 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2049.outbound.protection.outlook.com [40.107.114.49]) (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 61EF8FBFC for ; Sun, 19 May 2024 23:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716161451; cv=fail; b=ShYz4jIpwi1EaV41LQXW8Z+F+p8AklfaHo7DvWpoNweq5yPIt03hYHLn+P185F0LXWoYwZABS46ZHJayebHfltdsV0eoaMMn8TgeTFiQ1/PZJy5gjGo4anzVagrIv0mo9Gb8FvKneO2VawJaD8gy+VRMDXzjbm069jp28vBY3OE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716161451; c=relaxed/simple; bh=w3PjM87QYxBLdWmHMEs0xthJosfYjVwCQrtDyD/ISWE=; h=Message-ID:From:To:Subject:Content-Type:Date:MIME-Version; b=G2BKeSIn6sXUf/muY4dfmec2YT8EkhsuHCIKtNIco8Zq8sshYQQTuPKKLqoya0N6/wJ+MIWSpv95FZRAh9c43HkbMYkVvS2PY+JLqAdxwKzMCtY2of1euZVjioeczBA2YsUB8CA7b+9DVqchmWMf+cCsh9NNic7M6S/gZK3bn0o= 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=XbSQfTji; arc=fail smtp.client-ip=40.107.114.49 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="XbSQfTji" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O4l66C/Nzw6qSPMSR+P04Gmi6DwkrfdzOvHlqJYx+G7KYDgpAfLGOoXY4fHtxrE2edOdpQPAgXavpNnpMf5yjgwwdDa4WEvotK6dlk54eHn6v3IfZbOHBQ1PoafHDgJq6Dxqih0tU0QUNMnd9BICbt7OiACJUrRlgkq3nR7sCPF8BchdH5dZ/ohQfQgGi7Bnl17UDa/rP2APcCjsLNG9kqiMBSgHdYt3daXI5p/kVVD+fOxOqo2WHL/4G7fxp0LaT5mlbRu8s6HZYiV5M78ffOH4LtjM8vm1J1DNKsTjtrx3gNlNDmZid4L/2fKvOE5sY3VbCckgC916LEkg4OdnJQ== 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=XF0lM71Uy40jGAMwgXns49tnQLw7R2shzhvEn6m+Uxg=; b=LrxazK0nw4PJyuz71qjc1RDGbl41SdUUlMLDdBtsogpyyldXVhoBjNxHBXEefYCb6QpMzo0iOQEUt3GNYOTZiuxmxg3YJKQldiyn3oXzutuPlYxe9eFmp7trFmyw244RUH9Hph8sR5FOIpbu9iDyobx3vDxX4dr8so8zkdic7+dYVfpgYPMTON87eRGAWjxK9iRJfznNuB2baFbdyxfe9M3jluE0Orot99yWqwbby2wimjBOMY73B9PK8wfUgThKXYs0eTTxOlolzy449Dq+0dVL0prtth61yYY50Wijed4JN4Mwx2twoqstkaBvf+rau4BbgNHd3pLzP8cGvhWIIQ== 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=XF0lM71Uy40jGAMwgXns49tnQLw7R2shzhvEn6m+Uxg=; b=XbSQfTjipQwkhfyCEPQixifkW0VrwVZntn+Dg914ygO0xlujyPEU71RH7zR5gzege3fHt6qyxMn56jw3k/UuXkRKjvwJJ0RXpdW1N8prREuc5G2sNYzLzOchvNNCYnJitJ5OZaddkW2MbYODlKItpLGcOUhs5hi0rMh8a25JAlI= 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 OSZPR01MB8402.jpnprd01.prod.outlook.com (2603:1096:604:16d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Sun, 19 May 2024 23:30:44 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::2f40:537b:2694:7b76]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::2f40:537b:2694:7b76%7]) with mapi id 15.20.7587.030; Sun, 19 May 2024 23:30:44 +0000 Message-ID: <87msole5wc.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 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 v3 0/3] ASoC: grace time for DPCM cleanup Date: Sun, 19 May 2024 23:30:44 +0000 X-ClientProxiedBy: TYCP301CA0078.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::14) 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_|OSZPR01MB8402:EE_ X-MS-Office365-Filtering-Correlation-Id: b5eb1818-9508-4c9a-70c5-08dc785bb45e 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|376005|7416005|52116005|1800799015|921011|38350700005; X-Microsoft-Antispam-Message-Info: 9csmJxtz8IxAGuw7kNo+kNZf3AxYto9fFPtmKu0DVDwPANdrjiL52qUAjQR2Css6oh9YhdlsW7CNcsyzhzQr/DDtyDZ4RaVkyXrIoeZde/z5Z2qUZ5f4ED2uxtmEuFhN7OxoLG0ckl7fzEjiIFlX0GqCgRX4e4lrG7EEAYE6/E5G5CmlUFFvIvu7xc/jh+f+r1A/9TkEXrJJQlGBjH9t/PsM8gfKhC4otID/MytWShdt/53qw0ayduKX2w9J1lyqsjwbqS6nypNI6ddFpivg0k5igUYzoz3RFVghKsrv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: 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)(376005)(7416005)(52116005)(1800799015)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DEP7VNFqnSk3nkFBQ2pIXZx1DQBcOjeWLX7Xwt6H7OxVfcw5pXOlyysHWAnEbhw/1o0p/cRdBfN+tuUyVv0EUMHUb4pv2LXH8GL5Uqsgv4iGuZqyiAjhkKKnCNPqO24XURFmMjUXgLtxb+FyyTF3hEpbsu4qOR07A0YdfBE5o9EFDiC1SmiN/7EE2t0Dcav6mWRbdxGmV2yVJa52JjjcgcKD8NwNBeaPefZrCw1R0dnm8GqdDSxLsv61O8v3A4xwBCSuQhxy00YFrOK0BDZAH5uladMYPWA3pTyMbSuWwnasgdKdTqcQdlh/Kr3kh2A3+tRWu7jzwCGzXcBDmDSVeV6DaPD7QyCy5srWsFCjj3K9HXfY3zXAzT3R95mobqr1ALJlO8BCSUmubBzYGIFwP2RmKZ+EJl+MeLHR80L3COWqzWWNi3msy2fEHnbCz6vtYCc7Yc146rfp7KVLwUFjwfbiQ9eHm/9hHp3rtvCBgclK3hemr/4GXErllRRbZu4zskyrp7/eBm3zzIQplUshUTJlfrHk7tHotDOD9sQ67c5M8ie9dKAd1SNObdhWqBw0STXPXoHM246Gf43Cd+mJHTLVkalv08IHFXwejhx7zp/3B88MEKvZzgm8IIpzKVAjKrPn7I0J2Rbc6D7DnMS9rNGBgeNVwucsBS/AL+0gZS8gyj/+9tx0H7/AmZtzVrsRHM1jZgeKeOpYhyciy6r+UmERHxXmGLGo5K2oGTyFZQS/IxdqCp3R4PIQzz3C7j0UwR/NAZtKS7rIma5MLMKU1/davt6LbWQPfUMTAwltqIyLWMSuWtiSppWDq+DSfakR0CDUEuD6w/Kq6lrvRPydtrZ+ar3jPY/LMIzjElQ86rPljIxRlQ8D3RyLKJNWIZ5gIoOLhvcwnT1XbnNYZzq1pgdcdAaa9Co6HAwY7w5tHqyIpydHbqLoE6eon4gfj7DNjmr20xZphrwyc07d2qsHZymYLhFLbYnhZeYxzbRR5w66LQv8gsot0aMguUiCnt19KfgjtCZvOK1ypX6J6VLfTfj9ezX9HpIKA+OT1tWbf0rIj6VivObIeseU6LAmkO2OgV94IwjuwJOOLUx7VVNE+paKqN6gIRY0Ru1GSSQJ+CzQHCFgD7DP0E9b2YCu/bj4ZPLxLg1AqFo+7znav58Kiu6iirPivGpzVwDchCfWnIDGs6l7Xkf8G5AdEHHYcoEUNoCQIeSPlx7OBv5XoLsw5X731rnk8ymix8zxV7vCwWzSy2rNbJ8Vebd1fr7jfiUe7QI3oO9G3YUWgZv7LVWXPzlcr+ffEC8V9/F+M6wi+JKOVpB9VLUzzow5tFkRVZoYy7m4ae8NwvLImbJd1mW5Sdm6FaI0FEUKfpvdlIwldku37eDOPIyznNhT2+eyPHs5Xrtk+MLGkhGxWhs71nfUeueT9HNEFqPTooxUCK9X8zwHhow8Ad3cRhNiBbzOUtaSzZI8+9gANLAxf9TdVtDCvqACK8pPYJnEXmZAPq+f3b4bGsTiJAdJGODAsbrXY4NlRJFwrToO17orgkr6BLWBpReATTN5yXChZMIC9gTSxmxLKpIQbxGFBn+tHgzMYq0LCFoFaclf+2pFkq1tePclW2wby8l6OGCwOdaZqY4Dsek= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5eb1818-9508-4c9a-70c5-08dc785bb45e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2024 23:30:44.4137 (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: YUfJGWEtVKwOXGJB+DTw5SR4EDJdrKalXggAjX8Zi5f5Jfd/KrJyT6VCmcFh2wqp4GkguLMTEVGgk6dnIpyK+9PGJojHhj+4wzzxEOeLwqQLOJjYnD5O0qBhtNaUeiGE X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB8402 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer This is v3 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. 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 v2 -> v3 - tidyup typo (reuqsts -> requests) - add Tested-by on git-log 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(-)