From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Fernando Rimoli <fernandorimoli11@gmail.com>
Cc: Hans Verkuil <hans@jjverkuil.nl>,
Benjamin Mugnier <benjamin.mugnier@foss.st.com>,
Sylvain Petinot <sylvain.petinot@foss.st.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] media: i2c: vd55g1: Mark the AE lock and bias controls inactive in manual mode
Date: Tue, 3 Nov 2026 12:55:30 +0200 [thread overview]
Message-ID: <aum9ooVly1Oq3phM@kekkonen.localdomain> (raw)
In-Reply-To: <20261103104959.52785-1-fernandorimoli11@gmail.com>
Hi Fernando,
On Tue, Nov 03, 2026 at 10:49:58AM +0000, Fernando Rimoli wrote:
> Hi Sakari,
>
> On Mon, Nov 02, 2026 at 02:08:40PM +0200, Sakari Ailus wrote:
> > I don't think grabbing a control is a bug as such; it's normal that if
> > exposure is set to auto, you can't access the manual exposure controls.
>
> For that case the framework itself uses inactive rather than grabbed:
> v4l2_ctrl_auto_cluster() sets V4L2_CTRL_FLAG_INACTIVE on the manual
> controls while the cluster is in auto, and vd55g1 already uses it for
> its exposure cluster. The AE lock and bias are the mirror image,
> auto-only controls in manual mode, so this patch makes them follow the
> same rule.
>
> That also matches the flag descriptions in vidioc-queryctrl.rst: grabbed
> is "temporarily unchangeable, for example because another application
> took over control of the respective resource", inactive is "not
> applicable to the current configuration".
>
> vd56g3 has the same two __v4l2_ctrl_grab() calls. If this goes in, I can
> send the same change for it.
Right, indeed that sounds reasonable. The drivers that grab controls today
do it for the duration of streaming so the use case is a little bit
different.
--
Regards,
Sakari Ailus
next prev parent reply other threads:[~2026-11-03 10:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 19:50 [PATCH v2 0/2] media: i2c: vd55g1: Two v4l2-compliance fixes for controls Fernando Rimoli
2026-11-01 19:50 ` [PATCH v2 1/2] media: i2c: vd55g1: Mark the AE lock and bias controls inactive in manual mode Fernando Rimoli
2026-11-02 12:08 ` Sakari Ailus
2026-11-03 10:49 ` Fernando Rimoli
2026-11-03 10:55 ` Sakari Ailus [this message]
2026-11-01 19:50 ` [PATCH v2 2/2] media: i2c: vd55g1: Support control events Fernando Rimoli
2026-11-02 12:04 ` Sakari Ailus
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=aum9ooVly1Oq3phM@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=benjamin.mugnier@foss.st.com \
--cc=fernandorimoli11@gmail.com \
--cc=hans@jjverkuil.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sylvain.petinot@foss.st.com \
/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
all inboxes | Powered by JetHome®