From patchwork Mon Mar 25 04:37:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13601450 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2047.outbound.protection.outlook.com [40.107.114.47]) (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 037C11C17EE for ; Mon, 25 Mar 2024 04:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711341448; cv=fail; b=fgFLX3V/rhJ+VhqyeeWQQswa4mSisigWPWmaYn2iRdQyCzhqQDLwAbsUcMg1VY/BGL4eT//e54ssYvWUOLujnUOrep75ZI4twL6maBslvG0hEDP2YfWbWPzMhSk/CgOBJpbwYn3TZBRIEO/vnvpMIrtP1uKr/IY5bVFHZVSaAmg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711341448; c=relaxed/simple; bh=DPuUeCd7Dpr/sJnSgppSnAxf+rBYlwNnr98fPzNYNbI=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=S8xcB72kDa2m200cwql8s31RKIj5rtaCeyLmVdzNzzlsoqRdcBWAJd+lHgTqZRkWzk2Jt5x7L/cx6SNyCdoTVOXTldjlkZTZOkq5tl9jL/oPmEyj6mTZy9wvqIeO1xeNjXN1exA3stOS6r929YFhTN65gEIVDq4QxxTjDUzMtfc= 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=iTvGYzVe; arc=fail smtp.client-ip=40.107.114.47 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="iTvGYzVe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WfMzxY7ebRhDvSuCCbiwYAIA3JAuzg+e0sB/qyr2ZrfjTwXuYoKvrREIryUANd1qSfzXIyT2qeCwqO1GSLr80kI/Cv6K/tK/IA+olI1vbZpeaWiS3Hh0OyAyCcS7sA8sOErhVvoxCbQL8At+eXgWIj/SEQi3Ig2mItoCS4oxk4ZQ/s3LDle4umWr3VOLo6j7meuhz6R1amnWuyirfgAe1pj4l8ympjVEAgNPdkoMwWPNqR5xJzK6Xs3yAn049nKHz+AEP2yPn6v2+56luk0UDuH6dYIvGetDqplIgHllDlLd5HS1yUCLvh7EQjXiyh8UBBCUSAAiMR6OoTWc/bh3UA== 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=TRJXtGB5f81kKSYvRKorDfNJVsGy+dRrmsrbI77stwM=; b=hOnSEJusWPV44utBUJN1gpyrtJqpywGxqrkv1JRG4c5nR8yqydkm2+KhfHl9wsAbWDkTyo63fe/AamBVhcsGSY6BMaSipqKrx/8AD47OiBshrJLnDQqMyBx5rKFPV5nnkax3yiX1UnmUwsJmhWGwNmTLi+UH887+p4jP7dOv4ZK03DOlFRhdigp/gtncvQqUpQ4mYtvyo9t3kIIX+LczcXFI/2grh8QE7uPu9O9Dl2jORQ48/ly9O57D9qCaR5MDnHo0Eog6qLf+VD+jIsHAa3LEEpwW3yHIpF4XNDh2zTadin8mjySAyGiZXfckCGm9iiWpXwOhNUQQ98Iaq73/lw== 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=TRJXtGB5f81kKSYvRKorDfNJVsGy+dRrmsrbI77stwM=; b=iTvGYzVeVD0QuYgcqMmHiN7K/FrYzEEwxodHF/Xa26dGVrAn5wkfeGKdW56MAaHL4HD0TxwRGl21itruhMZPNyQ/HpEPBGJfxdV/Sg6Yyqn5/zUgbjFzXOp4Nu2vt55BgAZUSMA/WNYAy4Kcum25BA602T/+hzz+kSfYYPxkhAw= 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 OS3PR01MB9512.jpnprd01.prod.outlook.com (2603:1096:604:1cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 04:37: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, 25 Mar 2024 04:37:10 +0000 Message-ID: <87a5mn53m1.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 10/15] ASoC: soc-core.c: replace dpcm_playback/capture to playback/capture_only Date: Mon, 25 Mar 2024 04:37:10 +0000 X-ClientProxiedBy: TYCP286CA0100.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::7) 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_|OS3PR01MB9512:EE_ X-MS-Office365-Filtering-Correlation-Id: ee36fa4a-5c74-4efc-66e3-08dc4c853c5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WkQdv0cmqKAxY/b0Vj4LI/bQco0gcj0bM/l3oD/lEcC1g+ormZwn2djYYa4eUxTBlzHnNq6JBhE3K/bDw7OFFIzPyJ497ys4AFgxL1p6oisEIDmw4pNU+jjI3n8w4YCKU7Cu2HCFKNxye6ykmbz3BDdS7y22JJs0fvKwi9ZePREB7b7na9nVyHUKgt1nXR+8QaIUCnMWWfU7BeJ+ZFlzsvGfJ4XWu1bcift0+JylplspnZDy+Mfe0giJXXg9ujpl6osmf8jZCkqUhxWnA4LRtRVDSbVEyu3JGME1u0iV7dG9x2X+bwturJXxjOqvVO96yXe6ViY+LmlrbB8IgPVJHYG+TFBd96wPkhGsRqTneT3V4CLHSfyGsVJpzGLWWU6pER7u6ewCQ1w6H/6tYkb7dj5qNclU0UNQM8r/XKnZBoAPttYUyeLAQUJPD0ztRjsjnGysEpBg3tKa5CoyRXvA+3uNtg5u1K8rUWA7TJ3x5pTajorhAua++OJyj/7AxAPwyJUurNCuVWd5Mgl95PZB84ikqoLQHJDVApoRJFhNwGGSUXoxadFrOgltMxisaCEsOMa0BAo2n6WWGc8NTjt8fvs+ZQ2cn/0YF1gfeANc42NCS0kD8hP3fP1nV6nruIcORqmP6BPoefmbG6lHnBH4gYhv0oa+mFn8xZMiBD4RLZOtcrD98gbb/WtJcU35OxWFMC0lkzPNc/sQ3K1OGQyS2wtk1Ip/hhyAJctmj/X1kP0= 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)(52116005)(1800799015)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-2?q?8ozDHpS31hUoXhlvHbBC3/9?= =?iso-8859-2?q?LrQKnAupav5YfUgQwat8l9fDK+xQi16v3B5kj2z2AY+k/R8uph0C/JPn48zV?= =?iso-8859-2?q?yhEItj+GyOsmIbGDsvRcKxVM8/5j5ZNGDKdH5GSjXnxM8qsWI5RfOdjcFBe3?= =?iso-8859-2?q?lXS+W8cGgnv6G6BC1XCkrZ8ZVlUfCqIf+527m2u397Rrvd1UAsy1FKxTtTqC?= =?iso-8859-2?q?R4OJOHbACu0omYhwLjnft0gxzpvTT5pVKlQFs2pMnibmP8Zc1oTQWn0hqi8I?= =?iso-8859-2?q?dewEhsaV9RP8jLa66rAA0rYVxE8BcI//ras9/MIiuh4MxzODN0bZXa+XiBg/?= =?iso-8859-2?q?LTM5HzpIi+A2ZQrfBIUmjZp9+7w589RkhPC/WbhhL2ySsi3V7Na8/hfrQBuk?= =?iso-8859-2?q?5Of+qy3KUMkaIm+OAajKDq9T6QInaJI6JElmrakwY2utP+vU0c14VcCTYpOa?= =?iso-8859-2?q?oNMwo25e57loFXqtw2it9LoyL0XDGtA8hwQC/g0DizWM7Q8ysezwbov3dydR?= =?iso-8859-2?q?AIuZuYKIv4XXt5JklwIziXnbbOxdMaz/SbqfCD54l/+YXg9C7hVj1TBcnauf?= =?iso-8859-2?q?ZCTbMNE6rnCcUlc1v462YD4g7NPFY5E4nUKXI2Ljx/D+KTxbnyCbgx0FLnKL?= =?iso-8859-2?q?K9zbg9v3V0GC23UmRs5vihGnDJBe0fXyjItavhk98cgonI4Pwr46yjvCVyUI?= =?iso-8859-2?q?acuSnow+APlcc6Xc7C0IYfGbHBL+8RKDgGJTLYkFNZbDk5wNqBr/71Nchvaz?= =?iso-8859-2?q?I+hK1tYsvoqB6eN4P6qPOhkbeYDnp3EevnlqfxG4qJ4ITamrbZ9h1JtwtKGs?= =?iso-8859-2?q?cDJSrLJz5yM21fuFBCfsAmjpidXMtu7lYCvB0oiDh/s2/ph3fTB1d6wKC0bX?= =?iso-8859-2?q?9DJ0WR/DAWA7X38NrGfivgpH9txyhauxDQ87BIm7Ncce7z3o/ciLJRupOjXX?= =?iso-8859-2?q?bvVEF3wNQQAM/RNsNJ4RIBaG3Ol0Km0vtmaR+9TiizVcEwEu0HgOiWVmPUsh?= =?iso-8859-2?q?3qKEC6GDpJl6k0NUceEN4PY/3K9RXLdWBzAN8+0R3wgc7EAexiZ87hb1SEkR?= =?iso-8859-2?q?ClpSKVZYQcdK4zXj55AqjA9rKUF7Su3xR5gzh3hijAWwkegmlX4ODYEXnx2h?= =?iso-8859-2?q?imBukXOy9r0JILN98vskjba5rPm9pi3NWxNpVK5JiuO0+/GQ4drhbLzwkzlc?= =?iso-8859-2?q?8m6sLnERuTQ7nnkLUdVYmLkCLgnnW9zMq3vNss8LBuJlzuBSdj8WZfcfULpP?= =?iso-8859-2?q?lUZSWut6JffsbUgpbB/DLFzFRiPHkHvVOdWWf05SdQWQmmfS/CS7qu3wwNAR?= =?iso-8859-2?q?F/20rSJXvX8KRD/Z4C4Gwq2xXuQvPYnuE5aIVTrmouek0SMZ7pjNDiBUWQan?= =?iso-8859-2?q?OirDpweQpnEIeqN3tBZokWVFyORTxpM7z8bDdQOJDcACxY2GFEm8W7PQOIlh?= =?iso-8859-2?q?SEIW+0jA5N8sYFlfjvo2Mqh+LwZI6hbVQeCIWcIhU8gtvUnYAzxgiG6YHec5?= =?iso-8859-2?q?+VhCVZOeZE9JFBUYcGP+oPtOn/ok22SDY6GG4VhSAjOmitKT3m3a4fJe1gM1?= =?iso-8859-2?q?+no3ARNLKLBrNFAzjR11MiKtoTCOrFGTsosVApXVQjQDC3fSsU9K7b5lvGRQ?= =?iso-8859-2?q?iW5HPMQVo+32V2aGioOI6J6t0hsyDht5j/rO62C6wpSQIp4Ei1x6vyZmRURo?= =?iso-8859-2?q?=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee36fa4a-5c74-4efc-66e3-08dc4c853c5a 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:10.7544 (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: wLVMJJkzbtWDooup/o4KXmTftXywYvl7zyWG03IXftDWgm1+5sN/sqtnOlBFzKQ/qxqJEV9zAnFlLaJn0XFjnzj6nvdMW/HlV5WkTUdUiVn5ezzdh1MQTgxJ/VEb7VqB X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9512 soc_get_playback_capture() is now handling DPCM and normal comprehensively for playback/capture stream. We can use playback/capture_only flag instead of using dpcm_playback/capture. This patch replace these. Signed-off-by: Kuninori Morimoto Reviewed-by: Amadeusz Sławiński --- sound/soc/soc-core.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 2ec13d1634b6..20a3b9f127e1 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2000,25 +2000,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card) dai_link->platforms->name = component->name; /* convert non BE into BE */ - if (!dai_link->no_pcm) { - dai_link->no_pcm = 1; - - if (dai_link->dpcm_playback) - dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_playback=1\n", - dai_link->name); - if (dai_link->dpcm_capture) - dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_capture=1\n", - dai_link->name); - - /* convert normal link into DPCM one */ - if (!(dai_link->dpcm_playback || - dai_link->dpcm_capture)) { - dai_link->dpcm_playback = !dai_link->capture_only; - dai_link->dpcm_capture = !dai_link->playback_only; - } - } + dai_link->no_pcm = 1; /* * override any BE fixups