Linux Media Controller development
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: Weird default vblank value in ov5693
Date: Mon, 29 Jan 2024 11:43:33 +0100	[thread overview]
Message-ID: <77162309-ed79-42ed-a715-d8a0ce1af56d@redhat.com> (raw)
In-Reply-To: <xpzavj24xdbeixfc7lw7rccx3zyhodqhcsceovru7bgcfvdp5s@w4jbols3o2wv>

Hi,

On 1/29/24 09:58, Jacopo Mondi wrote:
> Hi Hans
> 
> On Sun, Jan 28, 2024 at 09:58:41PM +0100, Hans de Goede wrote:
>> 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.
>>
> 
> Would you be interested in reviewing
> https://patchwork.kernel.org/project/linux-media/list/?series=697777&state=%2A&archive=both
> 
> and discuss there what the desired behaviour should be ?

I'm definitely interested in discussing this and in
helping with reviewing the documentation patches,
good timing wrt writing those patches :)

but Dan already replied in this thread, so lets
keep the discussion in this thread for now ?

Also I think this will probably make a good agenda
item for the libcamera workshop coming Friday ?

Hopefully we can make some decisions about this there
and then I can help with reviewing revised documentation
patches after that.

Regards,

Hans




  reply	other threads:[~2024-01-29 10:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77162309-ed79-42ed-a715-d8a0ce1af56d@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox