video/rockchip: rga2: fix stuck problem on rk3368

Change-Id: Ic7a3d693c526857959a96607a68b490e56897be5
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
This commit is contained in:
Shixiang Zheng
2018-11-26 17:27:36 +08:00
parent bfc67611a9
commit 2c9beff6a3

View File

@@ -1535,7 +1535,8 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
if (first_RGA2_proc == 0 && req.bitblt_mode == bitblt_mode && rga2_service.dev_mode == 1) {
memcpy(&req_first, &req, sizeof(struct rga2_req));
if ((req_first.src.act_w != req_first.dst.act_w)
|| (req_first.src.act_h != req_first.dst.act_h)) {
|| (req_first.src.act_h != req_first.dst.act_h)
|| rk3368) {
req_first.src.act_w = MIN(320, MIN(req_first.src.act_w, req_first.dst.act_w));
req_first.src.act_h = MIN(240, MIN(req_first.src.act_h, req_first.dst.act_h));
req_first.dst.act_w = req_first.src.act_w;