Message ID | 87bjzmqj3y.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011069.outbound.protection.outlook.com [52.101.125.69]) (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 C4B84482EF for <linux-sound@vger.kernel.org>; Tue, 15 Oct 2024 00:56:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728953797; cv=fail; b=BwQhGEartO0YM6/tzcZL36su13pSOPNJzutdlGamHfWD7a+P2Nkqf/ekZvF8IzFQ666+19Ncs6d3KN9xHElzKHm/986myvgxhHhfULDEJVXcqtnRV5ko7JWGuTudRBT/7ddcK7Gi2A0t6Ud+vPkppuvGPo1cTRYCYuPkp3QGLIM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728953797; c=relaxed/simple; bh=jL5hztbRGI1Tm1tovWSX7TbyVHtxGpxZwsK/lZd5mBs=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=nPTdZj09xNDj+qQt6O3wKewvu2VAWhEcEpR1TBMhhXsietuk3q3AUrR0uRJJ1E0g5j9B3i3LeS9xWSvcSLP2ph8bHaak4X654Mai9z05pei6lMxahuJ24aXJ9IfAhJzL3Qs9fNuRN9648pxJQDrAIz4w9c7Asv/rAoH9cZLQNiQ= 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=PdUKlG+p; arc=fail smtp.client-ip=52.101.125.69 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="PdUKlG+p" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vIv4mppH/V6lQwmHLpoeflGA3JDvNOVaN3eDUU1c7AKzQQiszeWjuoTU+y9JYn1427Q1YeoCtUwsYepI99OGOWS1KUt7TlgU/WxF+j1no8m264qW2el7ieG9NCxXkhbiqHipWCdVhMSpSdVsAP7KXCNfB/K2QIWcv36nnXR0kF763uTplvHc3C+dezHiJjXVS2QPfsugkRcSROK7fHQPYWP+FyHplsnCacnGe5Ton9BC/qtQL82H5j3EdeFxlDxuzhLgtWjMNNqAojZnIc6Ku0Yjjct/ZndxKZtGnjIC6EB9rVI4qSOCRCRhfcAlUkWqb5yyOkezrxhQb227y5wf2g== 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=q7YdZX1l6hpmIHvo28d4Vx8ad4WMxH5X72cmvyifWCA=; b=dAQe58dtQQ0lcaR52l3Q+c1FThM/0H5uA2+3KKqIWkcVUY8AlBFPumVpjOrzHNA2Oijz+Q65/fR+EppXUR/yrhYuviXuLEMwXPOOfLvE1Tr0y5Jp8T+YTTHmIvp6gaW9ggiuan3k55VzoAeTsdoAsGjCi9axFm0c5d1Wlbe9C7MbmZymg/Km7ujo3MVZaaxQvb1pYSl+QyWVTu/p019m+bjcfrUoXabk0f2Pkr7UdACyRoKCi6KjUiCm61a6wg2NljJDRRW7bP2cyZQVFjBr/DJ5ZeRQ7fpgO2E80xllkWC4u92XVzaGrQtigwk34xeyNtS9UcAgJ8ZTab+KyrTX5w== 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=q7YdZX1l6hpmIHvo28d4Vx8ad4WMxH5X72cmvyifWCA=; b=PdUKlG+p1JUFJFiUxzd9bu+4rYuMSAcBEEzgvBFTNEyEWRGsysgzYUvMuc6377Pu/hL1fUm4Uxpt/R/RNia9GUOH70PwSVyCISX/ABGsia2j9cPZc+cxmXJVc2SUc50miTC00fx1w1E/xc3mRTt4Xw16fOZvWV6y61dMe7X8tmo= 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:34 +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:34 +0000 Message-ID: <87bjzmqj3y.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v4 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: <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:33 +0000 X-ClientProxiedBy: TYAPR01CA0111.jpnprd01.prod.outlook.com (2603:1096:404:2a::27) 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_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: d719b99d-3ec6-4953-a330-08dcecb436e8 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: l5X8hLSxIq4xg7Rwsj45Usy1UsTK/DvQh+JCPah1qjTc/ATq5uh7vp88KPGha0NzHz7Ilk0vsAoR1r1dgECP2GfePCweD8PJmfmJPx5AJBUrjo167Kq8I8MeTt+hGFT/9J20IDWI1/ephsda8wFsJdCe72SL9MmueBnKjBFqOPxnCjNkJ89DL0Ejbp5loY5CACIP0XLFtyf9t/aqfUThJKkYiAvu6I76OQHzCNAjUhHIkCaSmMUd6ys78+kYfj16AnK5nWT3NcEfLFVQuvVOj1PZggzxEV47DJ36zR8bKji6LsRroZwEDIU1FNrsnplNAyBz4FcdAPZ7hE2nTdA0CbEGD1IBS5nDeyBxrh0tM3G+2Ys22MBvx5TsIcbvZxSDTtELblPbuahZH1BKAjTOA2a2/MmrZgZCmXvUBxLN5VH/DEiKVxZYGOvsCSxDP6KH/4dBRu0lRG0nVbdC2PWuMbhc/1WIaj9yJBzJZjYPEUFxpIPjcSFfapzyrWgyt12D8BfgzAwA/RkYj84HlohKZvCHvjIMUq84s/BzLVYMjwJkPTi6FvSeTYmVI97rrx7Dhoet+yIMcrweGH7jQRDyPb9q/t6IkQROYRZhD8pOaJR0/Cup8WhyiKeWCW/HaYx+6Rh2rQ7uUPwCneo95q9li0qI31fFhgRRLfYMnLj5FtC2YSNNupRMTcHT/Qb1auHKq5NlgjIbyqxHxn9KOyj2ZTjGiUh1+LqGIk539hI0TajhSK2BV6tCV5rcJj6CCs/jH/0aNj7QwlqhrXF12t8T/l6jLcwrM3gU6LTzPKqW94vJb7BHQ5N8z09tpY0c6WnZDe0k6LfpAbMnPidmRx8eGGi3K2dfnBPI8h4wLvm7XlUK9X2sbZswm6tuWSRuSY/ufH7toIBR+/1S9BYuUuDbN3lCVVdPKH8v80FLUQtWmwMNqMPEq/j5y2U2intVxH8clQ7RufzDEQWqiO4VWzUGsED9DgOtMJ3mNbQU6w4VFPcd1XrQI7GzIchsZp1WJDlrdA6uYaO3vpL9sjl+dUbJkZZ4moqZNgbeKOf8geBCbdEwOBIaQ3M4Shf49i5JtRem2CZCkSKfPYAEwwtpK8Gb3f2YyirgqDLw1BhylrHDY3f9PR8MXHgwz7E6edXh5NFyv3wJ8ZCUIGTNBdiaNzW19wS7+UHDI3v2awgRi45tE1cc3Jza/37X/M5OEZnzawQC0NYoAzHudeTBvtCVg88oSU6gpQYRts4dH5j69tu8GGaj2vjMthzlGpsDsvlv33IngLZnLBI95kcPcY4MTKPxxk7euUHHu4MHBw8Dsb6mqsiZhCR1VVbqvdJDhjGlxBAxNlZPbX2A8bT4p7p05/c56g== 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)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X7eV0NDTy3d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xuXy5xTgoO/ozN8mwmkyoccp1gRZmEU/b7Gu1Y0uNHNLq+b1GsLvsnad/qREbUUxPmtk3SH5JgOwxiD84BtGxrOArtNgy6yRu25uwJGMwsQDmlNCeXg8t1t6akQUB9AQ/UyZywZKrtZBkKK4XizTNkqrBvETC9EW5ov6thZ2CKZy+PUNg7kAEa8wCs/Wu54m2rB7b3a9gVIVj4geEzxqFzukx96EchH92GkzU5nDkt8pmsd5k9uDKPWpPPuUsxUJtjS3VHfMJwqbjFSpEtZC8amOZqxZiLyacNC8oqYjp0hx1JjZmjjR2VD+I5QhiusMLofb00cbhBuJ3yiWLjjaeYdRfP0alUbYoeyneVv0Njv39/GwFeooErQeWcE0KXKPUORk6eQAP8l2LHT0vsC1gUNm2hJdRS1K8WLlncqokENxE7zoglRuOiTQnI0e/4mAnHhwAFn2RE7vZ66f7SEwCtGJXZbO6DDOWZZOwctituCMuDFwRTYQXRsseyEZ7iG8X81b6LNfzCUbthiQxDHwXWVMkeEEBvoWMkowLb/pB83IHKw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d719b99d-3ec6-4953-a330-08dcecb436e8 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:34.0051 (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: rmpzCVvOJCftizRmdQkdkHpFalsUuCKQtaKT8aCa5WQVe4mVcNJcFmaJnYQIbBMU7dm5yeNu2jc5pB9hddjBqjkgSU6w8wwEYzvjg59UyLUD6nH3pNuFjiu2D0cBgBlc X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 |
Series |
ASoC: remove dpcm_xxx flags
|
expand
|
diff --git a/sound/soc/soc-topology-test.c b/sound/soc/soc-topology-test.c index a2b08568f4e89..c8f2ec29e9703 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 97517423d1f0b..43003d2d36667 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(-)