RE: [RFC PATCH] ASoC: simple-card: Use dai_id from node description
From: Kuninori Morimoto
Date: Sun Nov 19 2023 - 18:39:31 EST
Hi Daniel
Thank you for your patch.
> We can specify DAI id using reg property. When dts
> node has only 1 DAI simple-card always assumes that DAI id is 0.
>
> But this is not correct in the case of SOF for example which adds DAIs
> staticaly (See definition of snd_soc_dai_driver in sound/soc/sof/imx/imx8m.c)
>
> Signed-off-by: Daniel Baluta <daniel.baluta@xxxxxxx>
> ---
(snip)
> - args.args_count = (of_graph_get_endpoint_count(node) > 1);
> + args.args_count = (of_graph_get_endpoint_count(node) >= 1);
Hmm... I'm not sure how it works for existing drivers.
I'm busy this week, so I will check it next week.
Thanks