diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-07-21 18:40:58 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-05 09:52:16 -0400 |
commit | e8c66dcf5aa8df2d1b1f249519c920d3a45dd613 (patch) | |
tree | 0ff59390ed231bd18f2da86b6f6c1e7eaf3295fa /drivers/video/omap2/omapfb/omapfb-main.c | |
parent | e26ed44c950ed9d1feb7719100f475e4e80f1419 (diff) |
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>
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb-main.c')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index e51b7bf64307..04034d410d6d 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -2038,11 +2038,11 @@ static int omapfb_mode_to_timings(const char *mode_str, | |||
2038 | #ifdef CONFIG_OMAP2_DSS_VENC | 2038 | #ifdef CONFIG_OMAP2_DSS_VENC |
2039 | if (strcmp(mode_str, "pal") == 0) { | 2039 | if (strcmp(mode_str, "pal") == 0) { |
2040 | *timings = omap_dss_pal_timings; | 2040 | *timings = omap_dss_pal_timings; |
2041 | *bpp = 0; | 2041 | *bpp = 24; |
2042 | return 0; | 2042 | return 0; |
2043 | } else if (strcmp(mode_str, "ntsc") == 0) { | 2043 | } else if (strcmp(mode_str, "ntsc") == 0) { |
2044 | *timings = omap_dss_ntsc_timings; | 2044 | *timings = omap_dss_ntsc_timings; |
2045 | *bpp = 0; | 2045 | *bpp = 24; |
2046 | return 0; | 2046 | return 0; |
2047 | } | 2047 | } |
2048 | #endif | 2048 | #endif |