This patch is only applicable to 3d frame packing
of progressive mode.
According to HDMI Specification 1.4b 8.2.3.2,
vertical toatal line is x2 of 2D vertical toatal line
and pixel clock frequency is x2 of 2D pixel clock frequency.
vdisplay += vtotal
mpixelclock *= 2
Change-Id: I097c25cd1a930635e33f0a7bc86797ad1c7ed607
Signed-off-by: algea.cao <algea.cao@rock-chips.com>
vmode->mpixelclock = mode->crtc_clock * 1000;
if (mode->flags & DRM_MODE_FLAG_420_MASK)
vmode->mpixelclock /= 2;
+ if ((mode->flags & DRM_MODE_FLAG_3D_MASK) ==
+ DRM_MODE_FLAG_3D_FRAME_PACKING)
+ vmode->mpixelclock *= 2;
dev_dbg(hdmi->dev, "final pixclk = %d\n", vmode->mpixelclock);
/* Set up HDMI_FC_INVIDCONF
vblank /= 2;
v_de_vs /= 2;
vsync_len /= 2;
+ } else if ((mode->flags & DRM_MODE_FLAG_3D_MASK) ==
+ DRM_MODE_FLAG_3D_FRAME_PACKING) {
+ vdisplay += mode->vtotal;
}
/* Scrambling Control */