From: Damien Lespiau Date: Tue, 6 Aug 2013 19:32:23 +0000 (+0100) Subject: drm: Set aspect ratio fields in the AVI infoframe even for non CEA modes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15747638e63cdfb94a8ff4af8e4b53e966e2bace;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm: Set aspect ratio fields in the AVI infoframe even for non CEA modes I cannot find any evidence what we shouldn't try to set those fields when setting a non-CEA mode on an HDMI sink. So just kill that return. Suggested-by: Ville Syrjälä Signed-off-by: Damien Lespiau Acked-by: Dave Airlie Reviewed-by: Alex Deucher Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index a9c8980367e0..dfc7a1ba9360 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -3106,8 +3106,6 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame, frame->pixel_repeat = 1; frame->video_code = drm_match_cea_mode(mode); - if (!frame->video_code) - return 0; frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE; frame->active_info_valid = 1;