On Wed, Jun 29, 2016 at 12:33:15AM +0000, Kuninori Morimoto wrote:
Hi Rob
These are v2 of of_graph patch-set
Now OF graph is mainly used by V4L2 SoC, and ALSA SoC is using different style for SoC <-> Codec binding. But, for example, HDMI case, V4L2 <-> ALSA need to collaborate, and then ALSA SoC needs to adjust to OF graph.
OTOH, V4L2's "OF graph" position is same as ALSA SoC "sound card" position. And ALSA SoC side want to keep existing supported feature on new OF graph style. I'm posting this on ALSA SoC ML now.
Now, current of_graph is indicating port/endpoint, but there is no way to understand that it is for video port ? or sound port ? or other device port ?
I need to see how you want to use this. I'm not completely convinced this is necessary as the port number should be meaningful. For example, port 0 is video and port 1 is audio. This information is specific to the local parent node which could be problematic if you have generic code parsing the local node. However, if you know which local port is audio, then you know the remote endpoint's port is also the audio port.
For example, HDMI has video port, and sound port. Because of this reason, ALSA SoC side can't handle OF graph correctly. Thus, this patch-set tries to add new "type" on OF graph.
And this patch-set includes small feature which are useful for ALSA SoC side OF graph support.
In general, all these helpers look okay if you have a user for them.
Rob