From: yxj Date: Mon, 26 Mar 2012 03:28:58 +0000 (+0800) Subject: rk30 fb: use HAL_PIXEL_FORMAT_XXX defined by android to distinguish data format X-Git-Tag: firefly_0821_release~9584 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=71d44331562bd2dfb964dcfaad40c510f7894f37;p=firefly-linux-kernel-4.4.55.git rk30 fb: use HAL_PIXEL_FORMAT_XXX defined by android to distinguish data format to display correctly,please sync android update --- diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index c03ce4b202a7..4e5db0f33b41 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -399,7 +399,7 @@ static int rk_fb_set_par(struct fb_info *info) } CHK_SUSPEND(inf); /* calculate y_offset,c_offset,line_length,cblen and crlen */ -#if 0 +#if 1 switch (data_format) { case HAL_PIXEL_FORMAT_RGBA_8888 : // rgb