Skip to content

Commit

Permalink
media: meson-ge2d: fix rotation parameters
Browse files Browse the repository at this point in the history
With these settings, 90deg and 270deg rotation leads to inverted
vertical, fix them to have correct rotation.

Fixes: 59a6353 ("media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit")
Signed-off-by: Neil Armstrong <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
superna9999 authored and mchehab committed Apr 15, 2021
1 parent ac34b79 commit 87e780d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/meson/ge2d/ge2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,15 +757,15 @@ static int ge2d_s_ctrl(struct v4l2_ctrl *ctrl)

if (ctrl->val == 90) {
ctx->hflip = 0;
ctx->vflip = 0;
ctx->vflip = 1;
ctx->xy_swap = 1;
} else if (ctrl->val == 180) {
ctx->hflip = 1;
ctx->vflip = 1;
ctx->xy_swap = 0;
} else if (ctrl->val == 270) {
ctx->hflip = 1;
ctx->vflip = 1;
ctx->vflip = 0;
ctx->xy_swap = 1;
} else {
ctx->hflip = 0;
Expand Down

0 comments on commit 87e780d

Please sign in to comment.