[PATCH v3 0/9] Add HDMI infoframe helpers

Thierry Reding thierry.reding at avionic-design.de
Mon Jan 14 06:30:19 PST 2013


The first two patches are of a janitorial nature, the first converting
the drm_num_cea_modes constant to unsigned and the second adding a few
missing forward declarations in order to fix build issues.

Patch 3 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 4 provides a helper to fill an HDMI AVI infoframe with data from
a struct drm_display_mode.

Patch 5 adds the DRM EDID helpers (including the new DRM HDMI helper
from patch 4) to the DRM DocBook documentation.

Patch 6, 7 and 8 move the Tegra, Intel and Radeon drivers over to the
new helpers. Patch 7 was contributed by Intel's Paulo Zanoni.

Finally, patch 9 removes the drm_mode_cea_vic() function which is a
duplicate implementation of the older drm_match_cea_mode().

I haven't gotten around to converting the Exynos driver reimplementation
because it isn't as trivial as the others. Nouveau also has some code to
write infoframes and I'll see if I can convert those next.

One item that I have on my TODO list is the ACR computations requested
by Christian König. My schedule has been really busy lately, so I'm not
sure how long it will take until I get to it. I'd appreciate it if we
could merge this series without the ACR implementation in order to get
at least the numerous infoframe reimplementations cleaned up and to
prevent others from getting in.

Thierry

Paulo Zanoni (1):
  drm/i915: Use generic HDMI infoframe helpers

Thierry Reding (8):
  drm: Make drm_num_cea_modes unsigned
  drm: Add some missing forward declarations
  video: Add generic HDMI infoframe helpers
  drm: Add HDMI infoframe helpers
  drm: Add EDID helper documentation
  drm/tegra: Use generic HDMI infoframe helpers
  drm/radeon: Use generic HDMI infoframe helpers
  drm: Remove duplicate drm_mode_cea_vic()

 Documentation/DocBook/drm.tmpl          |   4 +
 drivers/gpu/drm/Kconfig                 |   1 +
 drivers/gpu/drm/drm_edid.c              |  45 +++--
 drivers/gpu/drm/drm_edid_modes.h        |   2 +-
 drivers/gpu/drm/i915/intel_drv.h        |  62 +-----
 drivers/gpu/drm/i915/intel_hdmi.c       | 186 +++++++++---------
 drivers/gpu/drm/i915/intel_sdvo.c       |  21 +-
 drivers/gpu/drm/radeon/evergreen_hdmi.c |  85 ++------
 drivers/gpu/drm/radeon/r600_hdmi.c      | 134 ++++---------
 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                    | 332 ++++++++++++++++++++++++++++++++
 include/drm/drm_crtc.h                  |   6 +-
 include/drm/drm_edid.h                  |   6 +
 include/linux/hdmi.h                    | 221 +++++++++++++++++++++
 18 files changed, 883 insertions(+), 642 deletions(-)
 create mode 100644 drivers/video/hdmi.c
 create mode 100644 include/linux/hdmi.h

-- 
1.8.1



More information about the dri-devel mailing list