lkml.org 
[lkml]   [2007]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] atmel_lcdfb: Use spare bits in 32bpp mode as alpha channel
    From: Haavard Skinnemoen <hskinnemoen@atmel.com>

    Set var->transp.offset and var->transp.length in 32bpp mode to
    indicate that the 8 otherwise unused bits can be used for
    transparency.

    Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
    Signed-off-by: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
    ---
    drivers/video/atmel_lcdfb.c | 5 ++++-
    1 files changed, 4 insertions(+), 1 deletions(-)

    diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
    index a05491f..bb361ab 100644
    --- a/drivers/video/atmel_lcdfb.c
    +++ b/drivers/video/atmel_lcdfb.c
    @@ -221,8 +221,11 @@ static int atmel_lcdfb_check_var(struct
    fb_var_screeninfo *var,
    var->blue.offset = 10;
    var->red.length = var->green.length = var->blue.length = 5;
    break;
    - case 24:
    case 32:
    + var->transp.offset = 24;
    + var->transp.length = 8;
    + /* fall through */
    + case 24:
    var->red.offset = 0;
    var->green.offset = 8;
    var->blue.offset = 16;

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-07-18 11:21    [W:0.023 / U:0.824 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site