From patchwork Wed Aug 21 02:14:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 820999 Return-Path: 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 5AEC0C3DA4A for ; Wed, 21 Aug 2024 02:15:28 +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 5B13C829; Wed, 21 Aug 2024 04:15:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5B13C829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1724206525; bh=uXvWewXCu+wRq7FhwUkM+5IzreW+qMkECRunhKuWVmU=; h=To:Cc:In-Reply-To:References:From:Subject:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=gdZpsogYI6xfOboZLrAYwFyB9On0xdGVnf2/Mi2hnmFCyH1pMezPBj9CuTIbh9e05 pEcIM5vsj2iLAip/RevmZLri3DQVXZ2sk0GgNPfmbCZs/lW0j/4Ax2Wk+KHFOHvA/B rqgMXcmjRyFHk/yBd0JWG/jcLYszbe0oKqjMod5Y= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 066EDF8061F; Wed, 21 Aug 2024 04:14:29 +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 B2952F80613; Wed, 21 Aug 2024 04:14:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D332EF805F1; Wed, 21 Aug 2024 04:14:23 +0200 (CEST) Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::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 3B2B5F805C6 for ; Wed, 21 Aug 2024 04:14:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3B2B5F805C6 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=EmX2lSVd ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i56nCMMW9GAMKwsAEtnzWx7aBwkvKNdP/PCtjfEuqzzhId3IdXMrwPY678Bqbm0MB/kY0uEAbJQ2wzjoZeQY6fgApKVHYcOaP2u1+9ZCRM6bH7AdXESYi19SA9SzcCPtwaDKLwUsoDJBeiQTXSgzGHSvSNj9GH/6QYpbv8DU5YRBENGFGyvFIzboskIC4JWYBrqE6AdkdEVxIloDvHZPW3UYkYfhqwZ6nHdsW0UaX8EcYctSCxV4VPXg8lHAB03yM6wBKVxYdYSxSaOWBrEtRooI4OpM/54zeuogThGqfWz//2dKpYIiFCkgBx4Zb+oNZqIB3RV165XoHscITd0lUA== 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=+JhwBV456gkTK1RetyWZudKaGui11zsj2j1Tj8MmhvE=; b=DpGtZpyEpH09AErgBqui/497yFPwlqoLF01jDpJqiBn9wWCY6x/fPRTK7W4jCCs2Tf2Xo728QvjaGImL4QIR81R7Is3ABIs7h++mwIJhvYHiOtl71swVujZsVh1dY5yVKzxGMr9ifK7HVowOoJaPbEYSoAfxK3IH+GgoY8sj9ts97OVL8SpltTmkL8CMlhR0bySl2YRm3KF0uwS4PnILY62WsBMs3cvF3LgS50Bb5LtOWtKIaMc3p3XZqoOBHx66TnKwgYK6nS9EWhxyR5xMVimbRvSwhQRpdebh9ypLwAVdlY/kIXE7VuiXmFnLHP/Vn6EPRRuqjQ6Yk1Shsc8QKg== 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=+JhwBV456gkTK1RetyWZudKaGui11zsj2j1Tj8MmhvE=; b=EmX2lSVd7JyyIrcgz710gB2+ZymKteEfuC9uKZViisY2qf+drv8w0KvNDmHvphS/gfurez7AHI4Dk0x0IsPh9zGj5uQtAt2qefWuqNHgfxgZDI6XYDouzzuZyPWA7k62SomEZkPxOVfVeoFRv3Fmxd9bcl3OOSuhq+22OIOqTK4= 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 OS9PR01MB12133.jpnprd01.prod.outlook.com (2603:1096:604:2e7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.18; Wed, 21 Aug 2024 02:14:15 +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.7875.016; Wed, 21 Aug 2024 02:14:15 +0000 Message-ID: <87o75maah5.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-2?q?=22Amadeusz_S=B3awi=F1ski=22?= , Alexandre Belloni , Alper Nebi Yasak , AngeloGioacchino Del Regno , Banajit Goswami , Bard Liao , Brent Lu , Cezary Rojewski , Charles Keepax , Claudiu Beznea , Cristian Ciocaltea , Daniel Baluta , Hans de Goede , Jaroslav Kysela , Jerome Brunet , Jiawei Wang , Jonathan Corbet , Kai Vehmanen , Kevin Hilman , Liam Girdwood , Mark Brown , Maso Huang , Matthias Brugger , Neil Armstrong , Nicolas Ferre , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Sascha Hauer , Shawn Guo , Shengjiu Wang , Srinivas Kandagatla , Sylwester Nawrocki , Takashi Iwai , Vinod Koul , Xiubo Li Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87ttfeaaif.wl-kuninori.morimoto.gx@renesas.com> References: <87ttfeaaif.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v8 4/4] ASoC: Intel: sof_sdw: use playback/capture_only flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Wed, 21 Aug 2024 02:14:15 +0000 X-ClientProxiedBy: TYWP286CA0002.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:178::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS9PR01MB12133:EE_ X-MS-Office365-Filtering-Correlation-Id: e60a8cfe-627b-449e-4bdb-08dcc186f48f X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-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KLcmkvVE07jHpNrzGwJS5qwwJaMYQ2u1jsDIwdMTXR95jB7JDYyA3Tp1jKuOvDpqseyaeGRZywTTEIrpOyqv8S/wQ6xblenAKXurz6MwVG1BXuPbUcdMKfquOq16lTgkAduO1y45DBe+gw+na84Tstv6WZDMQcB5GzAp1MG0hi2qQSRh4eC9jWALk/y3bSppjYS6hmyxp3AgZP/CNforjjqbD3Sd5VaK12Y3qGWHKPP/kiix48nZLH4VSoOkqrKTRqEl4CTB088U374xQcm1Wzuk0xmAZbRpYYnQ767mt1NrtrBpiDlyH9E9BfB8vml3azoffx5+SNu3gCVtUjR+YbfmOy5EszihU7GwyYCEstbXy3DGS1Rg3PFD0= 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)(52116014)(7416014)(376014)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CPUneJcNb/1HNoJGWnWzTCKOZI6r5POZiWtTUPKHGY0MPvnlBkhM6W4Lfs6HiFDn7SLP0otQ6k5+164PsSxafKnWni8HRKFvfVjawntAQhUQYdPj3smvZzhb6OtptqxmS2jy0JUADdQKwPsfpSgYylDIW4FhxsfydluuA0qoHQ5zhCCNls6CTDYVrFIZ2fqBCZySfEir4JAdFnLTAZVazamwg6SPIMpuwJhi7ZrY8tnJB6Ju3v5f6o7UGvireznPg0BmZLxCVnCa6hihBffOzfwIc8KNk8NX9mrLypJZlH/m0VrcAG7EHRqy+bNPyAkqSlgRgabgBdck9AfCYSJbp5oUZLiiz2IDDxWttWuvS24vzDzC5rYJCAr9ShoN1KnHvFsmEtAAxNGIbk0BMf48DFSUXLAcZn0b6dCX97FFxvQSbyLz0TNSyUMOqtro2rPrvrgpCz0X7t29o621IBjnPMe2O/wn2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1tixdzgRlXuef5OX2889QAQ0GWAMNFqmoDnxG+RC50McWt/e6MtCZBqFRkfCpTTQmCbl8Dbjr7BQQ6G4NYMGi/wqu1sYp7mSJcW2gUWEX1A= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e60a8cfe-627b-449e-4bdb-08dcc186f48f X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 02:14:15.4024 (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: hzyrXtqL/Snp9bETDR5GVtv9mMLyL8H3OI7Dbv3GcjOgOK75XD77g6y3lH4aPRuNmIqw3dS52WraQ1KW/JFkxjiy1lW6nXzBCFOmKlr6vH83OOUJUvkC6OzTWCQ3ymyC X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9PR01MB12133 Message-ID-Hash: MZ5RJG4N24QTBOWGRNZKMYEKI6SFBN6Q X-Message-ID-Hash: MZ5RJG4N24QTBOWGRNZKMYEKI6SFBN6Q 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" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Prepare for removal of dpcm_playback and dpcm_capture flags in dailinks. [Kuninori adjusted Pierre-Louis's patch] Signed-off-by: Pierre-Louis Bossart Signed-off-by: Kuninori Morimoto --- sound/soc/sdw_utils/soc_sdw_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sdw_utils/soc_sdw_utils.c b/sound/soc/sdw_utils/soc_sdw_utils.c index 6183629d1754..e8d0f199155d 100644 --- a/sound/soc/sdw_utils/soc_sdw_utils.c +++ b/sound/soc/sdw_utils/soc_sdw_utils.c @@ -950,8 +950,8 @@ void asoc_sdw_init_dai_link(struct device *dev, struct snd_soc_dai_link *dai_lin dai_links->num_cpus = cpus_num; dai_links->codecs = codecs; dai_links->num_codecs = codecs_num; - dai_links->dpcm_playback = playback; - dai_links->dpcm_capture = capture; + dai_links->playback_only = playback && !capture; + dai_links->capture_only = !playback && capture; dai_links->init = init; dai_links->ops = ops; }