[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>
This commit is contained in:
parent
f24d229c1e
commit
d48eb48cd4
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue