drm/i915/tv: Fix interlaced ysize calculation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 12 Nov 2018 16:59:47 +0000 (18:59 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Jan 2019 16:48:51 +0000 (18:48 +0200)
Fix the calculation of the vertical active period for interlaced
TV modes.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181112170000.27531-4-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/intel_tv.c

index bd5536f0ec9262ffc230186846b50f680f68e416..91cb31ff8ff0ec7cde88c35d9245b8bce2930a2a 100644 (file)
@@ -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;