Re: [PATCH v5 5/7] ASoC: SDCA: class_function: xlate sound-dai cell by entity index

From: Charles Keepax

Date: Mon Sep 28 2026 - 05:42:32 EST


On Fri, Sep 25, 2026 at 05:10:46PM +0100, Srinivas Kandagatla wrote:
> sdca_asoc_populate_dais() sets each DAI id from the SDCA Function's
> entity array index. ASoC's default of_xlate_dai_name treats the
> phandle cell as a positional index into the DAI list, so on a Function
> with non-DAI entries between dataport entities a sound-dai phandle
> resolves to the wrong DAI.
>
> Register a custom of_xlate_dai_name that walks the entity array and
> returns the dataport entity whose array index matches the cell value.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>

Thanks,
Charles