aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorVandana Kannan <vandana.kannan@intel.com>2014-06-05 05:15:29 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-23 01:05:25 -0400
commit69ab6d35f699e9e8df068d701e166529c6b4bab8 (patch)
tree81298c9469d68fc1a4e694cb0a4207afbbdf9924 /drivers/gpu/drm
parentff587e45a1a1690f5cd713a2782672c579460365 (diff)
drm/edid: Check for user aspect ratio input
In case user has specified an input for aspect ratio through the property, then the user space value for PAR would take preference over the value from CEA mode list. v2: Thierry's review comments. - Modified the comment "Populate..." as per review comments v3: Thierry's review comments. - Modified the comment to block comment format. Signed-off-by: Vandana Kannan <vandana.kannan@intel.com> Cc: Thierry Reding <thierry.reding@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Acked-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/drm_edid.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index dfa9769b26b5..58a4a9d20e4a 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -3775,8 +3775,14 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
3775 3775
3776 frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE; 3776 frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE;
3777 3777
3778 /* Populate picture aspect ratio from CEA mode list */ 3778 /*
3779 if (frame->video_code > 0) 3779 * Populate picture aspect ratio from either
3780 * user input (if specified) or from the CEA mode list.
3781 */
3782 if (mode->picture_aspect_ratio == HDMI_PICTURE_ASPECT_4_3 ||
3783 mode->picture_aspect_ratio == HDMI_PICTURE_ASPECT_16_9)
3784 frame->picture_aspect = mode->picture_aspect_ratio;
3785 else if (frame->video_code > 0)
3780 frame->picture_aspect = drm_get_cea_aspect_ratio( 3786 frame->picture_aspect = drm_get_cea_aspect_ratio(
3781 frame->video_code); 3787 frame->video_code);
3782 3788