]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] adv7842: added DE vertical position in SDP-io-sync
authorMartin Bugge <marbugge@cisco.com>
Thu, 5 Dec 2013 14:40:43 +0000 (11:40 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:23:18 +0000 (06:23 -0200)
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>
drivers/media/i2c/adv7842.c
include/media/adv7842.h

index 4f93526e3b64c0539f0dd0f280a54c644473283b..05d65a8341974924494890bf407e434a75f8b2d6 100644 (file)
@@ -2397,6 +2397,10 @@ static int adv7842_core_init(struct v4l2_subdev *sd,
                sdp_io_write(sd, 0x99, s->de_beg & 0xff);
                sdp_io_write(sd, 0x9a, (s->de_end>>8) & 0xf);
                sdp_io_write(sd, 0x9b, s->de_end & 0xff);
+               sdp_io_write(sd, 0xac, s->de_v_beg_o);
+               sdp_io_write(sd, 0xad, s->de_v_beg_e);
+               sdp_io_write(sd, 0xae, s->de_v_end_o);
+               sdp_io_write(sd, 0xaf, s->de_v_end_e);
        }
 
        /* todo, improve settings for sdram */
index c02201d1c0923b6d11ecf28258971c9b52c10d9d..c023f88475da3ce29b9e90b9f5abf875dbd12057 100644 (file)
@@ -131,6 +131,10 @@ struct adv7842_sdp_io_sync_adjustment {
        uint16_t hs_width;
        uint16_t de_beg;
        uint16_t de_end;
+       uint8_t de_v_beg_o;
+       uint8_t de_v_beg_e;
+       uint8_t de_v_end_o;
+       uint8_t de_v_end_e;
 };
 
 /* Platform dependent definition */