From: jacopo mondi <jacopo@jmondi.org>
To: Tomasz Figa <tfiga@google.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Cao Bing Bu <bingbu.cao@intel.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
bingbu.cao@linux.intel.com, tian.shu.qiu@linux.intel.com, "Mani,
Rajmohan" <rajmohan.mani@intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: [PATCH v3] media: imx319: Add imx319 camera sensor driver
Date: Fri, 25 May 2018 09:12:05 +0200 [thread overview]
Message-ID: <20180525071205.GH18369@w540> (raw)
In-Reply-To: <CAAFQd5CtOkGmGsixJg1XO-stwY=+DSGdQhR28SieHN-vHfPY9g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1745 bytes --]
Hi Tomasz,
On Fri, May 25, 2018 at 03:18:38PM +0900, Tomasz Figa wrote:
> On Fri, May 25, 2018 at 5:47 AM Sakari Ailus <sakari.ailus@linux.intel.com>
> wrote:
>
> > Hi Jacopo,
>
> > On Thu, May 24, 2018 at 10:07:38PM +0200, jacopo mondi wrote:
> > ...
> > > > > about that, but I wonder why setting controls should be enabled only
> > > > > when streaming. I would have expected runtime_pm_get/put in
> subdevices
> > > > > node open/close functions not only when streaming. Am I missing
> something?
> > > >
> > > > You can do it either way. If powering on the sensor takes a long
> time, then
> > > > doing that in the open callback may be helpful as the user space has
> a way
> > > > to keep the device powered.
> > >
> > > Ok, so I assume my comment could be ignored, assuming is fine not
> > > being able to set control if the sensor is not streaming. Is it?
>
> > I'd say so. From the user's point of view, the sensor doesn't really do
> > anything when it's in software standby mode.
>
> Just to make sure we're on the same page, the code actually does nothing
> when the sensor is not in streaming mode (i.e. powered off). When stream is
> being started, the V4L2 control framework will call s_ctrl for all the
> controls in the handler to synchronize hardware state and this is when all
> the controls set before powering on will actually be programmed into the
> hardware registers.
Thanks, I had missed that part.
I quickly tried searching for 's_ctrl' calls in the v4l2-core/ code
and I've found nothing that invokes that in response to a streaming
start operation. Just if you happen to have any reference handy, could
you please point me to that part, just for my better understanding?
Thanks
j
>
> Best regards,
> Tomasz
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2018-05-25 7:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-17 4:02 [PATCH] media: imx319: Add imx319 camera sensor driver bingbu.cao
2018-05-19 16:53 ` kbuild test robot
2018-05-19 16:53 ` [RFC PATCH] media: imx319: imx319_global_setting can be static kbuild test robot
2018-05-21 7:10 ` [PATCH v2 1/3] media: dw9807: Add dw9807 vcm driver bingbu.cao
2018-05-21 7:10 ` [PATCH v2 2/3] media: imx258: Add imx258 camera sensor driver bingbu.cao
2018-05-21 7:11 ` Bing Bu Cao
2018-05-21 7:11 ` [PATCH v2 1/3] media: dw9807: Add dw9807 vcm driver Bing Bu Cao
2018-05-21 7:10 ` [PATCH v2] media: imx319: Add imx319 camera sensor driver bingbu.cao
2018-05-21 21:27 ` [PATCH] media: imx319: fix semicolon.cocci warnings kbuild test robot
2018-05-21 21:27 ` [PATCH v2] media: imx319: Add imx319 camera sensor driver kbuild test robot
2018-05-22 4:33 ` [PATCH v3] " bingbu.cao
2018-05-22 20:08 ` jacopo mondi
2018-05-23 7:19 ` Bing Bu Cao
2018-05-23 7:38 ` Sakari Ailus
2018-05-24 20:07 ` jacopo mondi
2018-05-24 20:47 ` Sakari Ailus
2018-05-25 6:18 ` Tomasz Figa
2018-05-25 7:12 ` jacopo mondi [this message]
2018-05-25 7:31 ` Tomasz Figa
2018-05-25 10:56 ` jacopo mondi
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=20180525071205.GH18369@w540 \
--to=jacopo@jmondi.org \
--cc=bingbu.cao@intel.com \
--cc=bingbu.cao@linux.intel.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rajmohan.mani@intel.com \
--cc=sakari.ailus@linux.intel.com \
--cc=tfiga@google.com \
--cc=tian.shu.qiu@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.