From: Jing Xiang Date: Mon, 10 Jun 2013 15:52:32 +0000 (+0800) Subject: video: mmp: fix graphics/video layer enable/mask swap issue X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=baf9d52cbd9bf771a923a7cdfa2dea903f6eb190;p=linux-beck.git video: mmp: fix graphics/video layer enable/mask swap issue There is bug when switch dma of graphic layer and video layer, it configured opposite bit, fix it. Signed-off-by: Jing Xiang Signed-off-by: Jett.Zhou Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- diff --git a/drivers/video/mmp/hw/mmp_ctrl.c b/drivers/video/mmp/hw/mmp_ctrl.c index cc62a79ed0cd..8612590ea943 100644 --- a/drivers/video/mmp/hw/mmp_ctrl.c +++ b/drivers/video/mmp/hw/mmp_ctrl.c @@ -165,9 +165,9 @@ static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) static void dmafetch_onoff(struct mmp_overlay *overlay, int on) { - u32 mask = overlay_is_vid(overlay) ? CFG_GRA_ENA_MASK : - CFG_DMA_ENA_MASK; - u32 enable = overlay_is_vid(overlay) ? CFG_GRA_ENA(1) : CFG_DMA_ENA(1); + u32 mask = overlay_is_vid(overlay) ? CFG_DMA_ENA_MASK : + CFG_GRA_ENA_MASK; + u32 enable = overlay_is_vid(overlay) ? CFG_DMA_ENA(1) : CFG_GRA_ENA(1); u32 tmp; struct mmp_path *path = overlay->path;