Message ID | 87jzeaqj4m.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 31855D1815E for <alsa-devel@archiver.kernel.org>; Tue, 15 Oct 2024 00:58:18 +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 24746DFA; Tue, 15 Oct 2024 02:58:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 24746DFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953896; bh=GgGhujaI0woWlgYqdJG4tJyAc+dIuukpTkAfJ3dobUU=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=phdGVzF2IWmb+TrNMf8OCk44XfzvQHhewM89l1j+u1E+xYSQGgp+Ra3PcosbKK8IW 69XTDBk/82l1Ks5iZOH34nk7gmyQRp7F6Qng/DNUh2/k8nhrzJXWbRnB1Z+DAH2vV/ m9C4VSfc33IySMNuaaN90lAe2lM8iGn71YxLbS94= Received: by alsa1.perex.cz (Postfix, from userid 50401) id EB0F3F80616; Tue, 15 Oct 2024 02:56:26 +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 13FD5F80632; Tue, 15 Oct 2024 02:56:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ABFC8F805D4; Tue, 15 Oct 2024 02:56:18 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::1]) (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 10D1BF805EC for <alsa-devel@alsa-project.org>; Tue, 15 Oct 2024 02:56:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 10D1BF805EC 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=e9e5fa5P ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ywUiuzxZ20CP6yvjeG+Djueewim+AVxJ/dIdld9y2aGLmWn2IWfZ5+1qkN+Id6lt6j4LqEMoOXtL22wFc9ppm3AIFliys+7YlFKckEoAXoOYzeTsf/pZ54xdYhDu3pfbEfpKhYUOXSwgy2az+CPLBJPkOYShmZ8gWUaJKctBiXMwEptvc1usRB32iUaQqS7h+yH/OaIN8CqEkmHDZbAPQrzcqZeuwUn+5dtJumI3RcaP+jgcKZRtcFYM+iLg5Y52o2hHVcGxCkeLpsDXxUJDXOuMGOkkbLQx/pR5eIDB+8+GDuJQyjqbffud9+LJ4h7GLy/0uaHGGzgVM2kM2dFdnw== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=bFPCVvCqEaplnGllzfQVC0wuZeNCJbzUJhBRJuH+fk60mi9pW3LtRNcCWCffKwbgBMCetWyl+44pYBnR1ESOpsDJohC4hWf0uB/MOdVm72CDCdGPORrHQkVjH2PXBaGkE9uQmDGXBb+B47RwdVVSXe9jcqOy86ANgXFs4X9A50rGERSHNVqVneecuiakDXDvdEYduRES/y8XE320BEPjEhhf3BEfZ/ngE3Go8wtJwnmkNcHwWFWSu/qXhD7oJzRuoPFb/FkKnl641mk3yqKn2simMlEcv+oP0SiDRGQbRI/vCPleT80ZspgwVKXX5xkPcBArKz9+u+tPXISXd+tu3w== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=e9e5fa5PfpCED01vqt/nl4MAuqUxtAYuEDDLsCNpwtdeqlV0dCCkHzUUHwHsdw+PsIgeMToQP2bNijvkgJQe+jbzwXmiBNeKsjvmmxlJt5UBnBGgdjxH0PzY0hSy9c1HBWEb0eiaNg1Ppl4wXsPZPUpr6i6SnW6k5F1nj3ptZzs= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:10 +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.8048.020; Tue, 15 Oct 2024 00:56:10 +0000 Message-ID: <87jzeaqj4m.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v4 03/13] ASoC: sof: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Tue, 15 Oct 2024 00:56:09 +0000 X-ClientProxiedBy: TYCP286CA0288.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c8::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bbab7c1-77a2-407e-7c26-08dcecb42884 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: dIQdUl6ErXiuCj/z6JhJYZAnIBocg99KLtYJMgs7MfXeR7SlN6cBzSbYGe4bDT/Qq5ZX/eI+l47NueHbZq4sz1qwNoMBm94SfY2Ub3suIduv7dpdbn2BOxVrxLuzJNn5I9oqrzIEyWY6MKKha0KFdmSQesh6Xi5A2l6xspwrLtOSns6bsyWM2H31mLKgx6aKbyaAQuwO3KHQQn7+N0XTpOIgQqnvC5pmG4NwgeRSnvbD1/Wo82stsW70d5sMJCJA1wP+k0uz/iM/tk5Pt9lM5i6YaKVu2QN+lUZReXVUJ8oRAnR4OL2kbTx3IoNQ6H79te/9+4z0yibzTZ02zn4zKGhS4gwHy5UIRrEir/U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M;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f4ETCx5mU/1AOOo4tDIf+j6jcqQBy27QPysuZVNEyQ7kCPgf1zTpg6AXZM3wo5Om4AcBi9MYNdbX9RLrXZOSK7IZ3fYmiEhVZBSWe9pnszEd5dx8LQ4YgfdYB2l2XmE1FawtnsKKv0fJfehX2ud1ifRy1S8g5qUKTb+CbPbpN9qi97laMfwpzvffqo8a99yoXqnAse5HZexO4nkQaWf7Tt+eXIi1Ufq7hZgZQRLLmwXw9KiVX6etgAoAeopu0NPGAkBcXTwVnS9Pp5E9SsgQJegUyMBatnqtm+MVK32yRSDwZJzwzOzy93+JqxiVPZA5xalLjYclTzyU7+gAlvUSoM1H/D5J0XSXuFFffDNaMMonO3+Nx/qNuYSOHat66FAa5gJpAJO6RsXc+6Qru6VMap/ZAsozyRDuYynvf0vcxX/dOAGO9XZL4wdcCRhQtUDlYBw2BUBPwDRqoXe2KGPAxCOMEVmBRmydu4OKrFna5RUwHYKsmJPIFsg9eBa/hURxnGc+1rfPTle9kddoZRm2HgGVotyT/ydzFN6Sgq7AoUEXKViwD7/fD5ElEZGlUc1HxKO4B/xbkgIjdqDeuOvD96S5fMrCeuXmg5JknvwgMMdALhwZlAl7AR58WgxOTzyxNlaLaNK+It9tAm//NnVGdWAJtQHIl1nCwkdi+pA687ny56vPfdkgRpXEXerlPsq23x2yFCEDVu1E5EOS/YJg+9psbuV1pD/YI4EmZfsyXR1o3yw89pxSzdi5cKOuzCpzquPoVmSBxKT06iWqgiAKB27MkWN10sw9nP6nL/oWJ6qczpPlHQAeSuVXZlxJNOam5LQMQ1uT/kkKU+ke9R/2k5Mv4Q9urrfURkWnD1M7EOVz27DNO0UZcdr7dRVu++HAJaKTUAqXESHCqbyM0e6Ig4xizqIkaP1VNUpPLIIfJQ1kDiXwvlTfmj0wfAAOBRr181WTuR6/v1AEzhWItg235IK5wmReH1h43Mxi4TEWmxZfAC87fIeYfxW/dsBSFQdMuR9iwIlVikqiJ077I50h4aqBkN0rOW2P3uGWjy+Ilbkr2JYwi23EYxmbQ1L6hi1CvRBALISa42Vm87dT9j9s8DOvswEVSjR4XLrrUxb+nOTtLzdOFGjQwNzYo5yVyLcLEhxTWUUqrrEoZAe653zuCfPlFHqScaE27ecj3jguQvYdNRxyniCCkV/OX0GFVgPzAgkidVlO/tvmR725wykFtXbwPYiErl3vQSgq8SW46UeQbT7rY93pvgPhG4bD9axzqzTNvIMk7LQhpNHUuScpkh/1jsXKJ1t5UJ3daaAJHgjrASO9djlrm7v8k1SuBP0El7FxgVjxNRJ5m76sgT2VDvnJn5Sow2vkCks6lPL/y0oKNuSiOhrujpuMUdrk1hu6k2RpVG5ccsf2QbZWW/G64TMpcYMqIcXARQ10REW6lEY5I0hSuRb3S7EQ7diAWc+o9gSpZ2Xadvz9ovaP8CicayS0uTL7kYJGgs7m3UojILSC2syiCOAxiwnaO+656u5aCkLUThAcgxtdgR31RjUS7PLmaQDdbWG8O783ZXgSD72ar5Tllu92w2xMbjNrhAvlaz4fcqrQSTC9fepTdrLQCHTaxmXmMs4XD+OOyEpncF8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bbab7c1-77a2-407e-7c26-08dcecb42884 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:09.9066 (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: WVudaRAb1XEgqMjhmAcZQ3SPl3jnM7xTORLW+4bXMJxlDnd1Mo7p3heYzcUZ6b2aiLZ3Z+1tfk5vGN8uOPCjawkiGK+tDqKXbE5pRs1jyKPZ9BsmEYJgek9LZbZMV4Zh X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: RKJZ3CVKWZ4SOZY5FEPBF4JEJOBMYQKB X-Message-ID-Hash: RKJZ3CVKWZ4SOZY5FEPBF4JEJOBMYQKB 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" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/RKJZ3CVKWZ4SOZY5FEPBF4JEJOBMYQKB/> List-Archive: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Owner: <mailto:alsa-devel-owner@alsa-project.org> List-Post: <mailto:alsa-devel@alsa-project.org> List-Subscribe: <mailto:alsa-devel-join@alsa-project.org> List-Unsubscribe: <mailto:alsa-devel-leave@alsa-project.org> |
Series |
ASoC: remove dpcm_xxx flags
|
expand
|
diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index b12b3d865ae30..c0c906a78ebae 100644 --- a/sound/soc/sof/nocodec.c +++ b/sound/soc/sof/nocodec.c @@ -55,10 +55,9 @@ static int sof_nocodec_bes_setup(struct device *dev, links[i].no_pcm = 1; links[i].cpus->dai_name = drv[i].name; links[i].platforms->name = dev_name(dev->parent); - if (drv[i].playback.channels_min) - links[i].dpcm_playback = 1; - if (drv[i].capture.channels_min) - links[i].dpcm_capture = 1; + + links[i].playback_only = drv[i].playback.channels_min && !drv[i].capture.channels_min; + links[i].capture_only = !drv[i].playback.channels_min && drv[i].capture.channels_min; links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; }
dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- sound/soc/sof/nocodec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)