[tegra: HDMI: stereo] fix VIC for 720p stereo mode
Chong Zhang [Mon, 14 Feb 2011 20:11:34 +0000 (12:11 -0800)]
VIC for 720p stereo mode should be 4 (60Hz) or 19 (50Hz).

bug 792143

Original-Change-Id: I3edb468a992842ed6a3247fbab02970b0c078acb
Reviewed-on: http://git-master/r/19468
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rfd1447ee5cf7e37f43490e1a228a0e404106fc4b

drivers/video/tegra/dc/hdmi.c

index bbab482..6163a18 100644 (file)
@@ -862,7 +862,9 @@ static void tegra_dc_hdmi_setup_avi_infoframe(struct tegra_dc *dc, bool dvi)
                        avi.m = HDMI_AVI_M_16_9;
                        avi.vic = 17;
                }
-       } else if (dc->mode.v_active == 720) {
+       } else if (dc->mode.v_active == 720 ||
+               (dc->mode.v_active == 1470 && dc->mode.stereo_mode)) {
+               /* VIC for both 720p and 720p 3D mode */
                avi.m = HDMI_AVI_M_16_9;
                if (dc->mode.h_front_porch == 110)
                        avi.vic = 4; /* 60 Hz */