upstream: [media] adv7604: set restart_stdi_once flag when signal is lost
authorMartin Bugge <marbugge@cisco.com>
Thu, 5 Dec 2013 13:34:46 +0000 (10:34 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:49 +0000 (11:52 +0900)
If the restart_stdi_once trick fails to find a valid
format the flag was never reset.

Signed-off-by: Martin Bugge <marbugge@cisco.com>
Cc: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/adv7604.c

index 2f72ad7..ce3b51b 100644 (file)
@@ -1252,6 +1252,7 @@ static int adv7604_query_dv_timings(struct v4l2_subdev *sd,
        memset(timings, 0, sizeof(struct v4l2_dv_timings));
 
        if (no_signal(sd)) {
+               state->restart_stdi_once = true;
                v4l2_dbg(1, debug, sd, "%s: no valid signal\n", __func__);
                return -ENOLINK;
        }