Re: [PATCH] uvcvideo: add a D4M camera description

2018-08-27 Thread Guennadi Liakhovetski
Hi Laurent, On Sat, 25 Aug 2018, Laurent Pinchart wrote: > Hi Guennadi, > > On Friday, 3 August 2018 14:07:12 EEST Guennadi Liakhovetski wrote: > > Hi Laurent, > > > > Thanks for the review. A general note: I think you're requesting a rather > > detailed information about many parameters. That

Re: [PATCH 2/3] ARM: dts: imx6ull: add pxp support

2018-08-27 Thread Shawn Guo
On Fri, Aug 10, 2018 at 05:18:21PM +0200, Philipp Zabel wrote: > Add the device node for the i.MX6ULL Pixel Pipeline (PXP). > > Signed-off-by: Philipp Zabel > --- > arch/arm/boot/dts/imx6ul.dtsi | 8 > arch/arm/boot/dts/imx6ull.dtsi | 6 ++ > 2 files changed, 14 insertions(+) > >

Re: [PATCH v2 2/2] uvcvideo: add a D4M camera description

2018-08-27 Thread Guennadi Liakhovetski
Hi Laurent, Thanks for the review. On Sat, 25 Aug 2018, Laurent Pinchart wrote: > Hi Guennadi, > > Thank you for the patch. > > Overall this looks good to me, I only have small comments. Please see below, > with a summary at the end. > > On Friday, 3 August 2018 14:37:08 EEST Guennadi

Re: V4L2 analogue gain contol

2018-08-27 Thread Helmut Grohne
Hi, On Sun, Aug 26, 2018 at 08:52:09AM +0200, Pavel Machek wrote: > > Can we give more structure to the analogue gain as exposed by V4L2? > > Ideally, I'd like to query a driver for the possible gain values if > > there are few (say < 256) and their factors (which are often given in > > data

Re: [PATCH] media: aptina-pll: allow approximating the requested pix_clock

2018-08-27 Thread Helmut Grohne
On Sat, Aug 25, 2018 at 01:32:47PM +0200, Sakari Ailus wrote: > On Fri, Aug 24, 2018 at 02:05:17PM +0200, Helmut Grohne wrote: > > Take for instance MT9M024. The data sheet > > (http://www.mouser.com/ds/2/308/MT9M024-D-606228.pdf) allows deducing > > the following limits: > > > > const struct

Re: [PATCH v3 6/7] media: Add controls for JPEG quantization tables

2018-08-27 Thread Paul Kocialkowski
Hi, On Wed, 2018-08-22 at 13:59 -0300, Ezequiel Garcia wrote: > From: Shunqian Zheng > > Add V4L2_CID_JPEG_LUMA/CHROMA_QUANTIZATION controls to allow userspace > configure the JPEG quantization tables. How about having a single control for quantization? In MPEG-2/H.264/H.265, we have a single

YOUR PRODUCT

2018-08-27 Thread Rafaa Esawi
Greetings, We are rebuilding Iraq after years of conflicts and we are inviting you to take up contracts. We are determined to purchase your products in large quantities, for use in all over our 18 governorates(provinces) as the task of re-building Iraq covers every single sectormand facet of

hi

2018-08-27 Thread Sgt Sherri Gallagher
Please reply me back I am Sgt.Sherri.

[PATCH v2 04/23] dt-bindings: media: Specify bus type for MIPI D-PHY, others, explicitly

2018-08-27 Thread Sakari Ailus
Allow specifying the bus type explicitly for MIPI D-PHY, parallel and Bt.656 busses. This is useful for devices that can make use of different bus types. There are CSI-2 transmitters and receivers but the PHY selection needs to be made between C-PHY and D-PHY; many devices also support parallel

[PATCH v2 16/23] v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero

2018-08-27 Thread Sakari Ailus
Initialise the V4L2 fwnode endpoints to zero in all drivers using v4l2_fwnode_endpoint_parse(). This prepares for setting default endpoint flags as well as the bus type. Setting bus type to zero will continue to guess the bus among the guessable set (parallel, Bt.656 and CSI-2 D-PHY).

[PATCH v2 08/23] v4l: fwnode: Detect bus type correctly

2018-08-27 Thread Sakari Ailus
In case the device supports multiple video bus types on an endpoint, the V4L2 fwnode framework attempts to detect the type based on the available information. This wasn't working really well, and sometimes could lead to the V4L2 fwnode endpoint struct as being mishandled between the bus types.

[PATCH v2 17/23] v4l: fwnode: Only zero the struct if bus type is set to V4L2_MBUS_UNKNOWN

2018-08-27 Thread Sakari Ailus
In order to prepare for allowing drivers to set the defaults for a given bus, make zeroing the struct conditional based on detecting the bus. All callers now set the bus type to zero which allows only zeroing the remaining bus union. Signed-off-by: Sakari Ailus ---

[PATCH v2 01/23] v4l: fwnode: Add debug prints for V4L2 endpoint property parsing

2018-08-27 Thread Sakari Ailus
Print debug info as standard V4L2 endpoint are parsed. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund --- drivers/media/v4l2-core/v4l2-fwnode.c | 108 ++ 1 file changed, 85 insertions(+), 23 deletions(-) diff --git

[PATCH v2 15/23] v4l: fwnode: Use default parallel flags

2018-08-27 Thread Sakari Ailus
The caller may provide default flags for the endpoint. Change the configuration based on what is available through the fwnode property API. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v2 14/23] v4l: fwnode: Parse the graph endpoint as last

2018-08-27 Thread Sakari Ailus
Parsing the graph endpoint is always successful; therefore parse it as last. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v2 18/23] v4l: fwnode: Use media bus type for bus parser selection

2018-08-27 Thread Sakari Ailus
Use the media bus types instead of the fwnode bus types internally. This is the interface to the drivers as well, making the use of the fwnode bus types more localised to the V4L2 fwnode framework. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 100

[PATCH v2 23/23] smiapp: Query the V4L2 endpoint for a specific bus type

2018-08-27 Thread Sakari Ailus
Instead of opportunistically trying to gather some information from the V4L2 endpoint, set the bus type and let the V4L2 fwnode framework figure out the configuration. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v2 13/23] v4l: fwnode: Support default CSI-2 lane mapping for drivers

2018-08-27 Thread Sakari Ailus
Most hardware doesn't support re-mapping of the CSI-2 lanes. Especially sensor drivers have a default number of lanes. Instead of requiring the caller (the driver) to provide such a unit mapping, provide one if no mapping is configured. Signed-off-by: Sakari Ailus ---

[PATCH v2 07/23] v4l: fwnode: Let the caller provide V4L2 fwnode endpoint

2018-08-27 Thread Sakari Ailus
Instead of allocating the V4L2 fwnode endpoint in v4l2_fwnode_endpoint_alloc_parse, let the caller to do this. This allows setting default parameters for the endpoint which is a very common need for drivers. Signed-off-by: Sakari Ailus --- drivers/media/i2c/ov2659.c | 14 +-

[PATCH v2 19/23] v4l: fwnode: Print bus type

2018-08-27 Thread Sakari Ailus
Print bus type either as set by the driver or as parsed from the bus-type property, as well as the guessed V4L2 media bus type. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 38 +++ 1 file changed, 38 insertions(+) diff --git

[PATCH v2 06/23] v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY

2018-08-27 Thread Sakari Ailus
The CSI-2 bus may use either D-PHY or C-PHY. Make this visible in media bus enum. Signed-off-by: Sakari Ailus --- drivers/gpu/ipu-v3/ipu-csi.c | 2 +- drivers/media/i2c/adv7180.c | 2 +- drivers/media/i2c/ov5640.c | 4 ++--

[PATCH v2 22/23] v4l: fwnode: Update V4L2 fwnode endpoint parsing documentation

2018-08-27 Thread Sakari Ailus
The semantics of v4l2_fwnode_endpoint_parse() and v4l2_fwnode_endpoint_alloc_parse() have changed slightly: they now take the bus type from the user as well as a default configuration for the bus that shall reflect the DT binding defaults. Document this. Signed-off-by: Sakari Ailus ---

[PATCH v2 10/23] v4l: fwnode: Read lane inversion information despite lane numbering

2018-08-27 Thread Sakari Ailus
Read the lane inversion independently of whether the "data-lanes" property exists. This makes sense since the caller may pass the number of lanes as the default configuration while the lane inversion configuration may still be available in firmware. Signed-off-by: Sakari Ailus ---

[PATCH v2 20/23] v4l: fwnode: Use V4L2 fwnode endpoint media bus type if set

2018-08-27 Thread Sakari Ailus
Use the given media bus type set by the caller. If none is given (i.e. the mbus type is V4L2_MBUS_UNKNOWN, or 0), fall back to the old behaviour. This is to obtain the information from the DT or try to guess the bus type. -ENXIO is returned if the caller sets the bus type but that does not match

[PATCH v2 21/23] v4l: fwnode: Support parsing of CSI-2 C-PHY endpoints

2018-08-27 Thread Sakari Ailus
The V4L2 fwnode framework only parsed CSI-2 D-PHY endpoints while C-PHY support wasn't there. Also parse endpoints for media bus type V4L2_MBUS_CSI2_CPHY. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[PATCH v2 00/23] V4L2 fwnode rework; support for default configuration

2018-08-27 Thread Sakari Ailus
Hello everyone, I've long thought the V4L2 fwnode framework requires some work (it's buggy and it does not adequately serve common needs). This set should address in particular these matters: - Most devices support a particular media bus type but the V4L2 fwnode framework was not able to use

[PATCH v2 05/23] v4l: fwnode: Add definitions for CSI-2 D-PHY, parallel and Bt.656 busses

2018-08-27 Thread Sakari Ailus
Add definitions corresponding to DT bindings to the CSI-2 D-PHY, parallel and Bt.656 busses. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v2 11/23] v4l: fwnode: Only assign configuration if there is no error

2018-08-27 Thread Sakari Ailus
Only assign endpoint configuration if the endpoint is parsed successfully. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v2 02/23] v4l: fwnode: Use fwnode_graph_for_each_endpoint

2018-08-27 Thread Sakari Ailus
Use fwnode_graph_for_each_endpoint iterator for better readability. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund --- drivers/media/v4l2-core/v4l2-fwnode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v2 12/23] v4l: fwnode: Support driver-defined lane mapping defaults

2018-08-27 Thread Sakari Ailus
Make use of the default CSI-2 lane mapping from caller-passed configuration. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v2 09/23] v4l: fwnode: Make use of newly specified bus types

2018-08-27 Thread Sakari Ailus
Add support for parsing CSI-2 D-PHY, parallel or Bt.656 bus explicitly. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 53 --- 1 file changed, 43 insertions(+), 10 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v2 03/23] v4l: fwnode: The CSI-2 clock is continuous if it's not non-continuous

2018-08-27 Thread Sakari Ailus
The continuous clock flag was only set if there was a clock or data lanes. This isn't needed as such a configuration is invalid to begin with. Always set the continuous clock flag if the non-continuous property is not found. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH] media: rc: Remove init_ir_raw_event and DEFINE_IR_RAW_EVENT macros

2018-08-27 Thread Sean Young
This can be done with c99 initializers, which makes the code cleaner and more transparent. It does require gcc 4.6, because of this bug in earlier versions: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 Since commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"),