From patchwork Mon Jun 17 00:50:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13699711 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2086.outbound.protection.outlook.com [40.107.113.86]) (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 9A39F33FD for ; Mon, 17 Jun 2024 00:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.86 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585413; cv=fail; b=h+9t/sey6TYFsrTuVLBAld0GtDXQBoa66pHsQM9ZETiOfKd8fU08Jo3dpuJvbDm+DoqkXW+D7vUJbTVbmSG326hMug0dDgBsjzeHxozw7HUrJNynPjjZK25IsHO7jzCcETI/wyugnFhkm4Ugzt0f8ZFnsp5/HicgDe6KW30QPBw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585413; c=relaxed/simple; bh=6aj6ftvEyM+QX86BCIKNrBpdZ4qJfr84LPMnjKkgfa4=; h=Message-ID:From:To:Subject:Content-Type:Date:MIME-Version; b=eWbJDsMHwNDBEV+iIvYrzRiCXM8jCReV7HuFhdeId+mwBhWKhvl7ynLlM69hx0RtOqcVZgF6NK4qO19AYWfFsJ4yba0+/GQ9vjyEEpnrJfXXkcUTwb/XUG6CVTlgYwyW9NKTd1QaH3owZYdEg0Nya7sIluMEME2ei+4jYE3WcUU= 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=DazmoOka; arc=fail smtp.client-ip=40.107.113.86 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="DazmoOka" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oWzix24EX3jQPApZsU4R/W6cy/dGC4UAZagdCG7rHGy/jEMADmWIprIcJJvua3e1HpfsNxNJepWC394c4gTmVJek4xc0SaaYgaM98c5pJG0ixppA8MHlvG202SO3x46u1pOhxPduRu+vScwIXYhss3n12ANtjzjNYk2o6l2rv8oxXS3FV7qua6/L6j7Bm+Tf8/nXUeoKLPASw3jXaY8NYKk/xAEr2WTdEHg+uZIEncO/y85OylguuGZ+sM+CX95XMpt/D2TjMyDXkC/YawHc9YSnW2HxRTG5NhHXiBf0axEGKsMunYUGpOTf34c3TRIbyaXPyTf88NX22qhCGqYnoA== 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=rfVi9p6v0uqFbrpv0FnowW+foZvJuzIlp0nmBSjkEzU=; b=nbj2Ws9sP3pnAYWz62FlxBCmTswE9i8VkuEGVDxTBb4oR1hBoxdJH4kUFUHsZMs2ofaq/emSnNaWUgDYE5TPwQoUq2EWNd9iTRqiMnK1kECEI/GNwMNNojS9GiwPffziU8G8pgBkDdZrpqJJW98Ahoglx3HlUfA0+s1lKQhKHJpgbW0gfiroczwstWikSPfbSqf3dVv+vYBTMfR4fxlyHUMbwcfZQXKdiJlsrlLwzhW7blNVdc1l/4hoWQ08lH31MoEGnceu02TbOJYnOvLQrWV+sjPKa091T0T6c6TdLYXNLiAHJLpJxTAu5l3q/E6xbIu6L220sHtLcS6hnji2BQ== 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=rfVi9p6v0uqFbrpv0FnowW+foZvJuzIlp0nmBSjkEzU=; b=DazmoOkaPbh4vMz4GlMGK+5nhi9dWfoLZdvSAEWwI7ELPbzszoIIwYPhzV9oOD2mpE92GwRTR7J3hUG+ptR/GjOj4nsVfxQ5NwepIOC7V1NasK+GJ+EYWzLYOkozaGqESNH9/Shb08NnRHAH8BLJDqgirRMAgwj8W5zKH8DQukM= 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 TYYPR01MB12387.jpnprd01.prod.outlook.com (2603:1096:405:f9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 00:50:07 +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; Mon, 17 Jun 2024 00:50:07 +0000 Message-ID: <8734pctmte.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 , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-doc@vger.kernel.org, linux-sound@vger.kernel.org Subject: [PATCH v5 resend 0/4] ASoC: grace time for DPCM cleanup Date: Mon, 17 Jun 2024 00:50:06 +0000 X-ClientProxiedBy: TYBP286CA0005.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::17) 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_|TYYPR01MB12387:EE_ X-MS-Office365-Filtering-Correlation-Id: bae69a42-38d0-422e-52bc-08dc8e676e9f 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: /TvRc+lKNhlrTGsF6gernk5AxNDq64C+xCEDz2BvwU/8dIE+09OR3HYnq55ucpidy1PF6IX2Y7vanJL7+o+z37sL/JRdauHu89CtNGbsaJLx/M8AqyMwliYsajdAIhDHdOucGNxnNEaceApmPc0eYLrtcNe8fzGkXBT+AclYf7uqGCyrGSZIbBlQ8220btjCaqAszODeZ3ojztFyK7nNcUyM8CocLm0Rr2kl3EH+1W8hdLNyHrTHBVGV+Gps77zVRjElosjxYrW/wNwNXbCPNbSIS+5IlwQ17huqmehCcB5TiZqplUy82603xvGT3h117kq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:;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: gmqLCQmCysHDfkyxSmi/ith1osJsBo4KzQf72AhR3BpE7fdBBI7K5kpQL7izx00R9ynQG/7Z8ssiz6KHagVZqQ6pfzIiJKXhJDK5M9srXkLNB8Tb9sgRyiVfqfAfpehMiS9ZOEzHcZ1F5i2JL94TfwBcvYo5nV9EQ1C2RXnxN7DRSHcpEvm9/GcySjjNLIpxovVnJR2OySOcddqUYtJHVN6zuwB346bWxq2AdKYoi6m2JMnpUdwmy5UJFsbnU+sQdYooLV0tLSnmgNy2fNnnl4kKCsD2XFU0InDekHE/Vx2cwlIkFG3n/otSwI3JiahYtRBMObsAyVr1keNd1WugrGEVWq8/011krCgJaPggQR49eX2aZWZccEFhyq7as4juFi5DCYmXCh46c9BR43XUOUQGu7EXqq5O+DRrMpkjUj87GTxQ2adg+FRAhmVS28mFMG50iipmYAGLKssL+US+mV/5vwR07rqEJC+U+gpQH2ruQ1KhbKjRr2T6DExCtacMDfmzdJaucwqar6H0A6aGGyhVI/pJ0cZuioXG/4lH/DPaf5oPtlONyGJNP6iBPG1qa1P/NNJ4yi+xF/5BzqZk7idYR/SWy0Pb2hE2nlg3wCBjFpxy3rxDeAFPetEpY5LXyAXF5ulDxlnpsOicHPui3vg6BBmWHnh+BqZnYc3ftASNhZY4KRA49b8KUhGxMOUE5WtnuCvn49BUElv+WLPRKKDt4pSBBkYT8RYzJLzwtSvjvu9pexq8kYiD9stGlNKDQ88PUvKNIiGlexBeH38ct8ghxmrfUwuG31GPcyuH/jAIpTgLF28QCRPYC1m27wMTHPG5e4BXnrjAjWfe3Yd+Ypn+mWa4/V5aC3VuiFI4aF/Wk1nlKDyMiA4UbRb+9Esxrxks2JuVsEw6frT1vlvz9yD1lYxszrrX8nhRPnoD6ZbZYb4RaysggxT+l+luB0wG8ajHbDW81nhe/fWVZWTYowCWQ8Z9r3zhs2WjAOege2sit/w6bTdi1rhekINIcQ7RItRHD2Lh9HTUJytWqi52Yf8zhVv3dUzmka+7x/3gKp2CV7yWU9z1aAXqB+wvTYgG5aR/Q/BghMy/sfo5ScdCWdtqr9pqcpAk+0MZHkdvsN4InxSzcYIWlb3eqqTccpqaS8Vs/GsXhhz2omSw17h/ydPfLzHTCrIe5pG/tcvtTpEbZFboKHlSCxwTp9G/VcDG3zMzt6GEmS1CPSexgQjhuC2ZzZY91aDGq2jBVrHpDLJPyMNOd7MiF9pEeaSOXu4Bj6+LNUaPmkQaKbI4xU/PtcapzF1aq1LcngRv69Q28nHXwZ7KpWZy68Mk5b9LShZ0hAH+y0O27JHccGcz2WpeLwQNhwcmvk9eRhcHR8pLl+fLmFJQyhZ5ZRAUsOepXJX9PfuZkLi7PLfQ3JtgM0zr+dFS+/vXaZ6BL+VAjV47A+kRApH3QDRwIUa6dW1YfCIvYa9Q69RqUpXrxLsXFx2wKV6zBXvuC7LnyiGlZJf9saIWddDsKnkqxxfStsL5UyMdW+hPMoyps5KOW850DpYihsNROEvuZle6aR67nMiGBcwfHYDE8hhNb9qidri5EK2nYYjJ+b8lHOttcO23a6RX6AMpf9geqGiT+dDWIhyzlbU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bae69a42-38d0-422e-52bc-08dc8e676e9f X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 00:50:06.9826 (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: OfzgcXci+zzCUabrcQhHatLMzTETGgTR/qw4Yb0+boNk2FEZjMJLpcKI85Cd84n3+ExGXTIQRkN1tGJXQdjXT8OPcCbT9WYXAo0h4KI+Ew9BuR/8eItTSIoQaPJf1rmE X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYPR01MB12387 Hi Mark, Pierre-Louis, Jerome Cc each ASoC driver maintainer 2 weeks past. This is resend of v5 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 Link: https://lore.kernel.org/r/871q5tnuok.wl-kuninori.morimoto.gx@renesas.com 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(-)