summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Bugge <marbugge@cisco.com>2013-12-05 10:34:46 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 06:09:15 -0200
commit1e0b9156d52ac748c92d5aa7ae9dc602168b0b62 (patch)
tree5d4df3f606916c0ac40ebf3baf9b329bc887bd43
parent5474b983c679e3df5ee3c2731c0b685915d5250d (diff)
downloadlinux-1e0b9156d52ac748c92d5aa7ae9dc602168b0b62.tar.bz2
[media] adv7604: set restart_stdi_once flag when signal is lost
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>
-rw-r--r--drivers/media/i2c/adv7604.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c
index b5dcea8dc43f..85caf2451614 100644
--- a/drivers/media/i2c/adv7604.c
+++ b/drivers/media/i2c/adv7604.c
@@ -1216,6 +1216,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;
}