video: tegra: hdmi: fix cea vic code search
Ivan Raul Guadarrama [Mon, 21 Dec 2015 14:44:38 +0000 (16:44 +0200)]
Remove all flags but interlaced from the vmode field
to allow the correct comparison against embedded list.

Bug 200157629

Change-Id: I7ac2a97cbd259bc792122f723825a0ef1b697ff1
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/842959
(cherry picked from commit ba59b240e7674be8ec74453897ca8b8bc871dcd4)
Reviewed-on: http://git-master/r/925547
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

drivers/video/tegra/dc/hdmi.c

index 0e2bca2..47754af 100644 (file)
@@ -1778,7 +1778,7 @@ static int tegra_dc_find_cea_vic(const struct tegra_dc_mode *mode)
 
        tegra_dc_to_fb_videomode(&m, mode);
 
-       m.vmode &= ~FB_VMODE_STEREO_MASK; /* stereo modes have the same VICs */
+       m.vmode &= FB_VMODE_INTERLACED; /* remove all flags but interlaced */
 
        for (i = 1; i < CEA_861_D_MODEDB_SIZE; i++) {
                const struct fb_videomode *curr = &cea_modes[i];