Message ID | 87ldz8vbtg.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 2AB9ECEB2CD for <alsa-devel@archiver.kernel.org>; Tue, 1 Oct 2024 01:44:33 +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 E3C0786E; Tue, 1 Oct 2024 03:44:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E3C0786E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1727747070; bh=ZiZp2sdXbaeN9IzAesoXl7p43SktonvE5gj7fS3NF/o=; 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=fPbndtE8Eh9YK4OdmzXha/J6uhm6y6tLzeLXyWrCYNAmHw9wwdW+ovfM9CtytMruN Mgs89LOuM9bgcfZBuoKJjtcbgeHeCWQCiwuyob2nhohFOiSin7zzeRU2XjfnJIWkQs v4Di0fPhRNOFk/z3t4d3IJxPZfApGeqHlPs46sE4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A39D9F806D9; Tue, 1 Oct 2024 03:42:17 +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 77724F806E3; Tue, 1 Oct 2024 03:42:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C7A98F806BF; Tue, 1 Oct 2024 03:42:12 +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 407F9F806B4 for <alsa-devel@alsa-project.org>; Tue, 1 Oct 2024 03:42:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 407F9F806B4 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=KtZ6IRuW ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b6Cme51WwkGo39u8veddao54st5JqxNwJOCGJatbmiNipQInpAYyyOevgIKqKlukcwF/rQLVaVBpn+zQsBw3+Evqw2J+bggM4RRyyqvOfatXF4xQkjOmb58+5zK7ElStYZtYhY6fukmiRoEjG0ButgJ3PhusuZ+GUB59yNgVcXsVNbWW2LHBhDWae2+McNghFnbQ3m/gEqIJltPesBUkqeZ9bcSUwSOoQGtapsss5r3MUG8Timadn4uKWxO/6vtj7iW1zRfwS3YG1eAly9ap9AFK3ADAhVPWU/ZbyP++tf5FJI2Dlxm9krEuFRmmUH4u4f1XCTHoxrfOxF4eXaprJA== 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=GKGoKSaWEjmXNTRJmyK4pwp4FfhWkYsiEQlNZAcmGoI=; b=R0Tb35yuny7pRBkwx7ZfQnKkbtCKDoBmoH0rns3wSFpwwYpGcLyTSmzUa7BHwNR81SgkG+5ZdsuVU4m+0y+tpV0oYYpZf7YWC1j0EQ5FF3UkNMEZq5cr0MO83Nl3hJqBUyFANIHal7hLmzmnVtL3U04QXB0uLiXHNifpg56Au3PUagx9dZMooK/Doe8YlraZw305sYVqH0dNdlBA16EzNPj2o04fRmtgnHvAvuuQ8qslxDuibqOHytzBIYygYcmZgZjD3ySiGfhYAOkVAf7ZMsED+XoFtkl98yyQPdKXWHBIVcqqyPha9Cpe3ZD3B5dxOUZGhNOKfjzx0/tGi6n+Jw== 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=GKGoKSaWEjmXNTRJmyK4pwp4FfhWkYsiEQlNZAcmGoI=; b=KtZ6IRuW5ldj+vejEgS1zkxtwJSS5gA/neWEah622+HLxynyS5pcZfIesF5Py5nqwCoZ7uxWd5HTr9zTX3+oiGKgTdiwbvFBcKTjOryPV96HY1COeHSypj2UvvaVZK7L0PeF9p1KJErkNdj2A5K52diHg77/pyRSar/QjpNV/Dk= 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 OSZPR01MB6629.jpnprd01.prod.outlook.com (2603:1096:604:fd::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Tue, 1 Oct 2024 01:42:04 +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.026; Tue, 1 Oct 2024 01:42:04 +0000 Message-ID: <87ldz8vbtg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 09/13] ASoC: soc-topology: 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: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> References: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Tue, 1 Oct 2024 01:42:04 +0000 X-ClientProxiedBy: TY2PR02CA0056.apcprd02.prod.outlook.com (2603:1096:404:e2::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB6629:EE_ X-MS-Office365-Filtering-Correlation-Id: 44135e29-fbfe-459b-0b9a-08dce1ba406d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 66TK9r0NocJsff3Dvi2l73kjypdzJjnwg53TWm5OpE84v3gxB7hW83hHRURRAY2gdKtqjxPAvdf3MpWbem2bKnDqFBxhHH/hsKM4wTJt9xTW4dUJ7To6X1N6j5vu3KVs8LFzN73mq9NntKu5+TjaDjTJYmkKIiJBDQIwI7NYJZ8rinSI5Yu0DkSHoHBNO438sjTvyk+EZWAsT/2Dghj4l78QDatpvTi7f1DLxkvTbNw6OBAKxkyVfK8UDudVbnJmSVyGFSxO2Irg8knYMGDBaBQmJTFAkvTizMrZpaJGrZtS05ahBT2+IxskxXe7cSj0ilQqmXyW4H/MhyJxa7XIx/tK4pXG+H0SPCpqVYph/ca0St/H9OxZ1eC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01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OHQlnKuhKVGMC383g0krm7WIcek1DpSte3vW2Sz3G01nUmZ1N0Hh+OrEaMfEGI3ro+5GdsnzDZvkXpJJp5RDFfRnsXKcALcDDkTjDzN+mhuCZau+Ipvic7A4YbIE6kPx3/eCS7yfrEybBtonH48HWL9eRjctMaSszDvSx0g9+MtnYmvAS7pwkntbivNqQARoqYyyw5ixONM2UbwnIhVLK/YRS/k+wSk/Bdgee/+MXVV7IbIK4SDHo7OqP32IH/BXi3Qw0l2lkZFj4zuNBFCuH1DRmhU8cb3KBdYJxxU8dqsMunFJjys9gBBM2jpy+vBsxv2/M9Xn7Q9pNLtvOB45JG4odljZveXsMKKKzh7UC6wgjJssEUtMVVwHjirqk9uLTV9pg3npFbO1YiW9gsCEUdIdID9nqPqHI169db/2iCSboivCwUzG7xmZzR5dDa06lcYzjU5iCITAJdPtWM5Qtz90C6BHtX6ED/7SOD5Y/2KespHQL4m7Wg/Uu1a7BHEqBge8dlNAbh8PXLfbtGA4gWx8aATZ22ky4p7UGqK2Vv4S14auF1Yv6oSobzj1cx5tjhVhnjWZnKhWQhCj4dK1kDr9e2+qImmQUqZLLAQJentco6XZpF9us/UCfnY/P72TVYtBVLXeMCfMDSCWoLBUMlwEs/opqgLA57jiGFAf0GmViEQWkGHewCNC525/f+iz/rbRgLXx2AMn6LZGP9GUDvnjJaUKQnEEkcKEa2lvdIrX1fcvVzjJn5aDjsBpwqQEuugDHPoZwfrUu27JI4P/+kJY7HAY7/pJsuPDZ6K0rMRbHJoCqfYhTibkaYDOJlaKwha0QRBtyuCFWMV9DT62UdBCEfdPf4oG4/mdXbG9J3tWDnsyKdkQOP/T7V4U7SImHtp3x12FkkBvLjf3LUmqSd8livyVn7VqvjDztHJnXAKBEmBajfWjGI0PdenzpRBZu6bIDIOk07/aB2VMb3ylbfBDnj9NbTTSmxNl6DUzWhk5WTe0AReb1AGCi9MRA7HoBMeW1nf2tbqWCsyf5moIKBkbXScoejdWu3rXSaV3SzGzszwg2NYLikpZc1z9DHkfqppHzADm3q8SpJcg6HpjqRPeZSJsO4wRlAIvB8PrRVl4RVecdtKi9jQjlOnf7kXYy8Uj1Ahd5fLIpwlfApORkZI6roUHeP6UYu7gveScncOZx+tx1syNmSKonWWkpXwRC1VY1/C80d+ZKixMA83Svqi1WlJCwK42Zm4oaYBvY/891UGk9W50lmWsxewejlkwmdRfzawJRANkziBLn5qmOvCb3+MnFfafULwhPfkiTwY9dEow6LgVlCysgxJhokhmFYGRW0fvT7VMDe5AtlfhmAKhzKEG2qufDRLHCWGnD8h4YGp5wkK6fz95C2ZNnaWG3glvf0fw5L6PM6z8hQCK53hMGIWYxrkOaXsM8hE8U9byT8AFTD79x7gQ0d77ZvP9LNHoK5bi5+tTZYD272LKiELaVwzD76o5Vqcn1WStm9gHZr2g7JLW/QTLspmnrgSR7Xy2by+6k+zx9tBQWgYrCd6B65Q7Ld8kllU3bCgLH1HLjZ17XztWY4mbsrAt6TZ+KXpY19tzInOSHGKLx/SdOf48FUFq4CUMulWDe4Crx9A= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44135e29-fbfe-459b-0b9a-08dce1ba406d X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 01:42:04.1492 (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: MaMJ4LfU9nQiMTGs3hZzZFUxbL3ESgBURXeM29q6CK800PjzIbhyMxM+WMAsywdgdpL7LcH9DLYUPXeZCYWkWvfyqgFWf5AhU8fDH/0IQIpazal/MBNZ32l1uY09UQ11 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB6629 Message-ID-Hash: KLU6G6WGHMLGVBJ3G33NGSFJ7ZK6DKB2 X-Message-ID-Hash: KLU6G6WGHMLGVBJ3G33NGSFJ7ZK6DKB2 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/KLU6G6WGHMLGVBJ3G33NGSFJ7ZK6DKB2/> 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/soc-topology-test.c b/sound/soc/soc-topology-test.c index a2b08568f4e8..c8f2ec29e970 100644 --- a/sound/soc/soc-topology-test.c +++ b/sound/soc/soc-topology-test.c @@ -88,8 +88,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 af3158cdc8d5..93d0ee68059a 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1544,8 +1544,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->playback) && le32_to_cpu(pcm->capture); if (pcm->flag_mask) set_link_flags(link, le32_to_cpu(pcm->flag_mask),
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/soc-topology-test.c | 2 -- sound/soc/soc-topology.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)