Hi, Dang, We’re using driver/video/mxc/mxc_ipuv3_fb.c as framebuffer driver, and I think the only thing I should do is modify check_var to re-define fb_bitfield, right?
Or I should modify other file? Could you please give a example or further tips? Thanks a lot! BR, Qingwei From: Tung Dang Sent: Friday, September 09, 2011 8:42 AM To: lqw1...@gmail.com Cc: android-porting Subject: Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565) Hi Qingwei, The correct way is to modify in your frame buffer display driver , just swap between B and R The frame buffer display driver is in your linux kernel driver /linux-xxx/drivers/video Regards, Tung On Thu, Sep 8, 2011 at 8:43 PM, <lqw1...@gmail.com> wrote: Hi, Now I have to use BGR565 instead of RGB565, so I modified following codes, but they have no effect. file: mxc_ipuv3_fb.c, function: mxcfb_check_var ...... switch (var->bits_per_pixel) { case 8: ...... break; case 16: var->red.length = 5; var->red.offset = 11; ----> 0 var->red.msb_right = 0; var->green.length = 6; var->green.offset = 5; var->green.msb_right = 0; var->blue.length = 5; var->blue.offset = 0; ---->11 var->blue.msb_right = 0; ...... break; case 24: ...... And then, I modified _ipu_ch_params_set_packing in drivers/mxc/ipu3/ipu_param_mem.h, and found the color of UI is correct, but camera preview/taking photo/recording, video playing are not correct (R and B color are reversed). I think the best way is to modify framebuffer, but I don’t know how to do. Does anyone have some ideas? BR, Qingwei -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting