static int dbg_thresd = 2;
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)
+#define DBG(level,x...) do { if(unlikely(dbg_thresd >= level)) printk(KERN_INFO x); } while (0)
static int init_rk31_lcdc(struct rk_lcdc_device_driver *dev_drv)
ScaleYrgbY = CalScale(yact, par->ysize);
switch (par->format)
{
+ case ARGB888:
+ par->format = RGB888;
+ break;
case YUV422:// yuv422
ScaleCbrX = CalScale((xact/2), par->xsize);
ScaleCbrY = CalScale(yact, par->ysize);