diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-07-05 12:16:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 18:37:41 +0200 |
commit | 65898fb99cd7629683d7759d0c0242b8280413fc (patch) | |
tree | d40176783a5e77f7fd1d41f57e40ce4f6a8f7adc | |
parent | [media] v4l2-ioctl: zero the v4l2_bt_timings reserved field (diff) | |
download | linux-65898fb99cd7629683d7759d0c0242b8280413fc.tar.xz linux-65898fb99cd7629683d7759d0c0242b8280413fc.zip |
[media] adv7511: the h/vsync polarities were always positive
Correctly set the h/vsync polarities instead of keeping to the
default (positive).
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/i2c/adv7511.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7511.c b/drivers/media/i2c/adv7511.c index 03797b5f3172..6d7cad54a65d 100644 --- a/drivers/media/i2c/adv7511.c +++ b/drivers/media/i2c/adv7511.c @@ -1057,6 +1057,11 @@ static int adv7511_s_dv_timings(struct v4l2_subdev *sd, /* save timings */ state->dv_timings = *timings; + /* set h/vsync polarities */ + adv7511_wr_and_or(sd, 0x17, 0x9f, + ((timings->bt.polarities & V4L2_DV_VSYNC_POS_POL) ? 0 : 0x40) | + ((timings->bt.polarities & V4L2_DV_HSYNC_POS_POL) ? 0 : 0x20)); + /* update quantization range based on new dv_timings */ adv7511_set_rgb_quantization_mode(sd, state->rgb_quantization_range_ctrl); |