From 455fbd6ef91d20c8a18c466af0d0a05095192e71 Mon Sep 17 00:00:00 2001 From: Yu Qiaowei Date: Tue, 25 Mar 2025 19:50:15 +0800 Subject: [PATCH] video: rockchip: rga3: fix typo in win1_param check during RGA3 rotation Fixes: 0b97d73d8e71 ("video: rockchip: rga3: fix the wrong check of resolution in RGA3 rotating") Signed-off-by: Yu Qiaowei Change-Id: I27fd66c5ad2aa9ea9ea4495647c6c8aae1e21264 --- 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 9973ea684db4..3ef89d251313 100644 --- a/drivers/video/rockchip/rga3/rga3_reg_info.c +++ b/drivers/video/rockchip/rga3/rga3_reg_info.c @@ -1765,8 +1765,8 @@ static int rga3_scale_check(struct rga_job *job, const struct rga3_req *req) win0_daw = req->win0.dst_act_h; win0_dah = req->win0.dst_act_w; - win1_saw = req->win1.dst_act_w; - win1_sah = req->win1.dst_act_h; + win1_saw = req->win1.src_act_w; + win1_sah = req->win1.src_act_h; win1_daw = req->win1.dst_act_h; win1_dah = req->win1.dst_act_w; } else {