Hi Tomasz, Sakari,

Thanks for your kindly comments. We will have an internal discussion on VBLANK 
control implementation to let it be read-only. 

And for test pattern, we will definitely implement it but will remove the item 
from v4l2 menu first.
However, since in the early stage, we found an issue that if not register 
TEST_PATTERN V4L2 item in kernel, HAL will crash soon when open camera.
We would like to resolve the issue both in HAL and kernel (removing test 
pattern) first. 
For test pattern implementation on imx258, it must be needed due to 
cros-camera-test demands it. Will complete and submit it after full internal 
verification.


Regards, Andy

-----Original Message-----
From: Sakari Ailus [mailto:sakari.ai...@iki.fi] 
Sent: Friday, March 23, 2018 10:30 PM
To: Tomasz Figa <tf...@chromium.org>
Cc: Sakari Ailus <sakari.ai...@linux.intel.com>; Yeh, Andy 
<andy....@intel.com>; Linux Media Mailing List <linux-media@vger.kernel.org>; 
Chen, JasonX Z <jasonx.z.c...@intel.com>; Chiang, AlanX 
<alanx.chi...@intel.com>; Lai, Jim <jim....@intel.com>
Subject: Re: [PATCH v9.1] media: imx258: Add imx258 camera sensor driver

On Fri, Mar 23, 2018 at 11:08:11PM +0900, Tomasz Figa wrote:
> On Fri, Mar 23, 2018 at 10:50 PM, Sakari Ailus 
> <sakari.ai...@linux.intel.com> wrote:
> > Hi Tomasz,
> >
> > On Fri, Mar 23, 2018 at 08:43:50PM +0900, Tomasz Figa wrote:
> >> Hi Andy,
> >>
> >> Some issues found when reviewing cherry pick of this patch to 
> >> Chrome OS kernel. Please see inline.
> >>
> >> On Sat, Mar 17, 2018 at 1:38 AM, Andy Yeh <andy....@intel.com> wrote:
> >>
> >> [snip]
> >>
> >> > +       case V4L2_CID_VBLANK:
> >> > +               /*
> >> > +                * Auto Frame Length Line Control is enabled by default.
> >> > +                * Not need control Vblank Register.
> >> > +                */
> >>
> >> What is the meaning of this control then? Should it be read-only?
> >
> > The read-only flag is for the uAPI; the control framework still 
> > passes through changes to the control value done using kAPI to the driver.
> 
> The read-only flag is not even set in current code.

Ah, you're right, it's just hblank... but if the driver doesn't support setting 
this control, then it should most likely be read-only. It would seem like that 
the driver just updates the control to convey the value to the user.

> 
> Also, I'm not sure about the control framework setting read-only 
> control. According to the code, it doesn't:
> https://elixir.bootlin.com/linux/latest/source/drivers/media/v4l2-core
> /v4l2-ctrls.c#L2477

If you set the control using e.g. v4l2_ctrl_s_ctrl(), it should end up to the 
driver's s_ctrl callback.

--
Regards,

Sakari Ailus
e-mail: sakari.ai...@iki.fi

Reply via email to