]> git.baikalelectronics.ru Git - kernel.git/commit
drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 19 Jun 2017 00:39:29 +0000 (00:39 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 19:46:39 +0000 (20:46 +0100)
commit499df3be935e10470aa24db0174003a06411ed83
tree564441462504a57b1537ec2bfa19fda54c876578
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC

ALSA SoC needs to know connected DAI ID for probing.
It is not a big problem if device/driver was only for sound,
but getting DAI ID will be difficult if device includes both
Video/Sound, like HDMI.
To solve this issue, this patch adds new .get_dai_id callback
on hdmi_codec_ops.
dw-hdmi-i2s will assume that HDMI sound will be connected
to reg = <2>. Then, ALSA SoC side will recognized it as DAI 0

ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
/* HDMI Video IN */
};
port@1 {
reg = <1>;
/* HDMI OUT */
};
port@2 {
reg = <2>;
/* HDMI Sound IN */
};
};

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c