summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_edid.c
diff options
context:
space:
mode:
authorLespiau, Damien2013-08-19 17:58:56 +0200
committerDave Airlie2013-08-30 00:40:29 +0200
commita5ad3dcf358475dfc5ccf11e28d3822fc3c8e5fe (patch)
treeef41ba92f882da0c4422402cbacaecb034893fbc /drivers/gpu/drm/drm_edid.c
parentdrm: Add support for alternate clocks of 4k modes (diff)
downloadkernel-qcow2-linux-a5ad3dcf358475dfc5ccf11e28d3822fc3c8e5fe.tar.gz
kernel-qcow2-linux-a5ad3dcf358475dfc5ccf11e28d3822fc3c8e5fe.tar.xz
kernel-qcow2-linux-a5ad3dcf358475dfc5ccf11e28d3822fc3c8e5fe.zip
video/hdmi: Don't let the user of this API create invalid infoframes
To set the active aspect ratio value in the AVI infoframe today, you not only have to set the active_aspect field, but also the active_info_valid bit. Out of the 1 user of this API, we had 100% misuse, forgetting the _valid bit. This was fixed in: Author: Damien Lespiau <damien.lespiau@intel.com> Date: Tue Aug 6 20:32:17 2013 +0100 drm: Don't generate invalid AVI infoframes for CEA modes We can do better and derive the _valid bit from the user wanting to set the active aspect ratio. v2: Fix multi-lines comment style (Thierry Reding) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-rw-r--r--drivers/gpu/drm/drm_edid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 2381abd452f1..d76d6089106f 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -3259,7 +3259,6 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
frame->video_code = drm_match_cea_mode(mode);
frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE;
- frame->active_info_valid = 1;
frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE;
return 0;