lkml.org 
[lkml]   [2014]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.4 120/134] OMAPFB: fix framebuffer console colors
    Date
    3.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Grazvydas Ignotas <notasas@gmail.com>

    commit c1c52848cef52e157468b8879fc3cae23b6f3a99 upstream.

    omapfb does not currently set pseudo palette correctly for color depths
    above 16bpp, making red text invisible, command like
    echo -e '\e[0;31mRED' > /dev/tty1
    will display nothing on framebuffer console in 24bpp mode.
    This is because temporary variable is declared incorrectly, fix it.

    Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    Cc: Qiang Huang <h.huangqiang@huawei.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/video/omap2/omapfb/omapfb-main.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/video/omap2/omapfb/omapfb-main.c
    +++ b/drivers/video/omap2/omapfb/omapfb-main.c
    @@ -1187,7 +1187,7 @@ static int _setcolreg(struct fb_info *fb
    break;

    if (regno < 16) {
    - u16 pal;
    + u32 pal;
    pal = ((red >> (16 - var->red.length)) <<
    var->red.offset) |
    ((green >> (16 - var->green.length)) <<



    \
     
     \ /
      Last update: 2014-04-10 06:01    [W:4.086 / U:1.420 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site