From patchwork Mon May 29 01:05:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13257983 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 91858C77B7E for ; Mon, 29 May 2023 01:09: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 70B91950; Mon, 29 May 2023 03:08:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 70B91950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1685322556; bh=YqJpV+wa+eh/1atWvJawt5Z+jctdtUxKrhSoOn5Ob/M=; h=From:To:Cc:In-Reply-To:References:Subject:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Ti10ZOCY0Dqdc/MWA5/WM77r+dbJ3GSQRSNYL4IMHYbKGP6FuLPiRW6xN7Vc4Eq/r hk0K681ZugpQ6251Acn6SZmwtVuwihH0adA1OCPMmB6mWwNDPbTfQvGRVAgL40gK6Z MT7ZQrJrN5BbTVx5douRSaWjNip1gRE8Tw5VmXio= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 761BBF80607; Mon, 29 May 2023 03:06:06 +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 898B4F805FF; Mon, 29 May 2023 03:06:05 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DDA3AF805C8; Mon, 29 May 2023 03:05:59 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20724.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::724]) (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 CD8DBF80549 for ; Mon, 29 May 2023 03:05:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CD8DBF80549 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=pN1KZ5fW ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OhwY0YeqH6kWJv/dyx3tqq6nCO6dSl0r0ra2aN7FOmK3UunvXIjipqkapQecgwqNX4oqDZ3eA/+xlDb1FpbP9Sin3zwhO5/R3uxetXQrih8aZhb0Kdi73g1fg7NdSiXso3PNF9vRzebZx0aBbHGEO8FDqa6WktCPm9OZiMi6k/TnWZaCi3ily9m1yBBTNZbFNfwLoIA3fIIVzhB7s6XnOOOtu7cy+SBJ8hJ5AxxPloe8BC9K+8QKjaRB7k3RU6SN0pfzUY9bO4QqXbLfp9Je+nCwtCT4J8L2i05+Y6j7XWWFzUErbaxJnyx2mP4EHVGYg6K3vA0FGfgPrcPDSQPuvA== 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=hVk8l+qY3eox022LwdgTxhzFUmt3NGvSxT+SY2a5z1c=; b=ZRNiERPAMrZJ7Qp2f2+kysbyx7j6qvp3RiIUhn9HE0NgoRJ/l6zwWfG23IUai/DUQ37LOV0koJ8ydwiSTgwAudOVE0+RPe3qqVOED5ED5PXaWUCVzDp3t6qsabWJn+PyffLA8jb1RZtGA+8Z89rJNEsjCyAxFBHlaA7p/mbEpvMfIgibZZCVhTCXQtmV15Mcnz8G9VE5D4e/kHKrgmq1y9gM4AgS3e7EXtErkCqKYmzCP6bSrzs44IvruB+LdXhAjBtV8wG/hLcPryFM/cs7mWfitMRFpT5Bu3XdB1y7PIO+G/auHyc1Tab664yCFVmN55DdF305u7W/R3VkHf2LVg== 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=hVk8l+qY3eox022LwdgTxhzFUmt3NGvSxT+SY2a5z1c=; b=pN1KZ5fWtllN0dW4t5AMk16J8qW1C1idgBHOrkPC9O2yIXRz0UwAmyIVt9kWVYOoY4qrM0vaUyF8M+bnCc7bWmtYAUNmjrZc19PjGCdcfinU71esJ/fweQIE7X6JrCEbVpiipqxietDaQFRTqdDt9AQAbxKB9C2I4jAwhFs3l/k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYYPR01MB7952.jpnprd01.prod.outlook.com (2603:1096:400:fe::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.22; Mon, 29 May 2023 01:05:44 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840%7]) with mapi id 15.20.6433.022; Mon, 29 May 2023 01:05:44 +0000 Message-ID: <87wn0skkuw.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: =?unknown-8bit?b?IkFtYWRldXN6IFPDhYJhd2nDhYRza2kiIDxhbWFkZXVzenguc2xh?= =?unknown-8bit?b?d2luc2tpQGxpbnV4LmludGVsLmNvbT4sICAiVXdlIEtsZWluZS1Lw7Zu?= =?unknown-8bit?b?aWciICA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPiwgSmFy?= =?unknown-8bit?b?b3NsYXYgS3lzZWxhIDxwZXJleEBwZXJleC5jej4sIExpYW0gR2lyZHdv?= =?unknown-8bit?b?b2QgPGxnaXJkd29vZEBnbWFpbC5jb20+LCBNYXJrIEJyb3duIDxicm9v?= =?unknown-8bit?b?bmllQGtlcm5lbC5vcmc+LCBUYWthc2hpIEl3YWkgPHRpd2FpQHN1c2Uu?= =?unknown-8bit?b?Y29tPg==?= Cc: alsa-devel@alsa-project.org In-Reply-To: <87o7m4lzl3.wl-kuninori.morimoto.gx@renesas.com> References: <87o7m4lzl3.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 19/21] ASoC: soc-topology.c: replace dpcm_playback/capture to playback/capture_only User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Mon, 29 May 2023 01:05:44 +0000 X-ClientProxiedBy: TYCPR01CA0029.jpnprd01.prod.outlook.com (2603:1096:405:1::17) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYYPR01MB7952:EE_ X-MS-Office365-Filtering-Correlation-Id: 7fbd76e5-e5ca-47d3-c6af-08db5fe0d47e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ci+dkmaPXsSsiVtbHDHp89xhPLBGBr1pq1ciKf7/ijlkOEf7aY81q4XQ1cTmtsxY/XypVR9+7URy6GaN0x+WT/gLCdrUusdp9ZeaJty8QcCGpBUTC7B59sGqXmD/epXWMZwy2HCnv79VJRRQxHA4HgT36Nbh0MsHnzILriVQwm4MVx+RmNCIGuis2jXZ3LCCJi1+HTj5pnkby2B3aX7v6CZiroy/5uhjokxxCmjTbxjHn3/ZmSEH084jj7vo90EFy2kBIG948iqc/CyHd7M6SoKMNdaXoTgx0gFqBMFSeAAC1caRSMp1cCgecifx7Ash/bcXhurmD9kIEMLT9twNLnthyza+myeT03rQ5ezRuwIMu+vM9jkzdc1Bs5Fi0KPXLOmdxKtJmf5U2qpitqmENmbn/cmtvQpLdc2MwA3vcFGqQI793yl9uhP/Ar9uNwRppiftOamgKYrMnaQcWcmNtWfqzN7OP+CjgwGHW+aXvBEoXLka4BaG7/uyU97PWi+TqLW64JMicMqwkq+yRW3kjvQSYVyyryl7yxlO9Owp9R6DifnnilWLNOuC19NG8exBv1wyBfB+BK1u715j+PB0TlOd0J+2HvVA4n1P+v5NNLtl+tnP4EG/wmzXbuanS2c X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(136003)(376002)(39860400002)(396003)(451199021)(2906002)(186003)(6506007)(6512007)(26005)(5660300002)(478600001)(8936002)(110136005)(8676002)(38350700002)(83380400001)(2616005)(38100700002)(52116002)(6486002)(41300700001)(86362001)(316002)(66946007)(36756003)(66476007)(66556008)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0X2ZWQhlp1dFXrm0QFxqAJ/RpqB1d19lf/+l7FlTaWVoWT86KDLNjyeprhXkECnp53HmAhxGek4txEADFxaM9baJyPmjR+6vKR3GLeRcCqjxc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PcV6+0GWFMour38qzY1t6qKKS127BGVLhn5Ovc/63cYoB9aMVMgxE22GcuTe2D5ttH+oSr9DaOIZ/Zbu9fw2E4fmAlpinnmud47MLLeM+HBXocRdMDJVt13zWD7EojwWJztY1OhWp2AjG+mS6y/WXE6SyUtLbypY2ez2iMaRZQdJLqSqD40DEXjKNPm/C0Bpi56WSvIW78cJJTaj/28dKu3xtJkquAwDtBkYeosW3PbRmdbgJhq5inVt9+0MFHSgZbdvYK7R+lh0BMXDK6C75VO9qDSI9/Ovwnu+PLKYcXfP9LUtiN/bqyRRPk3JQegoPXhorHX9u6XZleLTy7M+ZKfVtn/Rt4dkvsgSoIJi+ttoNR0DGAyJ6uNweWXWV7FgYAknk+AjbUBSh3ZkTYTSkOOqzy1c1OxMnu4C9Be0YJ5Nhflf+3/4zEhNerUjAu492rk21sD0oAwCTk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fbd76e5-e5ca-47d3-c6af-08db5fe0d47e X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2023 01:05:44.6114 (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: wv0PnoyQ97/Nbda2gqfXi4C713FtFhj4TzPwdw+sWMAM00goODzUmacM5No0cIyANVeJgln8TZkhjic/J8GASpAqxMJEwXpIwsAZ8+lMNatpUgd/v1pn7muYjkscZg2+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYPR01MB7952 Message-ID-Hash: O7ZLVBEOMX5AMBA2HNANL2XEIRVIR27F X-Message-ID-Hash: O7ZLVBEOMX5AMBA2HNANL2XEIRVIR27F 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.8 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: 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 --- sound/soc/soc-topology-test.c | 2 -- sound/soc/soc-topology.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/soc-topology-test.c b/sound/soc/soc-topology-test.c index 2cd3540cec04..703a366e0abe 100644 --- a/sound/soc/soc-topology-test.c +++ b/sound/soc/soc-topology-test.c @@ -94,8 +94,6 @@ static struct snd_soc_dai_link kunit_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(dummy, dummy, platform), }, }; diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 47ab5cf99497..cc1f08f2f17b 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1735,8 +1735,8 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg, /* enable DPCM */ link->dynamic = 1; link->ignore_pmdown_time = 1; - link->dpcm_playback = le32_to_cpu(pcm->playback); - link->dpcm_capture = le32_to_cpu(pcm->capture); + link->playback_only = le32_to_cpu(pcm->playback) && !le32_to_cpu(pcm->capture); + link->capture_only = le32_to_cpu(pcm->capture) && !le32_to_cpu(pcm->playback); if (pcm->flag_mask) set_link_flags(link, le32_to_cpu(pcm->flag_mask),