rga2 driver add x_mirr/y_mirr feature support
authorzsq <zsq@rock-chips.com>
Mon, 23 Jun 2014 02:11:28 +0000 (10:11 +0800)
committerzsq <zsq@rock-chips.com>
Mon, 23 Jun 2014 02:11:28 +0000 (10:11 +0800)
drivers/video/rockchip/rga2/rga2_reg_info.c

index f993ba8f970540bcea50e6c1588ce7447b1a5f6a..a01dc32e2e3b2faaa7c0f929622a6b76cd82e9f4 100644 (file)
@@ -1013,10 +1013,12 @@ void RGA_MSG_2_RGA2_MSG(struct rga_req *req_rga, struct rga2_req *req)
     else if (req_rga->rotate_mode == 2)\r
     {\r
         //x_mirror\r
+        req->rotate_mode = (1 << 4);\r
     }\r
     else if (req_rga->rotate_mode == 3)\r
     {\r
         //y_mirror\r
+        req->rotate_mode = (2 << 4);\r
     }\r
     else {\r
         req->rotate_mode = 0;\r