Commit d48eb48c authored by Mats Randgaard's avatar Mats Randgaard Committed by Mauro Carvalho Chehab
Browse files

[media] adv7604: return immediately if the new timings are equal to what is configured

parent f24d229c
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1423,6 +1423,11 @@ static int adv7604_s_dv_timings(struct v4l2_subdev *sd,
	if (!timings)
	if (!timings)
		return -EINVAL;
		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;
	bt = &timings->bt;


	if ((is_analog_input(sd) && bt->pixelclock > 170000000) ||
	if ((is_analog_input(sd) && bt->pixelclock > 170000000) ||