Skip to content

Commit

Permalink
video: rockchip: rga3: fix 10b compact in win0/1 cannot be changed fr…
Browse files Browse the repository at this point in the history
…om user space

Signed-off-by: nyanmisaka <[email protected]>
  • Loading branch information
nyanmisaka authored and amazingfate committed Sep 20, 2023
1 parent a838455 commit 4a77492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/rockchip/rga3/rga3_reg_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a77492

Please sign in to comment.