Message ID | 87ed51lwfw.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011049.outbound.protection.outlook.com [40.107.74.49]) (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 5D5AAC13B for <linux-sound@vger.kernel.org>; Mon, 30 Sep 2024 02:14:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727662472; cv=fail; b=Se5gyj9l4mSyEbtajVYzDvTcfbh5TvMbmRG5ep/r3rRpOOopBSqwlhT9ee4nRBm8ciObo8AnEJXnVotp+UMRNygyANiJLdELEJZtBLOqMsgINNlXunL/UehB8PKF0hpnU7qHK1Nkc+UF/OyU6m1xnsw4wzVkDsDhdgflTZ58x70= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727662472; c=relaxed/simple; bh=vjNpnhzqDXKnDqxEBw5ae7eG6dClwdQsA+gJ59PpyqM=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=HtI3hvrlgNPPVBnS+1Jlgxe8+qPh4ka2+VqUrqsjC8ONwCcbLUgWWYRKQBEmExkVb6R4Ow7MEXnjDF2pS8mzt9565hIzSlIw9wFr32/O04NiXaxdO1BKbIOI38Xd2m+MoA/92rDYf2Aun1DJX2oLVXwMdX9YYPv4GPMERaooRJY= 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=R2JLYucD; arc=fail smtp.client-ip=40.107.74.49 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="R2JLYucD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WNw2oSAbeCQVoMI68DbOXtQYxWzzOS9oVONztNZPm788sxlzk10mbxAlZVG9d16+A9tee1eDmW7piD5/KSErS0Nph/LozyIMoSIcyqKQxqtivpNpX4hetSr4R4KpCcctZphGl6y1S2X3To2B5rihDZaQqWSkQLO3a3EriPdSTRA8exeb1bMDDfqRbweM8o9FaDd7jqgR7yzDalLtYStOzoePV4AIV18S5kXUAfsKQrfPbRIXuRi4huuwBaf9+wPfH9gnTq8RmAjzh8E0lHFlDXPo176Cqjvw4+Q8RcKwUNMQA+p3A7k66qnVxcJD98WzonDX69e1sJLi1mUz9FDP4w== 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=0qZznr1N8LMHa3LmfkvpMN3i4ohaD3VbMCuyex1GicM=; b=sR4Uz0XU5ZELuCLK0D/BxWtjIBXsjP5/pUZO3qvbK9Vwygw9HGVD8qZ0muPiWJgifxe7aMV700bNkIpE+F7Suo3PtlIy2ldPIdXiH+zoqW5QaRt2r+foq9EkGdT9d5tb4UpBSsfSvfdJtcCb9dzr91JDJKfO4Erd8BqO8QQBd0N0HZ2z07nQf4flvjtkks3yfgMcbvFGRueDB+/vZJbeBZ+Nk8To4gi1928SvTY5Vbx2psnkyu+PhKfHPhrXrlp33q5xeoWM9mmtN1083oos5EgiSPv46eLWLErdG1m9kas0aL39rX48etlCJQGMoPEQWiBddBL1CIpi/DCSMOsL5Q== 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=0qZznr1N8LMHa3LmfkvpMN3i4ohaD3VbMCuyex1GicM=; b=R2JLYucDp14JiCe1I/frOEEWYN6Ry6ncdWTN7ESIL/+e5pRUTEfjZ5VTWfbS6nLP37xunlwSrkxibNt6kOrGhyeDId+pz+annbZ7EOl4E0PJzstPJIFrgg0ekEceQc4QNBDlakW4jbKsKerMAycUGIPDLrXC8fjaAGMj66nIZIU= 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 OS3PR01MB5798.jpnprd01.prod.outlook.com (2603:1096:604:c3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 02:14:28 +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.024; Mon, 30 Sep 2024 02:14:28 +0000 Message-ID: <87ed51lwfw.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v2 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: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> References: <87r091lwhg.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Mon, 30 Sep 2024 02:14:28 +0000 X-ClientProxiedBy: TYCP286CA0101.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::14) 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_|OS3PR01MB5798:EE_ X-MS-Office365-Filtering-Correlation-Id: 2061d84d-1993-4838-4ca3-08dce0f59cc9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: YGVcsA08ypfwzCSa+YIIBkff1k+HrFpJIDIOAmmetBdVx/w3upwRnHzCfFdLCg9LHR0iwBxZALOu0MrLtV5qamhbgc+7PdzMp7wBBL5MkoVVVAvkErYN8T305Zkt23oYpUacqC0dUg9CuHwfFb61QaLI3kHQzhWTTCE1PUkuvJNBCm9r1ZMPvipuQivC7Ms1cNTz7hSYiniMpKdZnkVC4DwcFbTesSZEtxZ13cX1NhzpeyLfBayB/80Xai1RNbVh1VilGSPAHiQmvdl0bjHhfWg8LQWZFgBfuz9umJgbJVPg6o3cWILKVn0cYTDYm4oAXqS/sfViprAMDGxFaMNnVS6PB5Py23m39u9RogA4bmybPO3/iJaayURBNDVF6xkMKMSoVeTvi8YYXhmtcPdHl9gEGCpd+ihr2oLTfBqUMX6XLvSRqxTZI2GvoIVqgF5vbuoNfgw0C/5GUeEtt9W79pVqYqYvVaivHhn0XpG1b7yre3M84P3OOdya51yPJTvMi+gVHTdcgE1iKeruEm0uteL8vnQLWcdtBzAKxR+dQ3XJPDJXK+XMtuHaIUbv8TkZn3o8qzmH9bvY7EOD62yFOcyv7W+eL0J+I3uwiwpS16WnntB2xTyWTHKumJSOsh/ev841KH055GLgDzMbOX51cpq7H1uxDmWMGzqbE9JKhBZEqhet2QIbrriTFfnM3YUozzii2beREGgKd+uq4bqc2BGBYlr5E/f3Kw6cA45pY4cmm16W7sdzWwyxBU1xfl5bpj/hN7U9Bs5c6y6vjo1vZv5wdlAhZGNpVaPQQtEZCyLmKoN/hYAN2a2PunI/M5Idw9Qqs1MrqR9G/G2pmHnW/FKKWd/W8UT8fcJBGo3wTmQRnd6EZSYsTv7u8kbnvJwckxArK7nQ0q7HSSwpHel3dSxT8Hpz1sdO2hbyLuDGQAlY+iaF5mbfOpVg5pVzurJhWPMUjpICf/AntI4Rm+BOk5SKXpqWZ6gGIYsj1IJ3FlKz1lRZv5m/JOPocOZcf5bPOLwS1izp7mgrjd1unZlRd0eiI80DifHBuZl6iORwfCDafzPohwQr9iJDaKB4GxcziRO4NDbL3z1UuH2uSJeMdrjBrJk5Y6XofJzRh9Ve238D/ah44dWCEwFL+1m0ubCMESE6OZeAL0U/QcRSfockklxvlM0VpH5qZSAjYJtGth3fwTazs/UfbTaMgHI2S+WdTuR9ZHfVM4badv0dpSd+ll99o7AynmXsBTLQEUOc+0lnobXo1wdSZpTXDORe2YC2hvf4oKHKGrhWiiQPx8V01uAoAnT6jFK9ODPLjKJENGdO7M7BAr5hyUq1L+jvfhbVJXADdejodZGh+DxQqfi1kwLJj+06rmwUSOhjtwneqbKUrutHe3XsSjCVWmVr1I0z2QzePly5dwp4dEIbGdAGtQ== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1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u+RwjRI+4mDwPdA812Hrk8/aHDEjeo5X/YHE6d713jtoDqxZevhHxVbqfAnjpQMBvVhirJthgzI9jneSyYJMKtzeflr3hKOpvfLmMrxMi4VYG+z9oa90DUSEuWvPFWDbxhhgbLnnPYNHdu1TefJDSvdq4TSmHtsFiY9CzjLeYbqMnn7OMOG6MKGd9W5dQfZs4N66SnePymz3uAL++znxK5wyjOPdNTpHhz4uEIiIlUXnaPO0wDPGKWCpTruoSppEXyEvaoCjr3ksHg7EB0eDnrZwGV4C+U3NfguQITtfEwm+CL2zIxl/EpkQ/P2r127lVu9cIDu09wBOjMCMGIpNqvrLnBH3JHCgiKgm/yT9l75tywjOQ85r0z3wcT/fKODM6/GAt4LqsSy4LU879Squ40OsNovu3x31w8ED+JTsrBzkofEoAycWtZfRD+e0oQ7CvVQoly8zxTH0zMe23SHjoP9e1AkYImkDTHQc9Yxlt4AOCk11A91fSXppvnXcD+XCq1UaZhly9HbmZvJjj/AEYrTou4tJFYhTB9rK+SKa2novs3Sx7vhmIcwRaH2D4Y9Y/aMLH2fWoEy5Q0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2061d84d-1993-4838-4ca3-08dce0f59cc9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 02:14:28.2660 (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: GzPfXraTC+CDFpFoBzYSdCh0pZtr5OCO8gMHTG1PYwkgpjoea1tciQRJU/ogz1ZdIO9eO/EimGRJYdmOVOYixvmD3VfIHMUUCPoDg43+KXGQDwvRmKb/EGmS4JQaqKMY X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5798 |
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 af3158cdc8d54..93d0ee68059a6 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(-)