linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Weird default vblank value in ov5693
@ 2024-01-28 20:58 Hans de Goede
  2024-01-29  8:58 ` Jacopo Mondi
  2024-01-29  9:53 ` Dan Scally
  0 siblings, 2 replies; 15+ messages in thread
From: Hans de Goede @ 2024-01-28 20:58 UTC (permalink / raw)
  To: Linux Media Mailing List

Hi All,

While adding vblank ctrl support to the ov2680 driver I was looking
at the vblank ctrl code in the ov5693 and I noticed something
which I believe is weird / undesirable.

When setting a new mode the ov5693 driver does not keep the current
vts value (adjusting vblank to keep vts and thus the framerare and
exposure unchanged).

Instead it calculates a new vts value, resetting the framerate
to 30 fps; or 60 fps for smaller resolutions and then sets
vblank to the new (vts - new_mode->height) and adjusts
the exposure control-range to fit within the new vts, potentially
also changing the exposure value.

This behavior of the ov5693 code means that switching resolution
also changes the framerate and the exposure value which seems
undesirable.

The vblank and hblank control values changes on setting a mode
is unavoidable but the framerate and exposure value changing
at the same time seems undesirable.

Note that this also halves the max supported exposure value
when going to a lower-res mode even when userspace never
touches the vblank control.

Regards,

Hans





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-01-30 12:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-28 20:58 Weird default vblank value in ov5693 Hans de Goede
2024-01-29  8:58 ` Jacopo Mondi
2024-01-29 10:43   ` Hans de Goede
2024-01-29 12:54     ` Kieran Bingham
2024-01-29  9:53 ` Dan Scally
2024-01-29 10:30   ` Hans de Goede
2024-01-29 12:05     ` Jacopo Mondi
2024-01-29 12:24       ` Hans de Goede
2024-01-29 13:07         ` Dan Scally
2024-01-29 14:45         ` Jacopo Mondi
2024-01-29 17:18           ` Hans de Goede
2024-01-29 18:40             ` Sakari Ailus
2024-01-30 10:29               ` Hans de Goede
2024-01-30 12:00                 ` Sakari Ailus
2024-01-30 12:37                   ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).