From: huangdesheng Date: Sat, 9 Apr 2011 07:24:22 +0000 (+0800) Subject: 16bit and 32bit change problem X-Git-Tag: firefly_0821_release~10534 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf5b56e919eefe1a1dea02c4af93145152d2f72e;p=firefly-linux-kernel-4.4.55.git 16bit and 32bit change problem --- diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c index 99b49e4582bb..a40437da0851 100755 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -1342,7 +1342,9 @@ static int fb0_set_par(struct fb_info *info) { case 16: // rgb565 par->format = 1; - fix->line_length = 2 * xres_virtual; + //fix->line_length = 2 * xres_virtual; + fix->line_length = (inf->fb0_color_deepth ? 4:2) * xres_virtual; //32bit and 16bit change + #ifdef CONFIG_FB_WORK_IPP dstoffset = ((ypos_virtual*screen->y_res/var->yres) *screen->x_res + (xpos_virtual*screen->x_res)/var->xres )*2; ipp_req.src0.fmt = IPP_RGB_565;