Remove interlaced mode from fb modelist before it can be supported.
Should revert this patch after interlaced mode support on normal display port.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit
079a6024a7369117b8f2ca8f3a905702a0175394)
fb_destroy_modelist(&mxc_ddc.fbi->modelist);
for (i = 0; i < mxc_ddc.fbi->monspecs.modedb_len; i++)
- fb_add_videomode(&mxc_ddc.fbi->monspecs.modedb[i],
- &mxc_ddc.fbi->modelist);
+ /*FIXME now we do not support interlaced mode */
+ if (!(mxc_ddc.fbi->monspecs.modedb[i].vmode & FB_VMODE_INTERLACED))
+ fb_add_videomode(&mxc_ddc.fbi->monspecs.modedb[i],
+ &mxc_ddc.fbi->modelist);
fb_var_to_videomode(&m, &mxc_ddc.fbi->var);
mode = fb_find_nearest_mode(&m,
INIT_LIST_HEAD(&fbi->modelist);
if (mxc_disp_mode[mxcfbi->ipu_di].num_modes) {
+ int i;
mode = mxc_disp_mode[mxcfbi->ipu_di].mode;
num = mxc_disp_mode[mxcfbi->ipu_di].num_modes;
- fb_videomode_to_modelist(mode, num, &fbi->modelist);
+
+ for (i = 0; i < num; i++) {
+ /*
+ * FIXME now we do not support interlaced
+ * mode for ddc mode
+ */
+ if ((mxc_disp_mode[mxcfbi->ipu_di].dev_mode
+ & MXC_DISP_DDC_DEV) &&
+ (mode[i].vmode & FB_VMODE_INTERLACED))
+ continue;
+ else
+ fb_add_videomode(&mode[i], &fbi->modelist);
+ }
}
if ((mxc_disp_mode[mxcfbi->ipu_di].dev_mode
fb_destroy_modelist(&sii902x.fbi->modelist);
- for (i = 0; i < sii902x.fbi->monspecs.modedb_len; i++)
- fb_add_videomode(&sii902x.fbi->monspecs.modedb[i],
- &sii902x.fbi->modelist);
+ for (i = 0; i < sii902x.fbi->monspecs.modedb_len; i++) {
+ /*FIXME now we do not support interlaced mode */
+ if (!(sii902x.fbi->monspecs.modedb[i].vmode & FB_VMODE_INTERLACED))
+ fb_add_videomode(&sii902x.fbi->monspecs.modedb[i],
+ &sii902x.fbi->modelist);
+ }
fb_var_to_videomode(&m, &sii902x.fbi->var);
mode = fb_find_nearest_mode(&m,