All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [resend] video: s3c-fb: correct transparency checking in 32bpp
@ 2011-05-24  8:55 Jingoo Han
  2011-05-24  9:05 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2011-05-24  8:55 UTC (permalink / raw)
  To: linux-fbdev

32bpp means ARGB 8888 in the driver, therfore the transparency length
and offset should be 8 and 24 respectively. However, the transparency
length and offset were previously 0, which means that the driver supports
RGB 888 without alpha blending when 32bpp is used.

So, the transparency checking in 32bpp is corrected so that the
transparency length and offset are 8 and 24 respectively.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/video/s3c-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 6b7c5a8..574e046 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -302,6 +302,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,
 		var->blue.length	= 5;
 		break;
 
+	case 32:
 	case 28:
 	case 25:
 		var->transp.length	= var->bits_per_pixel - 24;
@@ -310,7 +311,6 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,
 	case 24:
 		/* our 24bpp is unpacked, so 32bpp */
 		var->bits_per_pixel	= 32;
-	case 32:
 		var->red.offset		= 16;
 		var->red.length		= 8;
 		var->green.offset	= 8;
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [resend] video: s3c-fb: correct transparency checking in 32bpp
  2011-05-24  8:55 [PATCH] [resend] video: s3c-fb: correct transparency checking in 32bpp Jingoo Han
@ 2011-05-24  9:05 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2011-05-24  9:05 UTC (permalink / raw)
  To: linux-fbdev

On Tue, May 24, 2011 at 05:55:23PM +0900, Jingoo Han wrote:
> 32bpp means ARGB 8888 in the driver, therfore the transparency length
> and offset should be 8 and 24 respectively. However, the transparency
> length and offset were previously 0, which means that the driver supports
> RGB 888 without alpha blending when 32bpp is used.
> 
> So, the transparency checking in 32bpp is corrected so that the
> transparency length and offset are 8 and 24 respectively.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

On Tue, May 24, 2011 at 05:55:31PM +0900, Jingoo Han wrote:
> This patch adds gpio setup function to resume function to ensure
> gpio used by FIMD IP and LCD panel during a resume.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Curiously the first version appears to have missed patchwork altogether,
and I missed it in my mail folder, too. Applied now, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-24  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24  8:55 [PATCH] [resend] video: s3c-fb: correct transparency checking in 32bpp Jingoo Han
2011-05-24  9:05 ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.