From: Ville Syrjälä Date: Mon, 12 Nov 2018 16:59:47 +0000 (+0200) Subject: drm/i915/tv: Fix interlaced ysize calculation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6801603d3d7dd05c62d368045c7d5a90980596a2;p=openwrt%2Fstaging%2Fblogic.git drm/i915/tv: Fix interlaced ysize calculation Fix the calculation of the vertical active period for interlaced TV modes. Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20181112170000.27531-4-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak --- diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index bd5536f0ec92..91cb31ff8ff0 100644 --- a/drivers/gpu/drm/i915/intel_tv.c +++ b/drivers/gpu/drm/i915/intel_tv.c @@ -1086,7 +1086,7 @@ static void intel_tv_pre_enable(struct intel_encoder *encoder, if (tv_mode->progressive) ysize = tv_mode->nbr_end + 1; else - ysize = 2*tv_mode->nbr_end + 1; + ysize = 2 * (tv_mode->nbr_end + 1); xpos += conn_state->tv.margins.left; ypos += conn_state->tv.margins.top;