On Tue, Jun 13, 2017 at 2:59 PM, John Stultz john.stultz@linaro.org wrote:
ALSA SoC needs to know connected DAI ID for probing. Using the new audio-card-graph approach, ports/endpoints are used to describe how the links are connected. Unfortunately, since ports/endpoints are used as well for video linkages, there are some issues mixing the port ids to the two (video and audio) namespaces.
To solve this issue, this patch adds new .get_dai_id callback on hdmi_codec_ops.
The will assume that HDMI audio out will be connected to reg = <2>. This will then be remapped to the ALSA SoC side will as DAI 0. Allowing the adv7511's hdmi audio support to be used with the audio-card-graph.
Credit to Kuninori Morimoto who's patch to dw-hdmi-i2s-audio.c was what this was mostly copy-pasted from.
Forgot to note this has dependencies on patches in the ASoC tree in -next, so it probably should go in via that tree.
thanks -john