From patchwork Wed Oct 9 01:45:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 834412 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011011.outbound.protection.outlook.com [52.101.125.11]) (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 9DEF13C466; Wed, 9 Oct 2024 01:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.11 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728438322; cv=fail; b=u/o7BUwlSZ4TCW6ItU5HzvSKW8MED41ge8l1pULrl8RFFiQ8AIfEm8/nuVY72YbTRuN7+WaYhp2E0H8TIr+5vaM9Pa7+SKr9HY1YDqtPWKgTJzJINdwTFNv94yjGNvsNu5ui4LX3sj5gKK3AmDHevXVTDsd5MvD/TLN+9yv83J8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728438322; c=relaxed/simple; bh=1C8GbSai6GQN1Dj6yYw+sVEAuVb6XP53FqTe2zJyEYU=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=bOEKeLFswhyAlhdSmqmM4fqDs+pYNizQbQD4td+Ze8cZbs1CihQwXpV13pOWoSKC86ePKqDQbcj7u6/i5LKOUSzBhM6lH5Dt9NMRuKgQ53KlT9JRJhkRwGbVauKbeDXR2PIlFuEWsZoQMtFyxqG5CB0hUFxRlXFGyo840fCD/YU= 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=gyZRSx/V; arc=fail smtp.client-ip=52.101.125.11 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="gyZRSx/V" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BKIN1x8OysUQ+q3k+AXWnGQGqXzlB0CMGR8gO/j7jcX263PZwOr7O9oYDPgi8B0NYHtwAIQtrPhqtgoB8PNTVSz+lZNDowiUL9LCFYW15SJwJqB4VwOjOgVedopVQ8sPVtyeRvuvhoNLsLWHAysbvJQ+07QxpijXedpGnDOf0fyiH2r3U+PfbOnPApeh+3mt/aLgHIe8HRplwyNE6h7pj0kWnc3sLQJNzRzOeWK6myMrQRs2vf4/mjhjWInQcmGFS0XwkfmdLmoSwH4GzhhE+1Riji4w7puCGoIN2mnvCKJ1TKhgOJISQ40xJZroYxBitgGiXtoQ6HmQIuiZaq0nBA== 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=FrlHo+pXgScml1gY+f5UpIPiHilFUDJNwvULtMoUnYc=; b=q48JLJzqwcFfUssTI5w/sT3xn1E6SDXM9MhmYhEEjg1mdGlKJG/HQKP7i2NGGFq4Cy0Me1AfIs7Ep4pDRFHoOCfVnZQayAmQncSOCyZUK5PpmE+W9agwcemkOrUW47kKxb4LiuqfD0wCs4eRGQo2/VHhBqCLY9GglOa0L0TcmHBO89vOu2pIB76GfI3gzKqrLjCK4HtzHTG5vCV02xQMFKOUyn5CDvjUzDyFB5p9rK8uu17fJh/B87b+LzLz0D10Hdmp5nJfzuPG63gFw9EYxPpceiPEJQcK0FX9BIQlABJ2AoDgmgETOfMjUSy8EUrETxbmxlX/3bitATj/uU694Q== 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=FrlHo+pXgScml1gY+f5UpIPiHilFUDJNwvULtMoUnYc=; b=gyZRSx/VR53Qe77EOjZZk4N+7bb+Cj+Dcqit91+3jhkQltwicaFyJkZ09Xn29agIB2HSE06re5ImKrUvggc9b172WiQc9ePigsZoHr/yow/LeROE1/8oxX1dLS1hGlHHVWg9855kGryaztYvhH8chRau8LLt+hU3VVbHDbi6GY0= 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 OSZPR01MB8765.jpnprd01.prod.outlook.com (2603:1096:604:15e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.22; Wed, 9 Oct 2024 01:45:18 +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.8026.020; Wed, 9 Oct 2024 01:45:18 +0000 Message-ID: <87ploarqvm.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v7 5/9] ASoC: audio-graph-card: use new of_graph functions User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Daniel Vetter , David Airlie , Helge Deller , Jaroslav Kysela , Laurent Pinchart , Liam Girdwood , Maarten Lankhorst , Mark Brown , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Rob Herring , Saravana Kannan , Takashi Iwai , Thomas Zimmermann , Tomi Valkeinen , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-sound@vger.kernel.org, Sakari Ailus In-Reply-To: <87wmiirqwy.wl-kuninori.morimoto.gx@renesas.com> References: <87wmiirqwy.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 9 Oct 2024 01:45:18 +0000 X-ClientProxiedBy: TYCP301CA0017.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:381::8) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB8765:EE_ X-MS-Office365-Filtering-Correlation-Id: ac26946a-b06c-42e1-682b-08dce804077e 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|366016|7416014|1800799024|52116014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: d21757KqftFdzYyA9aqKijFr4zihwFHz8Hq8vBnIc17VMrh7G1ZWUYYrIQlnZ/qT5x1cdyUKW4Bs0E/qGEirOtmugK+eGRH1y2CKTbz2kGegXVFcnK9elCPGHI0iTVOuFvNzJwAirUelTzTPlDkwfh4tJgd71SCd1MGu0oZMi2BwOBJIqXEtr5nuUj2FiMYe8k0Ol/MOuQhULv2EfhyisCehR4FiWQmpDm0FTg7jrD5vdGnYPsGP7MWRUsa36iY81bm8b4gEiVGPIMfuADA1wyVBIZm1QJg/Svh0E4AmNCQLr4XfjmcmQsJbx51GCSNVOBgVQHXXfGB6uQ2CAdxFJdPO+1x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en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(7416014)(1800799024)(52116014)(376014)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AdoGEEN0CcQ2PQhRmajscPYUOn0oqkBp7dsw7ajmRZyoYugj1JU31BWlLTQ+SSt44WW/iGQQj7HPaWOQaL+IZlv/9gZCKwZW26REfTNoQZ4rmyPsWvVOKUH88OmHQ3Sym74BtJgl9WeSP3rQswuzv6Zbo/H0WURpQl3RLu5Kc6DqpinO1qR3nwXtDQDhX5SDTthu+Ww5j1hnXeWcaJVzt1OC+J3ODCW8tmZm6lvC/sJc16Wv9Sz3rQIY7FzXYFJdECzZLMEiQoOC/cj7VS5CLNOADr1mM7qFesQJ1QVnP2fPiUyjUeZ0mL70xeCeSsnapO/R8+9ZL5pHwYmNPbXe6KNR+VHG/lmS1AHr0rBnt7BoBEuN11hvWgAKRRbW9YuL6KfO5dRm43GZTxQe+fXCxzK1yizphuJh5FeHP8LTg0w7Q3LOgVCcL8Pz6lDW2sJio8FgCZ5eODogbIgl/YvP9mtY3W/Ddbmuf44B/Fcb0P58VlYjOPXyyIG3nJa/KhdK9UOKR/xL9ce5JAnBJAmphiD7YckPa3g46nVOwhcqoqa0a0lqVkDMcs9ixHS/fVKX33eGNgmZ5Y6QLcMd1OoA2xwPgy+JrhOX/gZMB17fAIIDD6ObtPpYbXfpPQ/ve8J/9H5Cb9+2L0074d+4wSloHRM4/3qYgD8oDJ9aojk1GIj8CfS8OmH0oSa+vueSrSp0ej1Acgze9r/j/GwzHQ2eiLMgO0qIq16qRjFNP3B6M6gMb+QeIxOMyMbmDew/99xnk8z0eWDNiLFcWOkHyFgykJdcu2CH7fvPPgGYBblYf0ee8OAl0+O4oIzi6ZGvSv53ZT3pJ7L0V/hWJchOwYA27fCuxgTnR8Ddh5Q2X0F6qMAHQ8a2DLKBNDEEiBQz5pi8U6G0oSxtS5cGvqh44GrNZhh5Z3HtDvTh8ze8t5YX1sS3sw2lbPXKALtq0Xc+KQJ+KVlv4BQB47kJZuniRyNKvbparV0sN8FHqAEQnN0SgPZmmrDVmXUjhRamQ2wwu3s2kE7zPL2Dzr9k+rCbsN7XDebCp9of9g5GTh1KPlRZimnAJL0AYWh5P6L1dS4SoG5Dv3oedv2f21+sF7yXeLm/LMX/GaGfhhLoBAI4hktwA11MOTadV+Ki3skrIVwQgXWbhLgPo4laXmKw1nw3SsPYQyszyfzU/eX9ZnU5N0d5Q2OogFtZwVAjJsAhNLxkyFh58L8jUuDnoIbqS3zZcIHp52fuSrakQVvaUkIVc77Aodt8snBVpdezpTBboYyBXmFzEplVcudL0meA2nh3VeFtzzuYCkxQGbHuJVm3snzzkTBFGSY8fXPxJHgUXbPgzzpOehgyPHu0riVSfKDszjTEcWwv5cFQI9Qu3aDWoHjETgCQTiphMkmayZG5ed5Mg94IWFEqdqAdDaHRjT0sMudkXNsyxOeeqgK0KAYjTsnrm3EmU/fKSQtwI+h/qh0/ENY1+3HZcuLDL7AephJeXzLiMPJDVCEAJyLLutQIYwnPw7iqo7ygUyvJGb8DakmQxf0EkDu9K3hdSUzgRHTC9gOie+iZ077V6NYNR/JQPgqJZm5RicfpNgRkdZku692ivCSkD2UhB6ztkYVKBz82dDQKpwrsNKjUrG+MHavhORKtoWY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac26946a-b06c-42e1-682b-08dce804077e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 01:45:18.3893 (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: x0hUgRB8pXLcEp6XeoN0CHaxBWpDYJcptnH65sJFmWqDZDCumNXs1evcGCxbd8McJVZ5IE9XTN48KlesoxMX2D+UjOza+XcejfNKfdGWm9eO6npbNPX3/MHygdWGJ5pC X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB8765 Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto Acked-by: Mark Brown --- sound/soc/generic/audio-graph-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index 4b384475b972..7655425a3deb 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c @@ -372,7 +372,7 @@ static int __graph_for_each_link(struct simple_util_priv *priv, cpu_port = it.node; /* loop for all CPU endpoint */ - for_each_child_of_node_scoped(cpu_port, cpu_ep) { + for_each_of_graph_port_endpoint(cpu_port, cpu_ep) { /* get codec */ codec_ep = of_graph_get_remote_endpoint(cpu_ep); codec_port = ep_to_port(codec_ep);