[RFC v2 0/5] Add HDMI infoframe helpers
Thierry Reding
thierry.reding at avionic-design.de
Wed Dec 5 08:45:39 PST 2012
During the development of this series I ran into a couple of build
failures caused by missing forward declarations. They are added in the
first patch of this series.
Patch 2 adds generic helpers to pack a structures that describe HDMI
AVI, audio, vendor-specific or SPD infoframes into the binary format
specified in the HDMI specification. The resulting binary buffer should
be easily programmable into the HDMI controller.
Patch 3 provides a helper to fill an HDMI AVI infoframe with data from
a struct drm_display_mode.
Patches 4 and 5 move the Tegra and Intel drivers over to the new
helpers. I think Rafał volunteered to take a look at porting the Radeon
driver. Besides those there is only Nouveau and Exynos that implement
their own, which I was going to move next.
One item that I have on my TODO list is the ACR computations requested
by Christian König. Before getting into that, however, I wanted to get
version out so that it can be tested on Intel hardware. On Tegra this
series generates identical infoframes as the custom implementation.
Thierry
Thierry Reding (5):
drm: Add some missing forward declarations
video: Add generic HDMI infoframe helpers
drm: Add HDMI infoframe helpers
drm: tegra: Use generic HDMI infoframe helpers
drm/i915: Use generic HDMI infoframe helpers
drivers/gpu/drm/Kconfig | 9 ++
drivers/gpu/drm/Makefile | 1 +
drivers/gpu/drm/drm_hdmi.c | 71 +++++++++
drivers/gpu/drm/i915/intel_drv.h | 62 +-------
drivers/gpu/drm/i915/intel_hdmi.c | 268 ++++++++++++++++---------------
drivers/gpu/drm/i915/intel_sdvo.c | 22 ++-
drivers/gpu/drm/tegra/Kconfig | 1 +
drivers/gpu/drm/tegra/hdmi.c | 226 +++++++++++++-------------
drivers/gpu/drm/tegra/hdmi.h | 189 ----------------------
drivers/video/Kconfig | 3 +
drivers/video/Makefile | 1 +
drivers/video/hdmi.c | 322 ++++++++++++++++++++++++++++++++++++++
include/drm/drm_crtc.h | 3 +-
include/drm/drm_hdmi.h | 19 +++
include/linux/hdmi.h | 220 ++++++++++++++++++++++++++
15 files changed, 915 insertions(+), 502 deletions(-)
create mode 100644 drivers/gpu/drm/drm_hdmi.c
create mode 100644 drivers/video/hdmi.c
create mode 100644 include/drm/drm_hdmi.h
create mode 100644 include/linux/hdmi.h
--
1.8.0.1
More information about the dri-devel
mailing list