Skip to content

Commit 8dfdeeb

Browse files
jason-jh.linSasha Levin
authored andcommitted
drm/mediatek: Add AAL output size configuration
[ Upstream commit 71ac6f3 ] 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 <jason-jh.lin@mediatek.com> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a8b8d61 commit 8dfdeeb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎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_CCORR_EN 0x0000
3940
#define CCORR_EN BIT(0)
@@ -181,6 +182,7 @@ static void mtk_aal_config(struct mtk_ddp_comp *comp, unsigned int w,
181182
unsigned int bpc, struct cmdq_pkt *cmdq_pkt)
182183
{
183184
mtk_ddp_write(cmdq_pkt, w << 16 | h, comp, DISP_AAL_SIZE);
185+
mtk_ddp_write(cmdq_pkt, w << 16 | h, comp, DISP_AAL_OUTPUT_SIZE);
184186
}
185187

186188
static void mtk_aal_start(struct mtk_ddp_comp *comp)

0 commit comments

Comments
 (0)