diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-08-06 15:32:18 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-08 08:04:47 -0400 |
commit | 178f736ab96637bc17bcf00c3b58af0137e880e0 (patch) | |
tree | b41efc62c4315d1705cf46dfbd2c57f974cbad1c /drivers/gpu/drm/i915/intel_drv.h | |
parent | 03a7a189c22bf911025c695841c18a681498a102 (diff) |
drm/i915/hdmi: Change the write_infoframe vfunc to take a buffer and a type
First step in the move to the shared infoframe infrastructure, let's
move the different infoframe helpers and the write_infoframe() vfunc to
a type (enum hdmi_infoframe_type) and a buffer + len instead of using
our struct dip_infoframe.
v2: constify the infoframe pointer and don't mix signs (Ville Syrjälä)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
Signed-off-by: Thierry Reding <thierry.reding at avionic-design.de>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 54e389de9f42..712e29e27c14 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #define __INTEL_DRV_H__ | 26 | #define __INTEL_DRV_H__ |
27 | 27 | ||
28 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
29 | #include <linux/hdmi.h> | ||
29 | #include <drm/i915_drm.h> | 30 | #include <drm/i915_drm.h> |
30 | #include "i915_drv.h" | 31 | #include "i915_drv.h" |
31 | #include <drm/drm_crtc.h> | 32 | #include <drm/drm_crtc.h> |
@@ -464,7 +465,8 @@ struct intel_hdmi { | |||
464 | enum hdmi_force_audio force_audio; | 465 | enum hdmi_force_audio force_audio; |
465 | bool rgb_quant_range_selectable; | 466 | bool rgb_quant_range_selectable; |
466 | void (*write_infoframe)(struct drm_encoder *encoder, | 467 | void (*write_infoframe)(struct drm_encoder *encoder, |
467 | struct dip_infoframe *frame); | 468 | enum hdmi_infoframe_type type, |
469 | const uint8_t *frame, ssize_t len); | ||
468 | void (*set_infoframes)(struct drm_encoder *encoder, | 470 | void (*set_infoframes)(struct drm_encoder *encoder, |
469 | struct drm_display_mode *adjusted_mode); | 471 | struct drm_display_mode *adjusted_mode); |
470 | }; | 472 | }; |