diff options
author | Martin Bugge <marbugge@cisco.com> | 2013-12-05 10:22:53 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 03:46:43 -0500 |
commit | 15058aac06dc706c549a66f0e254046cbc844b9b (patch) | |
tree | 76d71a2b0882ad76f64082aa996fe7a1f2fe2bd0 | |
parent | f0ec17420e85cc701032a7d7fd1067d3435bd133 (diff) |
[media] adv7842: Composite sync adjustment
Signed-off-by: Martin Bugge <marbugge@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/i2c/adv7842.c | 8 | ||||
-rw-r--r-- | include/media/adv7842.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c index 518f1e29b9b0..ba748637b7ca 100644 --- a/drivers/media/i2c/adv7842.c +++ b/drivers/media/i2c/adv7842.c | |||
@@ -2439,6 +2439,10 @@ static void adv7842_s_sdp_io(struct v4l2_subdev *sd, struct adv7842_sdp_io_sync_ | |||
2439 | sdp_io_write(sd, 0x99, s->de_beg & 0xff); | 2439 | sdp_io_write(sd, 0x99, s->de_beg & 0xff); |
2440 | sdp_io_write(sd, 0x9a, (s->de_end >> 8) & 0xf); | 2440 | sdp_io_write(sd, 0x9a, (s->de_end >> 8) & 0xf); |
2441 | sdp_io_write(sd, 0x9b, s->de_end & 0xff); | 2441 | sdp_io_write(sd, 0x9b, s->de_end & 0xff); |
2442 | sdp_io_write(sd, 0xa8, s->vs_beg_o); | ||
2443 | sdp_io_write(sd, 0xa9, s->vs_beg_e); | ||
2444 | sdp_io_write(sd, 0xaa, s->vs_end_o); | ||
2445 | sdp_io_write(sd, 0xab, s->vs_end_e); | ||
2442 | sdp_io_write(sd, 0xac, s->de_v_beg_o); | 2446 | sdp_io_write(sd, 0xac, s->de_v_beg_o); |
2443 | sdp_io_write(sd, 0xad, s->de_v_beg_e); | 2447 | sdp_io_write(sd, 0xad, s->de_v_beg_e); |
2444 | sdp_io_write(sd, 0xae, s->de_v_end_o); | 2448 | sdp_io_write(sd, 0xae, s->de_v_end_o); |
@@ -2453,6 +2457,10 @@ static void adv7842_s_sdp_io(struct v4l2_subdev *sd, struct adv7842_sdp_io_sync_ | |||
2453 | sdp_io_write(sd, 0x99, 0x00); | 2457 | sdp_io_write(sd, 0x99, 0x00); |
2454 | sdp_io_write(sd, 0x9a, 0x00); | 2458 | sdp_io_write(sd, 0x9a, 0x00); |
2455 | sdp_io_write(sd, 0x9b, 0x00); | 2459 | sdp_io_write(sd, 0x9b, 0x00); |
2460 | sdp_io_write(sd, 0xa8, 0x04); | ||
2461 | sdp_io_write(sd, 0xa9, 0x04); | ||
2462 | sdp_io_write(sd, 0xaa, 0x04); | ||
2463 | sdp_io_write(sd, 0xab, 0x04); | ||
2456 | sdp_io_write(sd, 0xac, 0x04); | 2464 | sdp_io_write(sd, 0xac, 0x04); |
2457 | sdp_io_write(sd, 0xad, 0x04); | 2465 | sdp_io_write(sd, 0xad, 0x04); |
2458 | sdp_io_write(sd, 0xae, 0x04); | 2466 | sdp_io_write(sd, 0xae, 0x04); |
diff --git a/include/media/adv7842.h b/include/media/adv7842.h index 772cdecfa71b..5a7eb50a1a57 100644 --- a/include/media/adv7842.h +++ b/include/media/adv7842.h | |||
@@ -131,6 +131,10 @@ struct adv7842_sdp_io_sync_adjustment { | |||
131 | uint16_t hs_width; | 131 | uint16_t hs_width; |
132 | uint16_t de_beg; | 132 | uint16_t de_beg; |
133 | uint16_t de_end; | 133 | uint16_t de_end; |
134 | uint8_t vs_beg_o; | ||
135 | uint8_t vs_beg_e; | ||
136 | uint8_t vs_end_o; | ||
137 | uint8_t vs_end_e; | ||
134 | uint8_t de_v_beg_o; | 138 | uint8_t de_v_beg_o; |
135 | uint8_t de_v_beg_e; | 139 | uint8_t de_v_beg_e; |
136 | uint8_t de_v_end_o; | 140 | uint8_t de_v_end_o; |