From a5b59cb5c55eb9763c11b85d1d06e609a7766959 Mon Sep 17 00:00:00 2001 From: hxy Date: Tue, 31 Jul 2012 17:37:13 +0800 Subject: [PATCH] rk31: fix lcdc rgb888 bug --- drivers/video/rockchip/chips/rk31_lcdc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/video/rockchip/chips/rk31_lcdc.c b/drivers/video/rockchip/chips/rk31_lcdc.c index be14760bb886..37ece0d6e28c 100644 --- a/drivers/video/rockchip/chips/rk31_lcdc.c +++ b/drivers/video/rockchip/chips/rk31_lcdc.c @@ -37,7 +37,7 @@ -static int dbg_thresd = 0; +static int dbg_thresd = 3; module_param(dbg_thresd, int, S_IRUGO|S_IWUSR); #define DBG(level,x...) do { if(unlikely(dbg_thresd > level)) printk(KERN_INFO x); } while (0) @@ -464,6 +464,9 @@ static int win1_set_par(struct rk31_lcdc_device *lcdc_dev,rk_screen *screen, { switch (par->format) { + case ARGB888: + par->format = RGB888; + break; case YUV422:// yuv422 ScaleCbrX = CalScale((xact/2), par->xsize); ScaleCbrY = CalScale(yact, par->ysize); -- 2.34.1