drm/tegra: hdmi: Enable audio over HDMI
authorThierry Reding <treding@nvidia.com>
Thu, 15 Jan 2015 12:43:18 +0000 (13:43 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Jul 2016 09:34:31 +0000 (11:34 +0200)
commit2ccb396e9dd4536cfb7e8c4fd892d215c7aec2b6
tree1c2540130dd2757f7ba9c6eca2dc6617e57c0dfc
parentc31efa7a30ed04cbd17cac6e8fc91fce425773cd
drm/tegra: hdmi: Enable audio over HDMI

In order to use the HDA codec to forward audio data to the HDMI codec it
needs the ELD that is parsed from the monitor's EDID.

Also implement an interoperability mechanism between the HDA controller
and the HDMI codec. This uses vendor-defined scratch registers to pass
data from the HDMI codec driver to the HDMI driver (that implements the
receiving end of the HDMI codec). A custom format is used to pass audio
sample rate and channel count to the HDMI driver.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/hdmi.h
drivers/gpu/drm/tegra/output.c