Message ID | 87h6969vie.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 90bbbf612f9e5e4548b27b213b1866b4feb670bd |
Headers | show
Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010071.outbound.protection.outlook.com [52.101.228.71]) (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 0C96A192B66 for <linux-sound@vger.kernel.org>; Sun, 20 Oct 2024 23:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729468734; cv=fail; b=tX9w7hzsXFRez/Fkbu/5T34cvCUGq4Qko5VrTMnFX7r/b+Zh6M4PaF+q1Si2HRwXY1LV885jbiYhc4oFd9Usm+twF2eNM4OX2HS3CLu+qk0USVATR8m58Iv9GTK1ii78ds8ujylXEDa2K9uv8a08dHfkhyBIxHuZ0Y8Xu/WcmcA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729468734; c=relaxed/simple; bh=GgGhujaI0woWlgYqdJG4tJyAc+dIuukpTkAfJ3dobUU=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=EFB1Cgrm8wZETgs0H+iLo2A9+mZwNdgbOZ21UMWDDZolrKWWI9PszKLDelWO1iCAGGhkKl7A1iUhgpun1q8Hlc900thbv+jifvYwcuUDpwz4TjK2tIwBswTZrkiXF18SFrtHCldMQp+vNJJHHrMV7O4pSybyF3v+uGJuMLqK3u8= 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=TRuSkeZq; arc=fail smtp.client-ip=52.101.228.71 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="TRuSkeZq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aeswmdhxmTRtN9ciC/UGfwRKwcDYWFS4reFhG3K8gvq0xL1q4P4iyX9qT2sC1gptbV2qEn4dml7CTK5kx4GxMq9/FbmM7W8XgiHOkVgAZk0lSPKzl+ltl2bijj3xaoXfbz75iKvgxXF1duPQTTfxr2gLPW+VnPk4Bxvw320ep9GngL61+W1DWQE1cqI/6jd+Hw8ASIwgEXtV+Dvi4s8Qt8vkUmCzvFG9jdhZeQXq8ouw51gVwnB6hWQvw6fxr/FKmXc4HroFIfK3EzRCo6WBJIsDFRd6Hrf6MVCYHD6feHPIdNQ/+QQVaerOtfqsGDnYHSwsO5FsAoyabFuaybLSww== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=HJlTrMrp8glYfZ3/ZULwVZ4TalX1PR7DB5OGq8GojI0FCAnunoHRyI1heWjDAv7pl+w3Pmx5u66G0Tf/7dyHGYw4VOmUXppAzSMFZP7phmk6Gn/fQd288j8elfmijM33+tMSlLt4pJynGrrwAZiVdJIaXFyn8oGbFsOCucw9xNzZO4kXYDdtvYl66NYqpkz3BPomqhLD4Pii4yuxfZuIedhCJAAcEmsJlcY3ZOKSpKqE91sk+7PAbbgifA6Z/J7folW7w66pTOgW4mjjcf5H6od5Aov1oc7rmF/yacCXxvSfCvHSv07nH3nuhQdbKzsb6E2oVoowj2TPHjfZMzU3kQ== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=TRuSkeZqvphrD6ub2kTIBtqO7ycWtm+RfQZeb0K38do4zDMSf8k5C+FYRsarCIcMeGyUN0cCZzR1/iXl7Km6B9XP3UyfnKvacjvTl79TcmljgvpjJQnvn7i7cqrUnH0Zn+uzwxOT2iVh92nF9d2Z60s2En4HMPqNTRtyfySzYAo= 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 TYRPR01MB12916.jpnprd01.prod.outlook.com (2603:1096:405:1b4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Sun, 20 Oct 2024 23:58:50 +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.8069.027; Sun, 20 Oct 2024 23:58:50 +0000 Message-ID: <87h6969vie.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v5 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: <87ldyi9vje.wl-kuninori.morimoto.gx@renesas.com> References: <87ldyi9vje.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Sun, 20 Oct 2024 23:58:49 +0000 X-ClientProxiedBy: TY2PR06CA0044.apcprd06.prod.outlook.com (2603:1096:404:2e::32) 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_|TYRPR01MB12916:EE_ X-MS-Office365-Filtering-Correlation-Id: 198cc547-d884-47fa-71dd-08dcf16324b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: l/58rUk8c48GUGCJ8NBX02KJo9HW3Pxrpf6vVpT5Hcq8AYljy5pirXC03lz6E4D9+sojRnNEbEKwt2+4rxVEPCMiDmYvtlw60fCAAnaYvih4t8IIrDH64X1UVWpMXqCV8rxz+sgH5Lyi80IOQVxCqLU6PsmHYCtT/JBzbrcgF4Vh1uV5ZsFBUnr8kUEblh0rKgdQgv/HXWO8N0cGWlCU+z28oFTgjD7v9iYo+nyqQ+jOQjDMAqMjWM1IKXjPFSOvwI2uUxnpCYmRselsinzKvnFNDapx6ELhUyxl7UyEbnBBs6c+bWEmDLWBT3g4MFOTjRf/V1uYI9hlKrBkvhHTqVTHoTOFL0TzRq+Gd0bb/nxKYz5vQolfHzYnk5amGGpGU+w0/O0aUuJnenTUOpnip+/qPqvQHNy1wpQTXnM1q0vlfAGKbmsA9ghvWjaGAy6bOTS+UNpFD0hugKpDybR4Q2gnjbxWhr9HwkrSFTIRgcv2vQuiWvgzmNLNarGI6unNtAOG99WgE/Ky1xjxv5McHRp/cNrqcfkYAo3lE5yznn80+CSTLLxjP1i8zEWqYD5MYL1Gk+8Ei2LWIPiTFyNFgpu8+1DAtfKij4UF6nSudWdVgJ8aMj611qW6v4/Pg6lwulAyEmm4FLXnOExqob+JVxZfEX112sbEr9Dle79PTiMOa/rdattQmArMbuVDXAZNhlAqWfS5cl4MPZc0/fRH3JQ6iet/DJWCMqznrLlqe2o57w5egzRRNPInTqs4x9SREyoukp5PH8qAczUtI4OgtSd9FmLcolmWHm2clIX2GlZsLyOeQYeDDrKYL6Rhc7NYuFbABkPs2nIyCs0JjhP2vf8xPMI+jayv079xjyNiE1xJlWpLJdXnfqhNAqA1beFojfbZhI0a7NLu9DDz48/INO3fiE7jqq4guTAJ0xJUnR6k3oKSLbpshH6RdYg5stXCyrpYWH4GeATyc4pdn6Gu/77L2gDB6Q6VH2ZQw574PVTqbO0uNlrmcj5rg6NWK83p8+mvQy6PooRcU1GJYB49ZRsk9z2Hcr+7RsmBXISBgbeuP9MArmDAeRj5Baz7kIj7H1On6PsSNbRuE1Z+RV9GWAV/KcwKS+R2ZFb3juwH8Rb/ehg0HXOzfHXoDsLW02QuqWas5weld0nvC6W+6WxHAF0kq56tD0+JnXyahxMGxwi16GKIFR52jfUH4l/yXevSdyOJjYsIODfWL+9yUIRlqOk4bcV0DYCOKmEbhlKPtYgwYV4lCOKluUxo/vqtcKb3q1+P8LzO3hZRYW62T4Wvk3d42I9WkgQK7P9Hsl6k0iXIBkVgQA+zwPpbTDzZThjsA3iEaNI42QCdMHaRBy0NF27SfVaHnjtUlROaOSG0G2E= 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)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiS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cXXnuXt4jNjUM/HF37+Q5P1ny3ESoOqeN8zJrGHeUpcxtjOAQNGVXQW+05cRssTlrDqz4NdVVye1Jl923e3X4Lx1nRgjWZjahME6Wism12+Y41IJSQ3iGhJI9SADn//R/HL7EJ4qR1l0Ai1G4LhqzAFubkGawwyjyxCYz+O54UtTCw1lPo2OqLKXbCySBCXecVFCtTtA0+Xm15xqZGGaSIZCspztlb0IvUhgRwTeBnECutyLz/nwGN9bGofThqH14CpkOrFo+xgzxc70QrlrN68abD6qKyK/nbx8UOlQIRzeJE6k1d8pZLfVceUjSl0QEOSd+Sv+L1E4wyGWuoRE9yycyF0KEf+XyMOFEoJqC0YuvFyhQGkPTckl4evq3VP90ASbvbYqddwJUCFpULh8ViAQf/oM8vyuibPKl+3Cu8u0+DQAlhMq1EFgKasmIycy1wT1qWabQdJQ+9XUtprfzCv/tLUjZBNQrYqwA0zZkiMXH5X8kHIXhfVy9kt1ADvbayffAmmSRQrlYJQ85s+JWZGmy1tN0YOOqrusGGQWaCpcnhu5ovus0AfE0SWm5pOyMZFB7L6J/maLhKbVyvswDaK5z0B+vTL/TfHer4UkNAaYA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 198cc547-d884-47fa-71dd-08dcf16324b6 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2024 23:58:50.0660 (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: 8a7S6C/6YiGQdZrGWv2E1buJomf7ssIAtONcw3CsxM5CdOZ1ntcwh9mV49iW8e5TJSzbKX+sc0K4u7jiHtWnmXMvVUz2p8a001k33d2nIxOt113OeiXGolWlK60FZvb6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRPR01MB12916 |
Series |
ASoC: remove dpcm_xxx flags
|
expand
|
diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index b12b3d865ae30..c0c906a78ebae 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(-)