Hi Stephen > 2) Call an "of_xlate" function on that driver, passing it the "portspec" > I mentioned above; the driver will interpret the portspec, maps it to > the ASoC port name, and return it. > > The DT binding for each audio component must define the list of valid > port IDs, and the number of cells used to encode the value. > > See for example the GPIO and PWM subsystem's of_xlate functions.
Hmm... I guess this means struct snd_soc_dai_driver or similar has .of_xlate() callback ? But, this simple-audio is "independent" from cpu/codec. For example, basically, we can use this simple-audio for FSI-wm8903 matching. But, this wm8903 is used on tegra too. Then, FSI-wm8903 (which use simple-audio) needs .of_xlate on wm8903 driver to get interpreted port name, but tegra-wm8903 don't need it. Best regards --- Kuninori Morimoto _______________________________________________ devicetree-discuss mailing list [email protected] https://lists.ozlabs.org/listinfo/devicetree-discuss
