Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jxiang@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

authored by

Jing Xiang and committed by
Jean-Christophe PLAGNIOL-VILLARD
baf9d52c 265e78c7

+3 -3
+3 -3
drivers/video/mmp/hw/mmp_ctrl.c
··· 165 165 166 166 static void dmafetch_onoff(struct mmp_overlay *overlay, int on) 167 167 { 168 - u32 mask = overlay_is_vid(overlay) ? CFG_GRA_ENA_MASK : 169 - CFG_DMA_ENA_MASK; 170 - u32 enable = overlay_is_vid(overlay) ? CFG_GRA_ENA(1) : CFG_DMA_ENA(1); 168 + u32 mask = overlay_is_vid(overlay) ? CFG_DMA_ENA_MASK : 169 + CFG_GRA_ENA_MASK; 170 + u32 enable = overlay_is_vid(overlay) ? CFG_DMA_ENA(1) : CFG_GRA_ENA(1); 171 171 u32 tmp; 172 172 struct mmp_path *path = overlay->path; 173 173