From 7673ab915be32df509254b854e33ee221b31077a Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Tue, 19 Sep 2023 19:14:56 +0800 Subject: [PATCH] video: rockchip: rga3: fix 10b compact in win0/1 cannot be changed from user space Signed-off-by: nyanmisaka --- drivers/video/rockchip/rga3/rga3_reg_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/rga3/rga3_reg_info.c b/drivers/video/rockchip/rga3/rga3_reg_info.c index b1d0f6b9ff696..1cb44d3fffc93 100644 --- a/drivers/video/rockchip/rga3/rga3_reg_info.c +++ b/drivers/video/rockchip/rga3/rga3_reg_info.c @@ -331,7 +331,7 @@ static void RGA3_set_reg_win0_info(u8 *base, struct rga3_req *msg) (s_RGA3_WIN0_RD_CTRL_SW_WIN0_YUV10B_COMPACT(1))); /* Only on raster mode, yuv 10bit can change to compact or set endian */ - if (msg->win0.rd_mode == RGA_RASTER_MODE && yuv10 == 1) { + if (msg->win0.rd_mode == 0 && yuv10 == 1) { reg = ((reg & (~m_RGA3_WIN0_RD_CTRL_SW_WIN0_YUV10B_COMPACT)) | (s_RGA3_WIN0_RD_CTRL_SW_WIN0_YUV10B_COMPACT @@ -703,7 +703,7 @@ static void RGA3_set_reg_win1_info(u8 *base, struct rga3_req *msg) (s_RGA3_WIN1_RD_CTRL_SW_WIN1_YUV10B_COMPACT(1))); /* Only on roster mode, yuv 10bit can change to compact or set endian */ - if (msg->win1.rd_mode == RGA_RASTER_MODE && yuv10 == 1) { + if (msg->win1.rd_mode == 0 && yuv10 == 1) { reg = ((reg & (~m_RGA3_WIN1_RD_CTRL_SW_WIN1_YUV10B_COMPACT)) | (s_RGA3_WIN1_RD_CTRL_SW_WIN1_YUV10B_COMPACT