]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[media] adv7604: return immediately if the new timings are equal to what is configured
authorMats Randgaard <matrandg@cisco.com>
Thu, 12 Dec 2013 13:13:35 +0000 (10:13 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:16:25 +0000 (06:16 -0200)
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>
drivers/media/i2c/adv7604.c

index 912c59ec22b18be04c2dc9c5ecfecb886b6b6c12..0bc9e1a8c07eaf5095cdc4f4b6db19c5ed9e5dad 100644 (file)
@@ -1423,6 +1423,11 @@ static int adv7604_s_dv_timings(struct v4l2_subdev *sd,
        if (!timings)
                return -EINVAL;
 
+       if (v4l2_match_dv_timings(&state->timings, timings, 0)) {
+               v4l2_dbg(1, debug, sd, "%s: no change\n", __func__);
+               return 0;
+       }
+
        bt = &timings->bt;
 
        if ((is_analog_input(sd) && bt->pixelclock > 170000000) ||