Re: [PATCH v2 08/12] intel-ipu3: params: compute and program ccs

2017-10-11 Thread Tuukka Toivonen
On Wed, 2017-10-11 at 16:31 +0300, Andy Shevchenko wrote: > On Wed, Oct 11, 2017 at 10:29 AM, sakari.ai...@linux.intel.com > wrote: > > On Wed, Oct 11, 2017 at 04:14:37AM +, Zhi, Yong wrote: > > > > > +static unsigned int ipu3_css_scaler_get_exp(unsigned int > >

Re: [PATCH v2 3/3] [media] intel-ipu3: cio2: Add new MIPI-CSI2 driver

2017-06-13 Thread Tuukka Toivonen
Hi Tomasz, On Monday, June 12, 2017 18:59:18 Tomasz Figa wrote: > By any chance, doesn't the hardware provide some simple mode for > contiguous buffers? Since we have an MMU anyway, we could use > vb2_dma_contig and simplify the code significantly. In IPU3 the CIO2 (CSI-2 receiver) and the IMGU

Re: [PATCH 02/12] intel-ipu3: mmu: implement driver

2017-06-09 Thread Tuukka Toivonen
Hi Tomasz, Couple of small comments below. On Wednesday, June 07, 2017 17:35:13 Tomasz Figa wrote: > >> +static void ipu3_mmu_domain_free(struct iommu_domain *dom) > >> +{ > >> + struct ipu3_mmu_domain *mmu_dom = > >> + container_of(dom, struct ipu3_mmu_domain, domain); > >>

Re: [PATCH 3/3] [media] intel-ipu3: cio2: Add new MIPI-CSI2 driver

2017-05-03 Thread Tuukka Toivonen
Hi Sakari, On Wednesday, May 03, 2017 11:58:01 Sakari Ailus wrote: > Hi Yong, > > A few more minor comments below... > > On Sat, Apr 29, 2017 at 06:34:36PM -0500, Yong Zhi wrote: > ... > > +/*** V4L2 sub-device asynchronous registration callbacks***/ > > + > > +static struct

Re: [PATCH 3/3] [media] intel-ipu3: cio2: Add new MIPI-CSI2 driver

2017-05-03 Thread Tuukka Toivonen
Jouni Högander <jouni.hogan...@intel.com> > > + * Jouni Ukkonen <jouni.ukko...@intel.com> > > + * Antti Laakso <antti.laa...@intel.com> > > + * et al. > > + * > > + */ > > + > > +#include > > I believe you shouldn't need this one.

[PATCH] [media] v4l2-async: failing functions shouldn't have side effects

2017-01-27 Thread Tuukka Toivonen
ailing function could leave nodes into a linked list while the caller might free the node due to a failure. Signed-off-by: Tuukka Toivonen <tuukka.toivo...@intel.com> --- drivers/media/v4l2-core/v4l2-async.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff

[yavta PATCH v2] Return proper error code if STREAMON fails

2015-12-13 Thread Tuukka Toivonen
Return the error code if video_enable() and VIDIOC_STREAMON fails. Signed-off-by: Tuukka Toivonen <tuukka.toivo...@intel.com> --- yavta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yavta.c b/yavta.c index b627725..3d80d3c 100644 --- a/yavta.c +++ b/yavta.c @@ -

Re: [yavta PATCH] Return proper error code if STREAMON fails

2015-12-13 Thread Tuukka Toivonen
Hi, Thanks for your feedback. On Saturday, December 12, 2015 17:40:07 Laurent Pinchart wrote: > I wonder if there's really a point calling video_free_buffers() in the > error case. The function will return an error causing the caller to > close the device, which will free the buffers. There are

[yavta PATCH] Return proper error code if STREAMON fails

2015-11-30 Thread Tuukka Toivonen
Fix the bug causing success to be returned even if VIDIOC_STREAMON failed. Also check returned error from VIDIOC_STREAMOFF. Signed-off-by: Tuukka Toivonen <tuukka.toivo...@intel.com> --- yavta.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/yavta.c b/y

Re: [ANN] Notes on IRC meeting on new sensor control interface, 2012-01-09 14:00 GMT+2

2012-01-10 Thread Tuukka Toivonen
On Tuesday 10 January 2012 12:05:48 Laurent Pinchart wrote: That was my question, how does the user decide whether hblank or vblank is preferred ? I think that should be defined in the configuration itself. It's very unlikely there's any need to change this dynamically. Sure, but

Re: [ANN] Meeting minutes of the Cambourne meeting

2011-08-10 Thread Tuukka Toivonen
On Tuesday, August 09, 2011 06:36:19 pm nitesh moundekar wrote: I am worried about direction v4l2 is taking. It looks against the basic principle of driver i.e. hardware abstraction. There definitely should be an API which is hardware independent. However, the problem is that the hardware is