aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/adv7604.c
diff options
context:
space:
mode:
authorMats Randgaard <matrandg@cisco.com>2013-12-12 08:13:35 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 03:16:25 -0500
commitd48eb48cd4d497e2e65c68d3ca3976a8dbfc992e (patch)
treeffea833d9f77b4a795acf065c5f6d463242ac7a7 /drivers/media/i2c/adv7604.c
parentf24d229c1e17d40f81010ede53d9bf67327e21d2 (diff)
[media] adv7604: return immediately if the new timings are equal to what is configured
Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c/adv7604.c')
-rw-r--r--drivers/media/i2c/adv7604.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c
index 912c59ec22b1..0bc9e1a8c07e 100644
--- a/drivers/media/i2c/adv7604.c
+++ b/drivers/media/i2c/adv7604.c
@@ -1423,6 +1423,11 @@ static int adv7604_s_dv_timings(struct v4l2_subdev *sd,
1423 if (!timings) 1423 if (!timings)
1424 return -EINVAL; 1424 return -EINVAL;
1425 1425
1426 if (v4l2_match_dv_timings(&state->timings, timings, 0)) {
1427 v4l2_dbg(1, debug, sd, "%s: no change\n", __func__);
1428 return 0;
1429 }
1430
1426 bt = &timings->bt; 1431 bt = &timings->bt;
1427 1432
1428 if ((is_analog_input(sd) && bt->pixelclock > 170000000) || 1433 if ((is_analog_input(sd) && bt->pixelclock > 170000000) ||