Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103789
b: refs/heads/master
c: 34cb616
h: refs/heads/master
i:
  103787: 049c53a
v: v3
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent fbd3722 commit 05bab38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cbeb3711481a7e563fe4c61888986c4aa1cb22e
refs/heads/master: 34cb61693e204897a6ae37d56a1e07d0cdd8cdbf
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/tcm825x.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ static int ioctl_g_ctrl(struct v4l2_int_device *s,
if (val < 0)
return val;

if (vc->id == V4L2_CID_HFLIP || vc->id == V4L2_CID_VFLIP)
val ^= sensor->platform_data->is_upside_down();

vc->value = val;
return 0;
}
Expand Down Expand Up @@ -556,6 +559,9 @@ static int ioctl_s_ctrl(struct v4l2_int_device *s,
if (lvc == NULL)
return -EINVAL;

if (vc->id == V4L2_CID_HFLIP || vc->id == V4L2_CID_VFLIP)
val ^= sensor->platform_data->is_upside_down();

val = val << lvc->start_bit;
if (tcm825x_write_reg_mask(client, lvc->reg, val))
return -EIO;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/video/tcm825x.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ struct tcm825x_platform_data {
int (*needs_reset)(struct v4l2_int_device *s, void *buf,
struct v4l2_pix_format *fmt);
int (*ifparm)(struct v4l2_ifparm *p);
int (*is_upside_down)(void);
};

/* Array of image sizes supported by TCM825X. These must be ordered from
Expand Down

0 comments on commit 05bab38

Please sign in to comment.