Message ID | 87ttdwvbub.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010036.outbound.protection.outlook.com [52.101.228.36]) (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 4E35B15E81 for <linux-sound@vger.kernel.org>; Tue, 1 Oct 2024 01:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.36 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727746896; cv=fail; b=n6Gz8iS/0FkfsNAx66nk+Lro6H78Q5eK74p3ZY4GRSv3YlrSHj113HJLo+8zL/K0y7Pc8fQpvTxIkAhvBlzX7JDv7XlaM+DRobnYZDEczwwxMZZDKcBguyQoozbTucihgOKQsOLjg/OWqyUZRZ29A8bPbmQVYqiSpXlV0Rpovh8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727746896; c=relaxed/simple; bh=SoqlRvpT8A97YD5/DxkECQEKegqskxT3GPls9mmMcwY=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=rkz27InQIkME19LRSgJVUFDJ0m1dj8ke97nliEjVM2/1RFGnEN/4rN6r/0GIf4JFkp30tfsVJjoCF+CEAVsstHKOaSAsqrhnhgvubd8bIggRjJbyAkRgWip4FH/4GJfVgkQpAsKn4G8YK/csaStiqqrU1KQrJ1JmJoIPmRvgcDk= 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=QzkSXwsi; arc=fail smtp.client-ip=52.101.228.36 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="QzkSXwsi" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nDevqb3WODISOjg06bI76NgHVYdwJnTZG4VBhnDCePdmpgw/+CsgLNAYMqkPU21BBF2pF1HqfAdvmoi/wuQ/7FFHbs0ZoVhaSsIxQ63Bn26E+OX3cyLhCtHvWDrNEmcGtCUsl/auZGqTiEzTiRslxhXecBWkfLfswlQqcSvSKLTN0mIuze1JkUy1k0L1s01SazgJ2gLvaEAJA0dWjehQExE1Ng9pwvi6wyfRj7ajzn86BDOEQcHdb9Dm4jOd275JswyuRjm8HO25Bht7pRkWevF+q64NWcvTKRinUS8b5qELAEPc+lkfdlbxBOlde6nz/qYbgC362bez0XHik5JXvg== 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=sWb24QbYDUDRkY8Vom8ra7HaFz9I46gMxQASpY9/BTU=; b=nNTDHkyu67oGQL0BtworEFvIUq49/z4CwMvn55pRRZB4aWSYHLXMbhqXoPR7t+llks8gDI++HtqAt7syrf1rULrrZyJuR5uBq7ipTzpKGRSAQs7WNiN+hybGLEu7MMd2tpTKLj+0Wv8mOmyWqCb74RMchNiMRHnrUVngED5YQGOBfpVR+i/Jn34LTqZceG3X1LjDZJi4IgvJGbhMrVXrmIaKPLpTCGf8IkGHbB3XcGRVzPK6vR6EUBPdqgO1CStmE/hlTbCSmBMv7A30ZZvAQT2Bsfn/fGzpw5zPaqv13XHzyC4EX8qua7L/vpnCDqZWRJSzgOBNaqy+PPZf8M4aWg== 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=sWb24QbYDUDRkY8Vom8ra7HaFz9I46gMxQASpY9/BTU=; b=QzkSXwsi378ez6l9BXXmM0PR7W5/A9vPluRywM1WIcvdqRLfOjZMzaC8NNYwZDLvWdGkt3groYc79doiJdTmz91xK18gQDA/jmJt/SozWQopo4fE60juz23u3f+ZDWDOG0veQ0qfAsl1Il3mvcnBeatnVyukTvCWgXkXfzxueSE= 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 OSCPR01MB13482.jpnprd01.prod.outlook.com (2603:1096:604:334::12) 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:41:32 +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:41:32 +0000 Message-ID: <87ttdwvbub.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 03/13] ASoC: sof: 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:41:32 +0000 X-ClientProxiedBy: TYCP301CA0081.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::18) 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_|OSCPR01MB13482:EE_ X-MS-Office365-Filtering-Correlation-Id: 145857f0-d41f-485d-e610-08dce1ba2d84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: NxNKv88bAA1pU828TlmGnS+xeppV/Y/IaLMJ4Xx1XBxKYVy0hXjB9Xx/kr8lNH2myM8FB3uI3iOrWkO9HX/t90OhwBIWwOEZdfPcKH5R56SPUWc95Ot0MkiyGvBtsaC5h1jJwCwRasQJABmHh2kvQX8nKfKfuyoNGqNg9OTTNpWucr6nmpB8vSv59p49eDy7ck/6FKuTTjjQGvi/9nmNQuN0y4eUbHLQo/0e5xTdOn7aMdfNlxHJ1D5pdvxxCTd4k1XqYQ4Q8pAJjVQjIs+ZEoXJFtfPw2X77HxOpjs3v61HPjUU64pr8fKSbJJ9effj3TVXaiFODQAR3QlCijTC/OkhigdSv8xHZQtawyfMzAlEI29n2/Ck8sifYv4fyHeDz0kprB09yIXTWVAx0x/eXvZDtam6+WweC0vppxSbP369UZWM0HIBGbvM2mDIwwKg6B7+guC4U+QoxAtzrimFTGfNElXyj/63Ky7zYxSeRa6fFHrWE2LO1cFOlHcSQ6EQCZeCltpzkkdWcQ/YWTTYul251hW1KosBt64ep48Pn5RVWiW2I9mqX1l09Y+8AjlhzLHSc6H/jNbhYDLNIc/jWGxZkLlprxko8mJm0aZyhxJfZX/eFXXkZon+zFUEefUKsZpiOYeN4Nn1d3msGwtohGMp6JKFK9fjsVmwYKEhFOcaken8s/pW5Zutuq5+YRer+nk3xG2M8ZpDVKl0k0fDL0DmkL57Ja+k0eAbOrrEUmulrLYZf5iEtrCfhcunZNa0cH90BR+fXFhYUYrQjZTbkRaUUF6XnKutPf+YjNlMEUTRan646tewdPk3GkN2N4e4U99/lzp7tOUHYrttR0+O399yKMVVnxkWzHLODJF8vb9pbB9Ut3ByiRMJvknltRZhlPUBSRgt7ZBrrsXSTF21Nc6Reswodcbw9fXDelKmthFzuEb0DW+SYLbx//FhvFcMbdEOTKnqYYZVW0+IILV6305ik/U5T/p8BYX2H+iJ+s+LF83jZ0eiMeTFMgtD6KGHHKQgyVkv+KdtDUUFvcZXbi0V5Xbz0+7ocnSLwgWmTHsQ7yYdp0KqDKOf+m59nHKf0iqijakUB1u0F9uojIx8zj10fyLsCflQr/HRFzTgOXzM5nD0o3xU8vECj211VhlZW3eGfAiOyEsbAoMususLPm147ETyQNeD7FrL5ptn24wyAjXlnLRv7gXTC8YyvtnlKa7aj0mZMuiY7ls1zf6AlSKvYHZEQjedeZ2HR6xiDIY/FdqTzurqMV3xTsTPHAzrkTIIsWgc5b7ZY175FXn1arO3hFlB7ycao8Ls7byNIPyNZVzh+hCK95WfR5coYhQgeNISDhmM5m72bJaRLu8rAQ== 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)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7lnlXo88jyiz9Ub9RLc9k2fKDgyatwQMbqy6h63cRod/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PZUxfsxV69f35DwhLBZa+dOTWBFtRsQJMd4tjSfp/HH9zi7++JZIfI71OVxHA1nf70pLlPCiZ4Hzioj4Nm43lDsKp6klzPrUCthVcx9BvJ8re1n1aE1SPxRymik8TCxQKy+rupUNFOs5tbTNm2pXpGcOK1POkOIlWz7nCS7D1qbVYO/9MR/MLFzREhalmJL5nVOerWagUdKgSTsV6+eeU+brunNdWn4ncaollJ6Xh/PXcQ/8Gnzcy1458zvnEmU2bBu9Mj2SiR1J2iyDnPJhqFsHTXqac/oIYb83k/FyxUZr+MFgozHXJ36l+wIgb5FKBnX2185odWPyEsbvQ2mfg1CbGwoLZsVO0BCUmH5DCpkFaooLuxtG7RKo/GR1W24BA5+13f3BLOsvYz8PMVYysSIEABI/A1oAPOuy5BpdMKrHNA2YEQkhqFgObFLtjW/PLBCODqwYYjA8OX3ZC+dM7NCtopz3Gbr0jJ3YtYng2OvtMym57xYhV7yFju1dr2gOxuN4Tfgw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 145857f0-d41f-485d-e610-08dce1ba2d84 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:41:32.4219 (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: 1q1WzRQSn6i9kns3jviA3qA2OquATzzvisLOat6wySqbVMMw7HsZRDhcb3gAyMpflQygvXeHHQrXV6S92hbWBT69qjS6LqtuN5ylglHHlhOwv5n8yvS5S/gJvI5UVhtU X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB13482 |
Series |
ASoC: remove dpcm_xxx flags
|
expand
|
diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index b12b3d865ae3..c0c906a78eba 100644 --- a/sound/soc/sof/nocodec.c +++ b/sound/soc/sof/nocodec.c @@ -55,10 +55,9 @@ static int sof_nocodec_bes_setup(struct device *dev, links[i].no_pcm = 1; links[i].cpus->dai_name = drv[i].name; links[i].platforms->name = dev_name(dev->parent); - if (drv[i].playback.channels_min) - links[i].dpcm_playback = 1; - if (drv[i].capture.channels_min) - links[i].dpcm_capture = 1; + + links[i].playback_only = drv[i].playback.channels_min && !drv[i].capture.channels_min; + links[i].capture_only = !drv[i].playback.channels_min && drv[i].capture.channels_min; links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; }
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/sof/nocodec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)