Re: [PATCH] ASoC: simple-card-utils: fix graph_util_is_ports0() for DT overlays
From: Sen Wang
Date: Mon Mar 09 2026 - 00:13:06 EST
On 3/8/26 19:40, Kuninori Morimoto wrote:
Hi Sen
But when the DPCM topology comes from a DT overlay, __of_attach_node()(snip)
inserts new children at the head of the sibling list, reversing the
order. of_get_child_by_name() then returns ports@N instead of ports@0,
causing all front-end links to be classified as back-ends in
audio-graph-card2. The card subsequently breaks and registers with no
PCM devices.
+ /* match "ports" or "ports@0" by unit address in node name */
Could you please indicate this method is needed for DT overlay ?
It is the main reason.
Thank you for your help !!
Best regards
---
Kuninori Morimoto
Thanks for the feedback Kuninori,
Will update the code comment and send a v2 shortly.
Best,
Sen Wang