* [PATCH] fbdev: sh_mobile_lcdcfb: Change BGR24 to RGB24
@ 2011-05-26 9:09 Damian Hobson-Garcia
2011-05-27 8:14 ` Magnus Damm
2011-05-31 3:28 ` Damian Hobson-Garcia
0 siblings, 2 replies; 3+ messages in thread
From: Damian Hobson-Garcia @ 2011-05-26 9:09 UTC (permalink / raw)
To: linux-fbdev
The ordering of the bytes in the 24 bpp RGB colour mode was
being set to BGR.
This now matches the values returned in the
struct fb_var_screeninfo .red, .green, and .blue offsets as well as
the output format of other blocs, such as the VEU
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
---
drivers/video/sh_mobile_lcdcfb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index 04f2260..a442471 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -590,7 +590,7 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv)
tmp |= 0x03;
break;
case 24:
- tmp |= 0x0b;
+ tmp |= 0x02;
break;
case 32:
break;
@@ -1178,7 +1178,7 @@ static int sh_mobile_lcdc_set_bpp(struct fb_var_screeninfo *var, int bpp,
var->transp.length = 0;
break;
- case 24: /* PKF[4:0] = 01011 - RGB 888 */
+ case 24: /* PKF[4:0] = 00010 - RGB 888 */
var->red.offset = 16;
var->red.length = 8;
var->green.offset = 8;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fbdev: sh_mobile_lcdcfb: Change BGR24 to RGB24
2011-05-26 9:09 [PATCH] fbdev: sh_mobile_lcdcfb: Change BGR24 to RGB24 Damian Hobson-Garcia
@ 2011-05-27 8:14 ` Magnus Damm
2011-05-31 3:28 ` Damian Hobson-Garcia
1 sibling, 0 replies; 3+ messages in thread
From: Magnus Damm @ 2011-05-27 8:14 UTC (permalink / raw)
To: linux-fbdev
Hi Damian,
On Thu, May 26, 2011 at 6:09 PM, Damian Hobson-Garcia
<dhobsong@igel.co.jp> wrote:
> The ordering of the bytes in the 24 bpp RGB colour mode was
> being set to BGR.
>
> This now matches the values returned in the
> struct fb_var_screeninfo .red, .green, and .blue offsets as well as
> the output format of other blocs, such as the VEU
>
> Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
> ---
Thanks for your patch. With this change in place, is the fbdev console
still working as expected?
Also, the byte swap settings in _LDDDSR are ok as-is?
Thanks,
/ magnus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fbdev: sh_mobile_lcdcfb: Change BGR24 to RGB24
2011-05-26 9:09 [PATCH] fbdev: sh_mobile_lcdcfb: Change BGR24 to RGB24 Damian Hobson-Garcia
2011-05-27 8:14 ` Magnus Damm
@ 2011-05-31 3:28 ` Damian Hobson-Garcia
1 sibling, 0 replies; 3+ messages in thread
From: Damian Hobson-Garcia @ 2011-05-31 3:28 UTC (permalink / raw)
To: linux-fbdev
Hi Magnus,
On 2011/05/27 17:14, Magnus Damm wrote:
> Hi Damian,
>
> On Thu, May 26, 2011 at 6:09 PM, Damian Hobson-Garcia
> <dhobsong@igel.co.jp> wrote:
>> The ordering of the bytes in the 24 bpp RGB colour mode was
>> being set to BGR.
>>
>> This now matches the values returned in the
>> struct fb_var_screeninfo .red, .green, and .blue offsets as well as
>> the output format of other blocs, such as the VEU
>>
>> Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
>> ---
>
> Thanks for your patch. With this change in place, is the fbdev console
> still working as expected?
>
> Also, the byte swap settings in _LDDDSR are ok as-is?
Actually, let me look into this a bit more. After thinking about it
some more there are one or two more things I want to check on this
first. Please ignore this patch for now. I'll resubmit it again once
its properly completed. Sorry for the mess.
Thanks,
Damian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-31 3:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 9:09 [PATCH] fbdev: sh_mobile_lcdcfb: Change BGR24 to RGB24 Damian Hobson-Garcia
2011-05-27 8:14 ` Magnus Damm
2011-05-31 3:28 ` Damian Hobson-Garcia
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.