On Tue Nov 25 15:29:57 2025 +0100, Thorsten Schmelzer wrote:
> The ADV7280-M may internally convert interlaced video input to
> progressive video. If this mode is enabled, the ADV7280-M delivers
> progressive video frames at the field rate of 50 fields per second (PAL)
> or 60 fields per second (NTSC).
>
> Fix the reported frame interval if progressive video is enabled.
>
> Signed-off-by: Thorsten Schmelzer <[email protected]>
> Reviewed-by: Niklas Söderlund <[email protected]>
> Signed-off-by: Michael Tretter <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>
Patch committed.
Thanks,
Hans Verkuil
drivers/media/i2c/adv7180.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
index d289cbc2eefd..669b0b3165b1 100644
--- a/drivers/media/i2c/adv7180.c
+++ b/drivers/media/i2c/adv7180.c
@@ -507,6 +507,13 @@ static int adv7180_get_frame_interval(struct v4l2_subdev
*sd,
fi->interval.denominator = 25;
}
+ /*
+ * If the de-interlacer is active, the chip produces full video frames
+ * at the field rate.
+ */
+ if (state->field == V4L2_FIELD_NONE)
+ fi->interval.denominator *= 2;
+
return 0;
}
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]