瀏覽代碼

OMAP: DSS2: OMAPFB: Fix invalid bpp for PAL and NTSC modes

omapfb_mode_to_timings() sets the bpp to 0 when bootarg omapfb.mode is set to
either "pal" or "ntsc". This patch corrects this by setting the bpp to 24, as
would be done if omapdss_default_get_recommended_bpp() would be called.

Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Maurus Cuelenaere 15 年之前
父節點
當前提交
e8c66dcf5a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/video/omap2/omapfb/omapfb-main.c

+ 2 - 2
drivers/video/omap2/omapfb/omapfb-main.c

@@ -2038,11 +2038,11 @@ static int omapfb_mode_to_timings(const char *mode_str,
 #ifdef CONFIG_OMAP2_DSS_VENC
 #ifdef CONFIG_OMAP2_DSS_VENC
 	if (strcmp(mode_str, "pal") == 0) {
 	if (strcmp(mode_str, "pal") == 0) {
 		*timings = omap_dss_pal_timings;
 		*timings = omap_dss_pal_timings;
-		*bpp = 0;
+		*bpp = 24;
 		return 0;
 		return 0;
 	} else if (strcmp(mode_str, "ntsc") == 0) {
 	} else if (strcmp(mode_str, "ntsc") == 0) {
 		*timings = omap_dss_ntsc_timings;
 		*timings = omap_dss_ntsc_timings;
-		*bpp = 0;
+		*bpp = 24;
 		return 0;
 		return 0;
 	}
 	}
 #endif
 #endif