Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rga3: fix rga3 uncompact detection #230

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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