Message ID | 87ldz8vbtg.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11010021.outbound.protection.outlook.com [52.101.229.21]) (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 9490F168D0 for <linux-sound@vger.kernel.org>; Tue, 1 Oct 2024 01:42:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.229.21 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727746928; cv=fail; b=kW8u5ZeswNECvqiMAzgNUFRpr+Mj+mdhc2dTTaqVA1/hqnKWUn1jeoIbkQBaUSW3N4w7aqouYbY6oQ/PHX9qnA674xambgt4AmHD6GUAPh6BwuXnt/bPZa3kdRwpT6srBIVM92pNr9CT3+M4qDD+Yoq8XI7yadAM1sYmJW3tig0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727746928; c=relaxed/simple; bh=ZiZp2sdXbaeN9IzAesoXl7p43SktonvE5gj7fS3NF/o=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=S9BQfGSsDZGj0cl85SctutBHglVn/Gf+/uWEETkWBY8ujuJ/fMMBMSeIE22wJbJ7MzPxo86oW1jQkhtz3Z49MonSRNTS+P/a6Dd/G4/9Qsw/9sgMPTR/Dy7nb0F4bXpi1Q/wlJnaSUFpUFlsn6HkZi0Bq426TK6bBbUMqB+Tk7A= 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=KtZ6IRuW; arc=fail smtp.client-ip=52.101.229.21 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="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) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: <linux-sound.vger.kernel.org> List-Subscribe: <mailto:linux-sound+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-sound+unsubscribe@vger.kernel.org> 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/H9OxZ1eCZ5kW9bXX7CDMT28JKz7pTNzI5Z3a9QbLMaJq/Vw/A5y+R6Fnz0FB+wPZgWG8XgCrjHccQbnVHyJ8UGaknqHstiMgaj8GyCb8SWc/+BvgDR1m/KMx9j8ZkpC885VUOQvi0LAUX6+SvrkVckDFJG505axrLPtcoMmRtkG0eMcJzJnfaVFo+/j0W5MGGIsUF3xx8QTOycQCqIU6Pnabr9fpDfUyslkIys963iSvg108yzuPB4bTBr1kphRvXSWvG6HSdgPdwSf/lcF0Da/VeclnBl1vjJW37AGBohosZ9AGKq8sWoKgzQoXpiCzNFb4uTNzG3fH2o0oUPF7A16lwzmLeb4srKrwYXvjFLUjvKIezJYGhK3zzZP4e9lIvC7HuAKQRrfXC2hM6ly8suE7ue7d0HU3hzJfcrdhGGihlI7xvJ2d7MjGgHGRW5gMARYnnGrhEnHO/tZkv+d2SF3UbMgA+iHiPd9mo487lPornZ3sdyuaSrooGjEA7PhQo6FGAl7nJQ1pc48VN6tMuEau3BBTC4YULipwYZG2QvJHo9hxpaFDzEKviXwSrXK03DUiBXzZxljn8RtDIapLHMlDD6KjrHH9xQziRfDFOdIdz53aHc6vRYldT/PdQZBQghAaBg6BdEB7Sef8Ds0nJtsvncEAt2dGu30migpMvOntNGtVTl9bwNYPnR8Yg44N2kRQBwAWvJl8V/c4NLyFgXUV0Bz/ilPHhC3fpxY808VFka2Ir3WISfpfd00F+UeS4wbBX8K8pTAaQG2MUMd4op8c6vR4pkYt6QnSAtVleF3feAcTAxgNu3QUo/QSnU0IUULEPENgKRCCDtE3MtTOqcK7U8BR86UzzP5KmOLKdLu8hTVSpEKCoWr6L7Vw8rEuLMKa87diZnxndql9+3uF5gWstiNSx0uMCGMp97/9TTyjNmQ4+FV3BtMNzkWURRi3lmlWSou9eIlDB0T2cQMaqdpPwEp1PwQbK6oFlpQ== 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)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OHQlnKuhKVGMC383g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cg6HpjqRPeZSJsO4wRlAIvB8PrRVl4RVecdtKi9jQjlOnf7kXYy8Uj1Ahd5fLIpwlfApORkZI6roUHeP6UYu7gveScncOZx+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 |
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(-)