[alsa-devel] [PATCH][RFC] ASoC: simple-card-utils: fixup asoc_simple_card_get_dai_id() ID method

Tony Lindgren tony at atomide.com
Thu Dec 13 17:42:06 CET 2018


* Kuninori Morimoto <kuninori.morimoto.gx at renesas.com> [181213 05:18]:
> commit b6f3fc005a2c8 ("ASoC: simple-card-utils: fixup
> asoc_simple_card_get_dai_id() counting") fixuped getting DAI ID method.
> It will get DAI ID from OF graph "port", but, we want to consider about
> "endpoint", too.
> And, we also want to keep compatibility.
> 
> This patch fixup it as
> 
> 	if (driver has specified DAI ID)
> 		use it as DAI ID
> 	else if (OF graph endpoint has reg)
> 		use it as DAI ID
> 	else if (OF graph port has reg)
> 		use it as DAI ID
> 	else
> 		use endpoint count as DAI ID

Yup I tested this instead of the earlier 1/7 patch
and things work nice for me. I also commented out
reg properties from the codec end and the mapping
worked fine. So please feel free to add:

Tested-by: Tony Lindgren <tony at atomide.com>


More information about the Alsa-devel mailing list