fix src uv addr calc bug
authorzsq <zsq@rock-chips.com>
Wed, 2 Apr 2014 07:09:31 +0000 (15:09 +0800)
committerzsq <zsq@rock-chips.com>
Wed, 2 Apr 2014 07:09:31 +0000 (15:09 +0800)
drivers/video/rockchip/rga2/rga2_drv.c

index 64ea4f2aa04bb938126522eefb8daced85fd3ca5..98bb3bd3adf26f6ab25e21f98ae59c75b778d4db 100755 (executable)
@@ -693,14 +693,14 @@ static int rga2_convert_dma_buf(struct rga2_req *req)
         }\r
            ion_phys(rga2_drvdata->ion_client, hdl, &phy_addr, &len);\r
         req->src.yrgb_addr = phy_addr;\r
-        req->src.uv_addr = req->src.yrgb_addr + (req->dst.vir_w * req->dst.vir_h);\r
-        req->src.v_addr = req->src.uv_addr + (req->dst.vir_w * req->dst.vir_h)/4;\r
+        req->src.uv_addr = req->src.yrgb_addr + (req->src.vir_w * req->src.vir_h);\r
+        req->src.v_addr = req->src.uv_addr + (req->src.vir_w * req->src.vir_h)/4;\r
         ion_free(rga2_drvdata->ion_client, hdl);\r
     }\r
     else {\r
         req->src.yrgb_addr = req->src.uv_addr;\r
-        req->src.uv_addr = req->src.yrgb_addr + (req->dst.vir_w * req->dst.vir_h);\r
-        req->src.v_addr = req->src.uv_addr + (req->dst.vir_w * req->dst.vir_h)/4;\r
+        req->src.uv_addr = req->src.yrgb_addr + (req->src.vir_w * req->src.vir_h);\r
+        req->src.v_addr = req->src.uv_addr + (req->src.vir_w * req->src.vir_h)/4;\r
     }\r
 \r
     if(req->dst.yrgb_addr) {\r