rk3288 lcdc: fix global alpha set error
authorhjc <hjc@rock-chips.com>
Thu, 27 Mar 2014 11:13:56 +0000 (19:13 +0800)
committerhjc <hjc@rock-chips.com>
Thu, 27 Mar 2014 11:13:56 +0000 (19:13 +0800)
drivers/video/rockchip/lcdc/rk3288_lcdc.c

index 06a719294ca807a8abdcd4442f35d20ae836ef47..f2b6740a2e4621ef4bb461d93888b98cf69e6e85 100755 (executable)
@@ -453,7 +453,10 @@ static int rk3288_lcdc_alpha_cfg(struct rk_lcdc_driver *dev_drv,int win_id)
                break;
        case AB_SRC_OVER:
                alpha_config.src_color_mode=AA_SRC_PRE_MUL;
-               alpha_config.src_factor_mode=AA_ONE;
+               if(global_alpha)
+                       alpha_config.src_factor_mode=AA_SRC_GLOBAL;
+               else
+                       alpha_config.src_factor_mode=AA_ONE;
                alpha_config.dst_factor_mode=AA_SRC_INVERSE;            
                break;
        case AB_DST_OVER: