fix no async bug
authorzsq <zsq@rock-chips.com>
Thu, 16 Aug 2012 06:43:06 +0000 (14:43 +0800)
committerzsq <zsq@rock-chips.com>
Thu, 16 Aug 2012 06:43:06 +0000 (14:43 +0800)
drivers/video/rockchip/rga/rga_drv.c

index 507751400069c3c52c819a9829f20b6736337b3a..734af2cbb802430d722d09527a768874d23080a7 100755 (executable)
@@ -356,7 +356,7 @@ static int rga_check_param(const struct rga_req *req)
                return  -EINVAL;\r
        }\r
 \r
-    if (unlikely((req->dst.vir_w <= 0) || (req->dst.vir_w > 2048) || (req->dst.vir_h <= 0) || (req->dst.vir_h > 2048)))\r
+    if (unlikely((req->dst.vir_w <= 0) || (req->dst.vir_w > 4096) || (req->dst.vir_h <= 0) || (req->dst.vir_h > 2048)))\r
     {\r
                ERR("invalid destination resolution vir_w = %d, vir_h = %d\n", req->dst.vir_w, req->dst.vir_h);\r
                return  -EINVAL;\r
@@ -951,7 +951,7 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
             }\r
             else\r
             {\r
-                ret = rga_blit_sync(session, req);\r
+                ret = rga_blit_async(session, req);\r
             }\r
                        break;\r
                case RGA_FLUSH:\r