From patchwork Mon Mar 25 04:37:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13601459 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2084.outbound.protection.outlook.com [40.107.114.84]) (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 3DD791C17FC for ; Mon, 25 Mar 2024 04:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711341468; cv=fail; b=NaZ+uOOj9HV+fxu7KFTf63bq4mfcBx2gN2IaFaCS44bAZlQaXIL4Z9i+dNnc0bhav1QoAPHTEDg2cEm02dXgV8qiAW7aLLRQyz69TNqi2bmjtKkxdwzOKzEZzI+luK5wndjn8ff6/2kUDV4r7lwcBxz2xp1sY3EK1GqO89V7AYY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711341468; c=relaxed/simple; bh=TolPqo4VI5Gif/+6G3oNP6FAhQwCwhpzsRmS3bv+FTw=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=Ip5x1/FmQQJ5JGOB9Xvw1z+JEZL6M0TICgqk9LsTuQ+M9BFMHTGfbRZMhEyzjzTLqZocGLso7rwSiypzm4Bate3cs9DDC0LSrmv7W8SrBk1UKlu4ltgFxN4VhEZx/643sL7mM/oV9p9xP/7ImI5oob5rTj4BiMQX96/gaCeBQSg= 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=WGxQrS6z; arc=fail smtp.client-ip=40.107.114.84 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="WGxQrS6z" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UKd5tutlqsbgy3BS3xWoGWcosycB+rhTRRENqzx8c7CWYC/HPYtqlDfA66srH3wOrUstTpUcdS/EEfXQAP7Aio9xwtOPVuo+x+Wan97RLt2ZcZwZVVX+qSrL5oibnDX3jFCQ0ap2YIAyNV8FiKXpJOrcAcfCI1usiW7vqyCyQQQu+ckLJg3/dteQi2NtgoTk88pGiar4a/+/J2ENYDCPznP88FL3nuotji9HbfN+Se5ttwX4kRFMKGu54BcTFultlirwqSA4LRrsTIa7uhSHJmZxL1xtAmoD3p4NXC4/fyMcrSHDtIkgfgiAHzdusglzfdeI5vtkD+32fn/4EnjiAg== 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=ZeiO+8+yFMn2LWLKD+CNighW34j8Mf5HDYlPdHUfdqo=; b=EcVdeNmsrzak0aIBaLcc0o12+jP8hWaNjBskDNgMyawORgxhRcX156ZuQBsr0UHgKJjnaCzOK6VxZDR15+TY8yuQMGgyLAnAw5x+RARdisIcTI6KLoq8/BxLZuFzULIn5jAxQ64z5AwwvV5lyhg9JE8hJiwgLkMxlAH88DAehtWWUcgWagpWwleRFJGroi+NiG/8tpr5cdpTXnW54cHs3tRaamCAjZ31qOqU1f2nkcbEY5CCqOGmtL+XHU29eEbySO+vAaRB9/hmMozbqYDGLiwU52XazkKqw1S33LzS/wk8MwjSX9V2NxGijLrq5q/Hsd68sS6XNQR1pN6WYvkq4A== 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=ZeiO+8+yFMn2LWLKD+CNighW34j8Mf5HDYlPdHUfdqo=; b=WGxQrS6zYbT2/gvCLL8sUpeXC0DDCDwN+1IXC3YHSpZVBEYaiUppAlho9R+CJ1nqRpL6yHWLl2RTcY+cGd3XchYnFolal15ipJAB42xC/wDNJ1fZhkc7mglpSXh8iDN3ljOerTq5IiuxGdEa1QUdkJFEgenNTT04sfMiaIHXNKE= 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 OSZPR01MB6829.jpnprd01.prod.outlook.com (2603:1096:604:137::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.30; Mon, 25 Mar 2024 04:37:43 +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, 25 Mar 2024 04:37:43 +0000 Message-ID: <874jcv53l6.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: <87o7b353of.wl-kuninori.morimoto.gx@renesas.com> References: <87o7b353of.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 14/15] ASoC: soc-pcm.c: remove dpcm_playback/capture Date: Mon, 25 Mar 2024 04:37:42 +0000 X-ClientProxiedBy: TY2PR0101CA0023.apcprd01.prod.exchangelabs.com (2603:1096:404:92::35) 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_|OSZPR01MB6829:EE_ X-MS-Office365-Filtering-Correlation-Id: a35a63d1-5a5c-4a96-3e7c-08dc4c85500e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RMFwGOakAwoYzqu8fUGN/l/9fnuJx0hayV+HESSsgn0WHNnFqgT6e38kJ7fUBQtgcjP2E3jPEgGk+pNmmOH6pvbGd+HOlEAlwb++VKTjxiX+wkRXYVrf5t9YmZ9sOZyyqe+cALnXHNTlLk6wBe/+2ipwzBfuNikSGyQFOgDwnsBp7rYAE79UuYFRHV/b1+E5YZqMIvqXmu3ehY08uFs/S/mX/lGkmkfkZ3ZrROrD9S2jN5Rc0FJWMYZVCW9KjHgeg8KNkJScZx/r0Ew+m7lx5QCaQxIk0CUOWzo1H7w/vKPOBVqDDUpuhaOgA3i8twG4w1OGfg/RwoHZme1VBebDBtvDcB66Cx/BKbFnvua1CsQfrJI7jRcxike4LuhcX7Xy7fo6aZXYqu/G/CjJ60bwt95M09fCPduvC1zYV1k1hi8r8dmBrbHIasGZ/mOupqAL9jWP6TDN0XqGhn2x2raYg2/RW/BFXsJ6ngDeP1ECGCYjHVpdAaClOPI4kTA2ONqpPvoqmqhCCKH/Tvo21oAjQXsaTymlK5Yjzafxj5YCjxVnQqxCzks/WlGdFUSwSo6YdDqsHnUJkGTpzugn6EXxleuovgpEPWkJUGjUjj3ZPxaIYwVvUwU8we4QCh+gVqRqiGRCar6RTe8tAruEYIMXKXGQmpoMwT1Sf2tX+8vad2qkT/koO/2qrWyhH9agy62LPWcSWzE/aMUobfeTzoLg/VHHEfdBP1QNd1G8rm8HSak= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tcA6bz1k+2YvOTmxVGAYd9Rern/vYuzYVNzcSd+hrSpkSd+rZFxyR5hJE+waJJcA//ZE6DT2yFIBcdPL7jNxGUCKySviZcC0fPhIEmNudXkZLXl6xlvKYfxPeKg2HZFru+AWAsKlfXp4euCR3h6BaaRXoUR2HY3STKfd/EhqqzccXsR2JjC856oL5TwVQhfU+IfIqihuMBzZASPNy3ITdqwi90t7CrXQVmwD4f7Weah/gqTrUhJWexUWpCNp42RwkRFKUftl4wfXZ8v8gFVACYe/AzjXRVElUbuPvvOsKs0kzoI591c1NgEkwMpf1izsWkiVGDKBv1gFqM/MSir0yIt0AhDPROaTJns6KAcj6ceBxGhRTfimohIwGixnv4GPPlBbSMBJYsdun2ogxher3Kd0uBgOEpd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NreR8u5zBZxAiWa3F3rFmz4+4mbJCoVmotgdYrP0mP2ed5PyrOgcHboX+kPjM8QF54WiMsYgESU5DeVgMzWLv3baNYht1BtO3R3RY4DbO9/70VNTrONXMuM7xuGjC3zT8pcnx3vaMq3/s= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a35a63d1-5a5c-4a96-3e7c-08dc4c85500e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 04:37:43.8214 (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: ROfZ+4Hm0fNvr/7cZrZZwC4RK82WGJbW36s08fQ9zj5onuv5w8fhcCypZvrwnkVimcnrXejXIdo9n4P82viM9Dfa5U7BV1uuCiIU5puLyhz/+ZUmKl5fpB7do95Mx1Po X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB6829 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 39613b406b1d..6030ad29d2d6 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -793,10 +793,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);