[media] adv7842: restart STDI once if format is not found
authorMartin Bugge <marbugge@cisco.com>
Tue, 10 Dec 2013 15:00:06 +0000 (12:00 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:35:46 +0000 (06:35 -0200)
commit6e9071f26864d83be6855f570a5ccc847b66028a
treeade746adf803b655ff0b9ddaeb309a18d41cdd84
parentfc2e991e86382abb5cd32010b92a63b15bd76f30
[media] adv7842: restart STDI once if format is not found

The STDI block may measure wrong values, especially for lcvs and lcf.
If the driver can not find any valid timing, the STDI block is restarted
to measure the video timings again. The function will return an error,
but the restart of STDI will generate a new STDI interrupt and the format
detection process will restart.

Copied from adv7604.

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/adv7842.c