Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 - BGR565)

2011-09-12 Thread lqw1001
Hi Tung, I have tested my FB driver, it’s OK! And I found Boot logo can swap color, but android system can’t. I’m puzzled with this. Does system not use FB? Best regards, Qingwei From: lqw1...@gmail.com Sent: Friday, September 09, 2011 1:58 PM To: Tung Dang Cc: android-porting Subject:

[android-porting] i.MX51 BBG: How to swap red color with blue on DIPS2 (RGB565)

2011-09-08 Thread lqw1001
Hi, Now I have to use BRG564 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 =

[android-porting] Re: i.MX51 BBG: How to swap red color with blue on DIPS2 (RGB565)

2011-09-08 Thread lqw1001
Sorry for mistake: should be BGR565 instead of RGB565 From: lqw1...@gmail.com Sent: Thursday, September 08, 2011 8:06 PM To: android-porting Subject: i.MX51 BBG: How to swap red color with blue on DIPS2 (RGB565) Hi, Now I have to use BRG564 instead of RGB565, so I modified following codes,

[android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 - BGR565)

2011-09-08 Thread lqw1001
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

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 - BGR565)

2011-09-08 Thread lqw1001
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

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 - BGR565)

2011-09-08 Thread lqw1001
Hi Tung, Thank you! I have ever done the similar thing with our FB driver, but it did not take effect. Maybe our platform made some special changes, or driver has bugs. I’ll check them carefully. BTW, I wonder if there is another way to implement, e.g. modify fbmem.c or other files. Best