From patchwork Mon Apr 1 00:32:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 784861 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4672DCD128A for ; Mon, 1 Apr 2024 00:35:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 55A8521E0; Mon, 1 Apr 2024 02:34:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 55A8521E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1711931706; bh=TmlOvXBhNvphqUYJHWXsXVEKoYgYiZlok7JTPgJBQdI=; h=To:In-Reply-To:References:From:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=jG6MoVBaCn3L+QnNp+XbqVZwughC/CxrPZkbQkILoKr6eY+bYFsmzxdP3LhjvGBbv XR1GdEzdjbQnS0I/jU+bQeyf5uhHwSkcNFSbR1uHJqi+Zwvbd8nhG+KxK3j+KvXPeV hmd4UrOpuq20dUS3PlvA9mnU9BCm5R/jMANTeJQc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 57195F80715; Mon, 1 Apr 2024 02:32:27 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 369DFF80710; Mon, 1 Apr 2024 02:32:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5DCECF806E1; Mon, 1 Apr 2024 02:32:21 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::701]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 057B3F806AF for ; Mon, 1 Apr 2024 02:32:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 057B3F806AF Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=KRfWjik3 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JPnzxOsTmvPp+3Kw9JksytEVOv9KHr5hBfMGaD4DugtqdD88lIlHGOajotby54J6ktnHWzpUtiM2mW3EAvfkZ1heJWA10Bkwsqn5N5XbHH1BpVXnflhkHLva8qk/arjFA5JGdQTxeRR35TQ31vFYy0G/uSZs9pUQlDU1R2pwLyS20d88TidKd8JZnQ2lOVkVQAfPta90/8DvP/8lAwoFRM5vSzauQrOAC6IF1rcdiZFYpAEO6Q2gPgTeNJK/rSeaQghyjdNDb3hCnIY0joEZFSOaf/K8HfjRuDPSKd6cjHlI8fIKVz7vo/in5QrPxlBKKjCo7/qgaCt7YpKvKv0vCA== 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=5EFcZ9zOsR2i5pVtLA9Ool8wMdmTWlqPquMYdfKab3U=; b=l8b/BZvM+vVHTNPVK3xxHFE9fXFFDaCPm7U8WsL8IhehSAGNG9gc1SxVk2CSYd9Z+yhW7f7VlcETkrLLeaKeHBsIjRaM0pCTTypVZK2zIJRL8ia6/Q0Ivk/wBmXZmt6aWx+/VJeD3qFeWJbrpqxjv/GLEMf8FW+vmw2m0ymy76Ged8BBnqyvwZP8h1UkanaQAOFOEJer6F3p3bOzqiK5iQ7YzBRH/dyLqHEibuTg4137qMvI2StvV/r0yj+HPpJtVTAgioRDhep96bv6+V0b6BM6HqlpB/xaRLOWgHTUaraTbTRbtwUn7SV6HR+HDwm5Z+FoAk7B3lPt1wWnRS+3vg== 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=5EFcZ9zOsR2i5pVtLA9Ool8wMdmTWlqPquMYdfKab3U=; b=KRfWjik3p1jWMnre/UoHnXOEEHAWTMwO5SIPWGUq52/Hv4kzfLnbvpHsJt6htDRRUCHhs2O6zTJFszf24J2xPMk+qqldc15IBPd8X8MXvZpjZD8fWs+dBHMoNZ0KV0TF5V85PmJovxoE1smGezbDCf9QUp7D+cnNbDJgPZ1bhrQ= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TY3PR01MB9964.jpnprd01.prod.outlook.com (2603:1096:400:1df::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:32:10 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:32:10 +0000 Message-ID: <87frw5udme.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-2?q?=22Amadeusz_S=B3awi=F1ski=22?= , Alper Nebi Yasak , AngeloGioacchino Del Regno , Banajit Goswami , Bard Liao , Brent Lu , Cezary Rojewski , Cristian Ciocaltea , Daniel Baluta , Hans de Goede , Jaroslav Kysela , Jerome Brunet , Kai Vehmanen , Kevin Hilman , Liam Girdwood , Linus Walleij , Mark Brown , Maso Huang , Matthias Brugger , Neil Armstrong , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Sascha Hauer , Shawn Guo , Shengjiu Wang , Srinivas Kandagatla , Sylwester Nawrocki , Takashi Iwai , Trevor Wu , Vinod Koul , Xiubo Li , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-sound@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com In-Reply-To: <87zfuesz8y.wl-kuninori.morimoto.gx@renesas.com> References: <87zfuesz8y.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 14/16] ASoC: soc-pcm: remove dpcm_playback/capture Date: Mon, 1 Apr 2024 00:32:09 +0000 X-ClientProxiedBy: TYCP301CA0001.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:386::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9964:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5irG6OYFVC9cnY4qro3qZcbpOC2De4BCULB2TMDbMRcnOEsxCCoGKpGr8YovuV+pk4imfr2zcot7nvkSj8dEl3Ku5xJAyKDZtQ1F0afUuGf1XkE2gREx4LgqKV0/aeYspAiqOUq/cBOR9kOG8+HOOoCW3VYiqz5Fk6Zv3AnX1Hswp/OcrnraKWE18QXAG2U4FdQcmP8hGL6fI4HFoTO6Kjz1j7cczWBzkZUSfEZ2MWV0G4gy+1aulo2Y0Lf/j2SSMo+9HBRq44SGODdgjQ/1Yr+Qn8LK+MXqXDaocmkw3GXuSXjrNVgR63XgA7ozpk2p6j6PrGQ9PxVpMUROSRTncOtkSNb4+v62Gyrhxcon9TrsIcifaqJK6ePLZPFcc0fN71KZ/PfJNjrunXjCkHWGjwt/Ed33+sTxPwRNzToRea6VyY3h5fuOAnfy8kmthMNbkEiknk/y7UV9dLxZ33p+78fTOSIrXB82EWXEN9ULhFOkSs4wXyEdErPVwIy2dML8YYWM+93B5IT8ExyEj5jIsIAys/IJ/T5Z17KPAO3HjgkIyYv6lsdbsj5I1Tt8oGfws4rS99Y0ydSBLHMchBq56fyCv8zYnLsMFxzQP2UiUSER3TNs+KSe8+ZW0uqd1jVmTNpZmwLgLBnabMAil/mYmiaZrh/3WXYRZsM0GUStPty5UL5gcD7ElOkmmFGNiVkWD5w28GT3tG/c+p+tEHEmMXT/H4DJdgEz6VNcI7ER3hc= 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:(13230031)(366007)(52116005)(7416005)(376005)(1800799015)(38350700005)(921011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IVDS4MrXd8qbN23OgJbFPRjQa+2H1epWI5dqDYuoNuFgJ/j54jFz5eQXQblAaMVxpt/rHuy9zsfvEpLAxlnugxfm2MwAp8Y/YOKM2c2u65CSel9hIdPuIVJ5/9tr04i38rnDaZboRNRnBtuv77bPiy4z6Lcu5AVzl10i7qMcx9R8bA9F3RFrLbRE7k5oM/1ei5fsfQNrn9Lt3ibSouynWZ8zp2yH0smaUA38Rj5F07cf4NkNqy9K+bNbJXxYmCNSrSuU3DQHQ/R22weGIgcz6K275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lDpRTeIPgLeV3dqjJ1nL/nIWLp1rtAn94Bcxf8Fr35FrbC2c0Jt+41AMxUPIDeFaUzn5ajCH9OrVwKpPOv+EMsJ64xNgjtv52wH9zjyruI2fpJk8bTxtMphrp/5YgbduwgwT9T/V52H2UvUblUfVY+7jqus6Wxo7jMMWgFkYLXWm+Iidnlmte8ktjHBEuexE9b5g0VPowRt1jmKukc8YBMf/Baz3JKrqicDKa7EeuKlXC/P3SYVoAyjW+OyvpklSiggUwzCQ/fQVr9SHt+KCbZrl7UsozxrHRrnU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85d23694-a62f-4edb-328e-08dc51e32aeb X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:32:10.0582 (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: EyUyM4PnHYwer7Qc/nXODpa08omezyMs43iSNrsUp8nK82oZx3HqfvU7kFM3rFxsv3cSIdwAgu7m3SPQJCCVIBiTVf9MeDvKKvUdu7MHkGp+EfIdxQ/NE8YL9LRssNxY X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9964 Message-ID-Hash: R32XWGCCYWFAK7IMVVN7MTXJXC33RB2Z X-Message-ID-Hash: R32XWGCCYWFAK7IMVVN7MTXJXC33RB2Z X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: No driver is using dpcm_playback/capture, let's remove these. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 4 ---- sound/soc/soc-pcm.c | 12 ------------ 2 files changed, 16 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 0376f7e4c15d..6ddb45dabb04 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -805,10 +805,6 @@ struct snd_soc_dai_link { /* This DAI link can route to other DAI links at runtime (Frontend)*/ unsigned int dynamic:1; - /* DPCM capture and Playback support */ - unsigned int dpcm_capture:1; - unsigned int dpcm_playback:1; - /* DPCM used FE & BE merged format */ unsigned int dpcm_merged_format:1; /* DPCM used FE & BE merged channel */ diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 8761ae8fc05f..ac42c089815b 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2808,18 +2808,6 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd, return -EINVAL; } - /* REMOVE ME */ - if (dai_link->dynamic || dai_link->no_pcm) { - if (dai_link->dpcm_playback && !dai_link->dpcm_capture) - dai_link->playback_only = 1; - if (!dai_link->dpcm_playback && dai_link->dpcm_capture) - dai_link->capture_only = 1; - if (!dai_link->dpcm_playback && !dai_link->dpcm_capture) { - dev_err(rtd->dev, "no dpcm_playback/capture are selected\n"); - return -EINVAL; - } - } - /* Adapt stream for codec2codec links */ cpu_playback = snd_soc_get_stream_cpu(dai_link, SNDRV_PCM_STREAM_PLAYBACK); cpu_capture = snd_soc_get_stream_cpu(dai_link, SNDRV_PCM_STREAM_CAPTURE);