Skip to content

Commit 71ac6f3

Browse files
jason-jh.linChun-Kuang Hu
authored andcommitted
drm/mediatek: Add AAL output size configuration
To avoid the output width and height is incorrect, AAL_OUTPUT_SIZE configuration should be set. Fixes: 0664d13 ("drm/mediatek: Add AAL engine basic function") Signed-off-by: jason-jh.lin <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 1a64a7a commit 71ac6f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
#define DISP_AAL_EN 0x0000
3636
#define DISP_AAL_SIZE 0x0030
37+
#define DISP_AAL_OUTPUT_SIZE 0x04d8
3738

3839
#define DISP_DITHER_EN 0x0000
3940
#define DITHER_EN BIT(0)
@@ -197,6 +198,7 @@ static void mtk_aal_config(struct device *dev, unsigned int w,
197198
struct mtk_ddp_comp_dev *priv = dev_get_drvdata(dev);
198199

199200
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_AAL_SIZE);
201+
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_AAL_OUTPUT_SIZE);
200202
}
201203

202204
static void mtk_aal_gamma_set(struct device *dev, struct drm_crtc_state *state)

0 commit comments

Comments
 (0)