upstream: [media] adv7604: return immediately if the new timings are equal to what...
authorMats Randgaard <matrandg@cisco.com>
Thu, 12 Dec 2013 13:13:35 +0000 (10:13 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:49 +0000 (11:52 +0900)
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 ce3b51b..3ae8ec5 100644 (file)
@@ -1378,6 +1378,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 ((!DIGITAL_INPUT && bt->pixelclock > 170000000) ||