From patchwork Mon Sep 30 02:14:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13815322 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011019.outbound.protection.outlook.com [40.107.74.19]) (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 8A8B7C13B for ; Mon, 30 Sep 2024 02:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.19 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727662481; cv=fail; b=JiJ4l/l8kzhd3vo/BGJWwF+8BcUjSrCtFAbbFaIsM/xbSe90EXg5WSGXGjo9xXvkjNMcvoAl0b8XM7sFluOmwzm84iWaHYJ5wTYiROWSnfnGiYq1gumghhWaZ3u8EmlicNmKOe/GPDeLKn76814EaAQhpuvm6CImjLd/8re4oJo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727662481; c=relaxed/simple; bh=G6O3FbFLkZiAkNzy3cz47yXID6ka4yLo1YV64oO7Gw0=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=PLz0G/Wmpdr8Dw3urtMivxYNZjh7IhDSYGHCysSvgVrOGaPE8jfLTUbUSE9OKsPhuL9znj6A9xBhigoZK8jEPVLOom/OJGTcFuJ3PGiJwANUr70cG62TJHRBKZKvD8yuJkp5OjpwLBrFy1zZAVA71vhB8+nUEay/8wAuEdujrmM= 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=WQbKI8eL; arc=fail smtp.client-ip=40.107.74.19 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="WQbKI8eL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F3XY2v69UuEYegsbntxnTJzjQdb9Kr2r9HWF3gGzraL+QVl8QYkme+GC8Iu4EeeH/FoA4PjWidDhlKXIObpaXZcAqoeQcLCJkmQluGBdcO8bQ8c3x5EKPTU1nu9QMt6lrXmxA2wwpsUkroFVrvK/tyYDMqaFpv2QZl1Asex+cqXevnurxTxsow+/wUB52nCiPv6+5XhgARcrgMKDSgFASJY58YA9+UYlCNajlzs7774t2SP4Vj6ucDSwEtBk+WFlFt3em4+npwHHLP1v14b8qmjEdylZeBnNUwkbjuzP3nOhJucvK+v5FVivaAuIf/enH2mSmpeGNsqI2ToTxCCA5g== 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=CFI9/tZ+iCX79zEhF0xVSCFczVQqTc/RxNEUXk7rTOM=; b=GulOSZQwmbuBVHy1rH9aNiUV2T9XKp+VK+CmrPPb3gHQMLbRi41UerxaxY/eJq3lPk9eVnwgm376+L/RiSJpIjmo22o7oK96aUHgyu6/8090nfd59xVfGlE1Z67NPStVEe9V1ACzhlHbl/Le7AWDOZo648Xz6LyvZ4oJnUNfq5SbozrlArVkqgO6renHHl2kGyKLTERKUl8pHwxw9NkAf/92eRktKDCJHU8IdSAbyLECgb6KMcZuiMY6Du9nndWJjeR+uGG/+SpcMpT6cVes6rcCZplsmvVCT1IK6cBTphadh292H9u81FfSSEHO99YXbt1HB652SHMXLDJosLKsCg== 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=CFI9/tZ+iCX79zEhF0xVSCFczVQqTc/RxNEUXk7rTOM=; b=WQbKI8eLJ1DXH2r33gRyYX8bmzyfTi/x4i1kaVVmuG0ZlfdvJuOYgOgEgJdchXJNhxioxEEe+88ADroLvIfq4j2/WuqBvtLoJ9vPTMN3OhxQ3wRHeatQou+mC9HffKQG401jqIp/4vaF1lHlqX15V9U4a3LdeK7fmWXFwUqpuKg= 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 OS3PR01MB5798.jpnprd01.prod.outlook.com (2603:1096:604:c3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 02:14:37 +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.8005.024; Mon, 30 Sep 2024 02:14:37 +0000 Message-ID: <87bk05lwfm.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 11/13] ASoC: soc-pcm: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> References: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 30 Sep 2024 02:14:37 +0000 X-ClientProxiedBy: TY2PR04CA0011.apcprd04.prod.outlook.com (2603:1096:404:f6::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_|OS3PR01MB5798:EE_ X-MS-Office365-Filtering-Correlation-Id: cf95862e-7fa0-41b3-822c-08dce0f5a23c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 9XdgQSXlp2nO59vNWWy9rrkmSa3gS1Ma4pbYtLBPIYOjjBJL0eEiK2SzI4PH3nd1kad77LUnQQ4qu4dKB6Fb7Xp3pst3kwV3i2vIm6K1XiFWch+jDKKhIiR01ABsZ/ps/SLfP+ESHuyF/4eWMMHsBVH3liTfNJ8rqhs7Wn5qZMQdX99jcxR+IM/1pLBypPyXonqavmjczuno6iVoJHrNpx+F4PHbETk6ZZaE+snRVZFI3Mb3MJxlCjD/6bxrANvHzAttmiNrtlm5E/Nd76RnQPf5yBnq5UIbp8xAXfANID2snw0kURr+sWYMGs6+2JI6iA8lTVhF/q9aBjIMe+ENYiOhe9M28/2PkdYX96W9Srow2x7tU0vMQjfBN3AWvYunIG0j4hNHm70NquocwnVYNmKvQrK6ksFcC3Y232CE2QpXG94953Lbwc0Gr4s5EjYK/emz3CMOAfdQbhbVGcPSF2H391vsUYawrQDMIxtXCHYTfMopwGLBwsqINyDoBm3Q6ctEooYN/ELb1WBaAjsOc6CEoqXYmTPSwZe15KOgCRyjdhnrXCz0f4JW8p5F6Q/A0iU9637isE1wK1Kvkd6Q/a1WNxLdY1DQ4JM5k76LvTAhXVuhp2QfGDn4kfEt8x579rIDbxqjOZfQqWk7ppYskSagpw4mAT4UxfaYbvPDWV45gNzEKy/Lvslu9WCVXqlV0rez/uIXghmTePB5SFbhfYUgl7BI/qqUxWONsDFzOMzlKiTe3bscy9IiX0yOB4Qz5g8lzMmZOSYSqQUUApxA+LCl8aAI8fQqV0HalDYzDBXmtuX9tU3e612DSkg4jWAhYUcp4eCXH/hy/kqML68ptc0dr2SlOVBJeN7V3hy/McSEhlub8Ok22SzJ9hqXZ3e8aP4AP53RrGPDjyLOvFnkGF0yAkhSFg5CQVSjweAkNn4kQRKr4PX9WKqMIa69ow2xBkTlekWqA8UAqihJZmVbx6brc/fsigLNzaZij8b2V5+/eac1VQ2F80sLlyjl3YEXGu97DK8NM9mF39TXj/4fnI90vVQNhBZAYehLBETKrn76H/sHwc6RqesXBongG+jcx1GVO6jIWIlUCMJ7JZlfF0gcU1ecNcVBk0Cn9IfJ5O3eFKaG2PlyWpOcZ8sEtbEwSpC5CsSHgTtCim69LgiV7E8IEm+ulc7ZXret/VmF/3Y5fd/puC6S6BdgAO3H7Ksg5PW8cyTa6WdwiCUEe/tZoN1uJsAmOwk6M+iPGeD2JLZRBgA4cMqS2WUEKjreo7LnKT16Uz5eG3l7Qc66fsk1Vq1BruxafGxG+er59tgEPYGEh2YpjHOb/LFZxCjGthIPfyAcR3CZbXB7f1ikz6LuHeDd5O8fXk//colVugVTDXG1oH5GkGU1l+ZzoRi2jZmaUWC7C5AF6g6mUdE8lcTmmQ== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jzuTKPEbVSC6MYqwwmoBiGkh9I6tRuIMMFzj9PVtuqwVpj8OXzKty2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tea3f1P74rUe0TaxKMDYQX1+7Ierf/ubwlM9QyfYG1hSPxQeOBsWuFaYQXbeymr9xonSeINvxj3XQw2RMmwfxh9EHt7eo27TVoHN0zqd+TvUYOvn4lYtE8l29EJZnEQ3hralOggqgaiN5dD1Sas71HdAsT7qhkPUXEzJw3ca7E45q3YoUKho+fCavs2y1QGtmuUu5YYmJuKKMq+hhrwED9v/feO7QTc6Q1bU6ZmBuRd0T/lQhT1NQfsH2G0Nrt/FWPk2Ru38gThs270CbHo77jxjMVaGQAppjXYHj8I5B7tCRgpc43gK2C6ByXewZkpsUQpHfyxy67zCyaqk9SzaXH1ZMxWlgE6SzK1Xyx/nt1/A7eewBobJLGjics7lAOzfA5qgV4Bt0Q4fyPyNeVafwogeB83RbJM8NMsETl2/ZgQF9mLW/zUMDuz5myvL9NOZ3mnPaJxMWskbpV0B3bVKTpw9TobuNhzwQRWU4+Q6LD7fP1Gl/rn2s/a770ebqTEt6keaWNHM8ZQOABh0CSHPA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf95862e-7fa0-41b3-822c-08dce0f5a23c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 02:14:37.6864 (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: 8IaAwojD1fmqLCLqIu5qn9dmBZ0Ts0wq+opzZJ5DRm1vFmivxw5PAEJr93bfk/GDl1yeVFu/em9T19uMw8xUH+eDsU1ep9eniaXZZjEuuuHbJP4JaGPx3HJcdfvQ7Ab4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5798 dpcm_xxx flags are no longer needed. Let's remove it. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 5 ----- sound/soc/soc-pcm.c | 33 --------------------------------- 2 files changed, 38 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index e6e359c1a2ac4..123a0140a23cf 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -815,11 +815,6 @@ struct snd_soc_dai_link { /* This DAI link can route to other DAI links at runtime (Frontend)*/ unsigned int dynamic:1; - /* REMOVE ME */ - /* 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 7a59121fc323c..27810f6f86302 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2860,39 +2860,6 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd, has_capture = 1; } - /* - * REMOVE ME - * - * dpcm_xxx flag will be removed soon, Indicates warning if dpcm_xxx flag was used - * as availability limitation - */ - if (has_playback && has_capture) { - if ( dai_link->dpcm_playback && - !dai_link->dpcm_capture && - !dai_link->playback_only) { - dev_warn(rtd->card->dev, - "both playback/capture are available," - " but not using playback_only flag (%s)\n", - dai_link->stream_name); - dev_warn(rtd->card->dev, - "dpcm_playback/capture are no longer needed," - " please use playback/capture_only instead\n"); - has_capture = 0; - } - - if (!dai_link->dpcm_playback && - dai_link->dpcm_capture && - !dai_link->capture_only) { - dev_warn(rtd->card->dev, - "both playback/capture are available," - " but not using capture_only flag (%s)\n", - dai_link->stream_name); - dev_warn(rtd->card->dev, - "dpcm_playback/capture are no longer needed," - " please use playback/capture_only instead\n"); - has_playback = 0; - } - } } else { struct snd_soc_dai *codec_dai;