[media] v4l2-dv-timings: add new arg to v4l2_match_dv_timings
Add the new match_reduced_fps argument to v4l2_match_dv_timings(). Depending on the situation you may or may not desire to match the reduced_fps flag. Typically only HDMI transmitters will need to check for this flag. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Mauro Carvalho Chehab

vecāks
10897dacea
revīzija
85f9e06c59
@@ -905,7 +905,7 @@ static int find_and_set_predefined_video_timings(struct v4l2_subdev *sd,
|
||||
|
||||
for (i = 0; predef_vid_timings[i].timings.bt.width; i++) {
|
||||
if (!v4l2_match_dv_timings(timings, &predef_vid_timings[i].timings,
|
||||
is_digital_input(sd) ? 250000 : 1000000))
|
||||
is_digital_input(sd) ? 250000 : 1000000, false))
|
||||
continue;
|
||||
io_write(sd, 0x00, predef_vid_timings[i].vid_std); /* video std */
|
||||
io_write(sd, 0x01, (predef_vid_timings[i].v_freq << 4) +
|
||||
@@ -1479,7 +1479,7 @@ static void adv76xx_fill_optional_dv_timings_fields(struct v4l2_subdev *sd,
|
||||
|
||||
for (i = 0; adv76xx_timings[i].bt.width; i++) {
|
||||
if (v4l2_match_dv_timings(timings, &adv76xx_timings[i],
|
||||
is_digital_input(sd) ? 250000 : 1000000)) {
|
||||
is_digital_input(sd) ? 250000 : 1000000, false)) {
|
||||
*timings = adv76xx_timings[i];
|
||||
break;
|
||||
}
|
||||
@@ -1644,7 +1644,7 @@ static int adv76xx_s_dv_timings(struct v4l2_subdev *sd,
|
||||
if (!timings)
|
||||
return -EINVAL;
|
||||
|
||||
if (v4l2_match_dv_timings(&state->timings, timings, 0)) {
|
||||
if (v4l2_match_dv_timings(&state->timings, timings, 0, false)) {
|
||||
v4l2_dbg(1, debug, sd, "%s: no change\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user