Skip to content

Commit 2afe27d

Browse files
committed
video engine: switch CSC to DISP_ YCC to fix color banding
1 parent 43e51f7 commit 2afe27d

File tree

1 file changed

+3
-3
lines changed
  • drivers/video/fbdev/sunxi

1 file changed

+3
-3
lines changed

drivers/video/fbdev/sunxi/disp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ static long disp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) {
198198

199199
for(i = 0; i < 4; i++) // Color conversion table
200200
{
201-
writel(csc_tab[i], iomm.defe + DEFE_CSC_COEF + i * 4 + 0 * 4);
202-
writel(csc_tab[i + 4], iomm.defe + DEFE_CSC_COEF + i * 4 + 4 * 4);
203-
writel(csc_tab[i + 8], iomm.defe + DEFE_CSC_COEF + i * 4 + 8 * 4);
201+
writel(csc_tab[2 * 48 + i], iomm.defe + DEFE_CSC_COEF + i * 4 + 0 * 4);
202+
writel(csc_tab[2 * 48 + i + 4], iomm.defe + DEFE_CSC_COEF + i * 4 + 4 * 4);
203+
writel(csc_tab[2 * 48 + i + 8], iomm.defe + DEFE_CSC_COEF + i * 4 + 8 * 4);
204204
}
205205
suniv_setbits(iomm.debe + DEBE_REGBUFF_CTRL_REG, (1 << 0));
206206
break;

0 commit comments

Comments
 (0)