ASoC: rockchip-max98090: Support usage with and without HDMI
authorCheng-Yi Chiang <cychiang@chromium.org>
Mon, 28 Oct 2019 07:19:26 +0000 (15:19 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 29 Oct 2019 12:30:30 +0000 (12:30 +0000)
commitf03412b78a947857bbd20899e1423482fba55761
tree3dc2cfdd49de1743e4f9ff6e84d53d79d074ab51
parenta9c82d63ca4819d3d03964dbf4aa427b36c5a67f
ASoC: rockchip-max98090: Support usage with and without HDMI

Add one optional property "rockchip,hdmi-codec" to let user specify HDMI
device node in DTS so machine driver can find hdmi-codec device node for
HDMI codec DAI.

Use the presence of rockchip,audio-codec and rockchip,hdmi-codec to
specify the use case.

Use max98090 only : specify rockchip,audio-codec.
Use HDMI only: specify rockchip,hdmi-codec.
Use both max98090 and HDMI: specify rockchip,audio-codec and
rockchip,hdmi-codec.

Move these properties to optional because they are not needed for
HDMI-only use case.
"rockchip,audio-codec": The phandle of the MAX98090 audio codec
"rockchip,headset-codec": The phandle of Ext chip for jack detection

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Link: https://lore.kernel.org/r/20191028071930.145899-3-cychiang@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/rockchip-max98090.txt