Re: [PATCH v9 19/22] uvcvideo: uvc_ctrl_is_accessible: check for INACTIVE

2021-03-27 Thread Ricardo Ribalda Delgado
Hello Hans On Fri, Mar 26, 2021 at 11:01 AM Ricardo Ribalda wrote: > > From: Hans Verkuil > > Check for inactive controls in uvc_ctrl_is_accessible(). > Use the new value for the master_id controls if present, > otherwise use the existing value to determine if it is OK > to set the control.

Re: [PATCH v7 15/17] media: uvcvideo: Refactor __uvc_ctrl_commit

2021-03-19 Thread Ricardo Ribalda Delgado
Hello Hans On Fri, Mar 19, 2021 at 9:35 AM Hans Verkuil wrote: > > On 18/03/2021 21:29, Ricardo Ribalda wrote: > > Take a v4l2_ext_controls instead of an array of controls, this way we > > can access the error_idx in future changes. > > > > Signed-off-by: Ricardo Ribalda > > --- > >

Re: [PATCHv2 2/3] media: uvcvideo: add ROI auto controls

2021-03-17 Thread Ricardo Ribalda Delgado
On Wed, Mar 17, 2021 at 2:34 AM Sergey Senozhatsky wrote: > > On (21/03/16 19:29), Ricardo Ribalda Delgado wrote: > > > ROI control is a compound data type: > > > Control Selector CT_REGION_OF_INTEREST_CONTROL > > > Mandatory Requests SET_CUR, G

Re: [PATCHv2 1/3] media: v4l UAPI docs: document ROI selection targets

2021-03-17 Thread Ricardo Ribalda Delgado
Hi On Wed, Mar 17, 2021 at 2:31 AM Sergey Senozhatsky wrote: > > On (21/03/16 19:19), Ricardo Ribalda Delgado wrote: > > > +Configuration of Region of Interest (ROI) > > > += > > > + > > > +The range of coordinate

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-17 Thread Ricardo Ribalda Delgado
Hi On Wed, Mar 17, 2021 at 2:59 AM Sergey Senozhatsky wrote: > > On (21/03/16 19:46), Ricardo Ribalda Delgado wrote: > > > -static int uvc_ioctl_g_selection(struct file *file, void *fh, > > > -struct v4l2_selection *sel) > > >

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-16 Thread Ricardo Ribalda Delgado
Hi Sergey Thanks for the patch On Mon, Feb 8, 2021 at 6:23 AM Sergey Senozhatsky wrote: > > From: Sergey Senozhatsky > > This patch implements parts of UVC 1.5 Region of Interest (ROI) > control, using the uvcvideo selection API. > > There are several things to mention here. > > First, UVC 1.5

Re: [PATCHv2 2/3] media: uvcvideo: add ROI auto controls

2021-03-16 Thread Ricardo Ribalda Delgado
Hi Sergey Thanks for the patch On Mon, Feb 8, 2021 at 6:24 AM Sergey Senozhatsky wrote: > > From: Sergey Senozhatsky > > This patch adds support for Region of Interest bmAutoControls. > > ROI control is a compound data type: > Control Selector CT_REGION_OF_INTEREST_CONTROL > Mandatory

Re: [PATCHv2 1/3] media: v4l UAPI docs: document ROI selection targets

2021-03-16 Thread Ricardo Ribalda Delgado
Hi Sergey Thanks for the patch! On Mon, Feb 8, 2021 at 6:21 AM Sergey Senozhatsky wrote: > > From: Sergey Senozhatsky > > Document new v4l2-selection target which will be used for the > Region of Interest v4l2 control. > > Signed-off-by: Sergey Senozhatsky > --- >

Re: [PATCH v3 7/8] media: uvcvideo: Set a different name for the metadata entity

2021-03-12 Thread Ricardo Ribalda Delgado
Hi Laurent Thanks! On Sat, Mar 13, 2021 at 12:29 AM Laurent Pinchart wrote: > > Hi Ricardo, > > On Sat, Mar 13, 2021 at 12:17:50AM +0100, Ricardo Ribalda Delgado wrote: > > On Fri, Mar 12, 2021 at 11:30 PM Laurent Pinchart wrote: > > > On Fri, Mar 12, 2021 at 01:48:

Re: [PATCH v3 7/8] media: uvcvideo: Set a different name for the metadata entity

2021-03-12 Thread Ricardo Ribalda Delgado
HI Laurent Thanks for the review On Fri, Mar 12, 2021 at 11:30 PM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. > > On Fri, Mar 12, 2021 at 01:48:29PM +0100, Ricardo Ribalda wrote: > > All the entities must have a unique name. And now that we are at it, we > > append the

Re: [PATCH v2 6/6] media: uvcvideo: Use dma_alloc_noncontiguous API

2021-03-12 Thread Ricardo Ribalda Delgado
Hi Laurent Thanks a lot for the review On Fri, Mar 12, 2021 at 10:19 PM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. > > On Fri, Mar 12, 2021 at 01:57:09PM +0100, Ricardo Ribalda wrote: > > On architectures where there is no coherent caching such as ARM use the > >

Re: [PATCH v2 5/6] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-12 Thread Ricardo Ribalda Delgado
HI Laurent Thanks for the prompt reply :) On Fri, Mar 12, 2021 at 2:25 AM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. > > On Thu, Mar 11, 2021 at 11:19:45PM +0100, Ricardo Ribalda wrote: > > Create all the class controls for the device defined controls. > > > > Fixes

Re: [PATCH v2 3/6] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Ricardo Ribalda Delgado
Hi Laurent On Fri, Mar 12, 2021 at 12:30 AM Laurent Pinchart wrote: > > Hi Ricardo, > > On Thu, Mar 11, 2021 at 11:59:27PM +0100, Ricardo Ribalda Delgado wrote: > > On Thu, Mar 11, 2021 at 11:53 PM Laurent Pinchart wrote: > > > On Thu, Mar 11, 2021 at 11:19:43PM +

Re: [PATCH v2 3/6] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Ricardo Ribalda Delgado
Hi Laurent On Thu, Mar 11, 2021 at 11:53 PM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. Thank you :) > > On Thu, Mar 11, 2021 at 11:19:43PM +0100, Ricardo Ribalda wrote: > > The device is doing something unspected with the control. Either because > > the protocol is not

Re: [PATCH 03/10] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Ricardo Ribalda Delgado
Hi Laurent On Thu, Mar 11, 2021 at 4:59 PM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. > > On Thu, Mar 11, 2021 at 03:08:22PM +0100, Ricardo Ribalda wrote: > > As discussed in the IRC with Hans > > > > We need to specify in the commit message that this is most likely due

Re: [PATCH 07/10] media: uvcvideo: set error_idx to count on EACCESS

2021-03-11 Thread Ricardo Ribalda Delgado
Hi Laurent On Thu, Mar 11, 2021 at 5:20 PM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. Thank you for the review :) > > On Thu, Mar 11, 2021 at 01:20:37PM +0100, Ricardo Ribalda wrote: > > According to the doc: > > The previous paragraph states: > > This check is done

Re: [PATCH 10/10] media: uvcvideo: Populate only active control classes

2021-03-11 Thread Ricardo Ribalda Delgado
Hi Hans Thanks for your review! On Thu, Mar 11, 2021 at 3:32 PM Hans Verkuil wrote: > > On 11/03/2021 13:20, Ricardo Ribalda wrote: > > Do not create Control Classes for empty classes. > > Shouldn't this be squashed with patch 06/10? Most of the cameras I have used have the two classes, So I

Re: [PATCH] regmap: Add support for 12/20 register formatting

2020-09-17 Thread Ricardo Ribalda Delgado
HI Mark On Thu, Sep 17, 2020 at 1:22 PM Mark Brown wrote: > > On Thu, Sep 17, 2020 at 08:31:54AM +0200, Ricardo Ribalda Delgado wrote: > > On Wed, Sep 16, 2020 at 6:29 PM Mark Brown wrote: > > > > What exactly is the format you're trying to describe here? It sound

Re: [PATCH] regmap: Add support for 12/20 register formatting

2020-09-17 Thread Ricardo Ribalda Delgado
Hi Mark On Wed, Sep 16, 2020 at 6:29 PM Mark Brown wrote: > > On Wed, Sep 16, 2020 at 06:05:52PM +0200, Ricardo Ribalda wrote: > > From: Ricardo Ribalda > > > > Devices such as the AD5628 require 32 bits of data divided in 12 bits > > for dummy, command and address, and 20 for data and

Re: [PATCH] i2c: designware: platdrv: Set class based on dmi

2020-06-24 Thread Ricardo Ribalda Delgado
Hi Andy On Wed, Jun 24, 2020 at 12:46 PM Andy Shevchenko wrote: > > On Wed, Jun 24, 2020 at 11:12:39AM +0200, Ricardo Ribalda wrote: > > Current AMD's zen-based APUs use this core for some of its i2c-buses. > > > > With this patch we re-enable autodetection of hwmon-alike devices, so > >

Re: [PATCH] mtd: Fix mtd not registered due to nvmem name collision

2020-05-18 Thread Ricardo Ribalda Delgado
Hi This is just a friendly ping after two weeks ;) On Mon, May 4, 2020 at 10:44 AM Miquel Raynal wrote: > > Hi Richard, > > Ricardo Ribalda Delgado wrote on Thu, 30 Apr 2020 > 15:17:21 +0200: > > > From: Ricardo Ribalda Delgado > > > > When the nvmem

[PATCH] mtd: Fix mtd not registered due to nvmem name collision

2020-04-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado When the nvmem framework is enabled, a nvmem device is created per mtd device/partition. It is not uncommon that a device can have multiple mtd devices with partitions that have the same name. Eg, when there DT overlay is allowed and the same device with mtd

Re: [PATCH v2] mtd: Fix mtd not the same name not registered if nvmem

2020-04-30 Thread Ricardo Ribalda Delgado
Apr 2020 16:22:22 +0200 > > > Miquel Raynal wrote: > > > > > > > Hi Ricardo, > > > > > > > > Ricardo Ribalda Delgado wrote on Tue, 14 Apr 2020 > > > > 15:47:23 +0200: > > > > > > > > > Ping? > > > > >

[PATCH v2] media: v4l2-ctrl: Add p_def to v4l2_ctrl_config

2019-10-16 Thread Ricardo Ribalda Delgado
This allows setting the default value on compound controls created via v4l2_ctrl_new_custom. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 3 ++- include/media/v4l2-ctrls.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] media: v4l2-ctrl: Add p_def to v4l2_ctrl_config

2019-10-16 Thread Ricardo Ribalda Delgado
Hi Hans On Wed, Oct 16, 2019 at 2:57 PM Hans Verkuil wrote: > > On 10/16/19 2:43 PM, Hans Verkuil wrote: > > On 10/16/19 2:39 PM, Ricardo Ribalda Delgado wrote: > >> Hi Hans: > >> > >> On Wed, Oct 16, 2019 at 2:32 PM Hans Verkuil > >> wrote:

Re: [PATCH] media: v4l2-ctrl: Add p_def to v4l2_ctrl_config

2019-10-16 Thread Ricardo Ribalda Delgado
Hi Hans On Wed, Oct 16, 2019 at 2:43 PM Hans Verkuil wrote: > > On 10/16/19 2:39 PM, Ricardo Ribalda Delgado wrote: > > Hi Hans: > > > > On Wed, Oct 16, 2019 at 2:32 PM Hans Verkuil > > wrote: > >> > >> On 10/16/19 2:20

Re: [PATCH] media: v4l2-ctrl: Add p_def to v4l2_ctrl_config

2019-10-16 Thread Ricardo Ribalda Delgado
Hi Hans: On Wed, Oct 16, 2019 at 2:32 PM Hans Verkuil wrote: > > On 10/16/19 2:20 PM, Ricardo Ribalda Delgado wrote: > > Hi Hans > > > > Not that awkward, the user has to use the brand new > > v4l2_ctrl_ptr_create() ;). But if you prefer void * I can make the

Re: [PATCH] media: v4l2-ctrl: Add p_def to v4l2_ctrl_config

2019-10-16 Thread Ricardo Ribalda Delgado
Hi Hans Not that awkward, the user has to use the brand new v4l2_ctrl_ptr_create() ;). But if you prefer void * I can make the change. Regards On Wed, Oct 16, 2019 at 2:17 PM Hans Verkuil wrote: > > On 10/14/19 4:14 PM, Ricardo Ribalda Delgado wrote: > > This allows setting the d

[PATCH] media: v4l2-ctrl: Add p_def to v4l2_ctrl_config

2019-10-14 Thread Ricardo Ribalda Delgado
This allows setting the default value on compound controls created via v4l2_ctrl_new_custom. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 2 +- include/media/v4l2-ctrls.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v12 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-10-07 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42

[PATCH v12 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-10-07 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- .../media/uapi/v4l/ext-ctrls-image-source.rst | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v12 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-10-07 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions

[PATCH v12 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_create

2019-10-07 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v12 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-10-07 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ Documentation/media/videodev2.h.rst.exceptions| 1

[PATCH v12 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-10-07 Thread Ricardo Ribalda Delgado
-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 96cab2e173d3..bf50d37ef6c1 100644

[PATCH v12 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-10-07 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v12 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-10-07 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new

[PATCH v12 0/8] Implement UNIT_CELL_SIZE control

2019-10-07 Thread Ricardo Ribalda Delgado
: Add new helper v4l2_ctrl_ptr_from_void v4, v5 of this patchset never reached the mailing list. Ricardo Ribalda Delgado (8): media: v4l2-core: Implement v4l2_ctrl_new_std_compound Documentation: v4l2_ctrl_new_std_compound media: add V4L2_CTRL_TYPE_AREA control type Documentation: media

[PATCH v8 6/6] media: ad5820: Add support for ad5821 and ad5823

2019-10-07 Thread Ricardo Ribalda Delgado
-by: Pavel Machek Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek --- drivers/media/i2c/ad5820.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 5651609e5095..19c74db0649f 100644 --- a/drivers

[PATCH v8 4/6] media: ad5820: Add support for of-autoload

2019-10-07 Thread Ricardo Ribalda Delgado
-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Cc: Sakari Ailus --- drivers/media/i2c/ad5820.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 76aab651f217..5651609e5095 100644 --- a/drivers/media/i2c/ad5820.c +++ b

[PATCH v8 2/6] media: ad5820: DT new optional field enable-gpios

2019-10-07 Thread Ricardo Ribalda Delgado
Document new enable-gpio field. It can be used to disable the part without turning down its regulator. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- Documentation/devicetree/bindings

[PATCH v8 0/6] ad5820: Multiple fixes

2019-10-07 Thread Ricardo Ribalda Delgado
very unhappy. I send v8 to make patchwork happy and hopefuly also the maintainer. Sorry again v7: Rebase on current media/master Ricardo Ribalda Delgado (6): media: ad5820: Define entity function media: ad5820: DT new optional field enable-gpios media: ad5820: Add support for enable pin

[PATCH v8 5/6] media: ad5820: DT new compatible devices

2019-10-07 Thread Ricardo Ribalda Delgado
Document new compatible devices. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Reviewed-by: Rob Herring Acked-by: Pavel Machek --- Documentation/devicetree/bindings/media/i2c/ad5820.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v8 3/6] media: ad5820: Add support for enable pin

2019-10-07 Thread Ricardo Ribalda Delgado
This patch adds support for a programmable enable pin. It can be used in situations where the ANA-vcc is not configurable (dummy-regulator), or just to have a more fine control of the power saving. The use of the enable pin is optional. Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel

[PATCH v8 1/6] media: ad5820: Define entity function

2019-10-07 Thread Ricardo Ribalda Delgado
Without this patch, media_device_register_entity throws a warning: dev_warn(mdev->dev, "Entity type for entity %s was not initialized!\n", entity->name); Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart --- drivers/

[PATCH v7 5/6] media: ad5820: DT new compatible devices

2019-10-07 Thread Ricardo Ribalda Delgado
Document new compatible devices. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Reviewed-by: Rob Herring Acked-by: Pavel Machek --- Documentation/devicetree/bindings/media/i2c/ad5820.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v7 3/6] ad5820: Add support for enable pin

2019-10-07 Thread Ricardo Ribalda Delgado
This patch adds support for a programmable enable pin. It can be used in situations where the ANA-vcc is not configurable (dummy-regulator), or just to have a more fine control of the power saving. The use of the enable pin is optional. Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel

[PATCH v7 6/6] ad5820: Add support for ad5821 and ad5823

2019-10-07 Thread Ricardo Ribalda Delgado
-by: Pavel Machek Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek --- drivers/media/i2c/ad5820.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 5651609e5095..19c74db0649f 100644 --- a/drivers

[PATCH v7 4/6] ad5820: Add support for of-autoload

2019-10-07 Thread Ricardo Ribalda Delgado
-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Cc: Sakari Ailus --- drivers/media/i2c/ad5820.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 76aab651f217..5651609e5095 100644 --- a/drivers/media/i2c/ad5820.c +++ b

[PATCH v7 6/6] media: ad5820: Add support for ad5821 and ad5823

2019-10-07 Thread Ricardo Ribalda Delgado
-by: Pavel Machek Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek --- drivers/media/i2c/ad5820.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 5651609e5095..19c74db0649f 100644 --- a/drivers

[PATCH v7 4/6] media: ad5820: Add support for of-autoload

2019-10-07 Thread Ricardo Ribalda Delgado
-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Cc: Sakari Ailus --- drivers/media/i2c/ad5820.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 76aab651f217..5651609e5095 100644 --- a/drivers/media/i2c/ad5820.c +++ b

[PATCH v7 2/6] ad5820: DT new optional field enable-gpios

2019-10-07 Thread Ricardo Ribalda Delgado
Document new enable-gpio field. It can be used to disable the part without turning down its regulator. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- Documentation/devicetree/bindings

[PATCH v7 2/6] media: ad5820: DT new optional field enable-gpios

2019-10-07 Thread Ricardo Ribalda Delgado
Document new enable-gpio field. It can be used to disable the part without turning down its regulator. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- Documentation/devicetree/bindings

[PATCH v7 1/6] media: ad5820: Define entity function

2019-10-07 Thread Ricardo Ribalda Delgado
Without this patch, media_device_register_entity throws a warning: dev_warn(mdev->dev, "Entity type for entity %s was not initialized!\n", entity->name); Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart --- drivers/

[PATCH v7 3/6] media: ad5820: Add support for enable pin

2019-10-07 Thread Ricardo Ribalda Delgado
This patch adds support for a programmable enable pin. It can be used in situations where the ANA-vcc is not configurable (dummy-regulator), or just to have a more fine control of the power saving. The use of the enable pin is optional. Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel

[PATCH v7 5/6] ad5820: DT new compatible devices

2019-10-07 Thread Ricardo Ribalda Delgado
Document new compatible devices. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Reviewed-by: Rob Herring Acked-by: Pavel Machek --- Documentation/devicetree/bindings/media/i2c/ad5820.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v7 0/6] ad5820: Multiple fixes

2019-10-07 Thread Ricardo Ribalda Delgado
-Support for enable-pin, of-autoload, enable-gpios and ad5821 and ad5823 For some reason these patchset was lost in translation for a year ;) v7: Rebase on current media/master Ricardo Ribalda Delgado (6): media: ad5820: Define entity function media: ad5820: DT new optional field enable

[PATCH v7 1/6] ad5820: Define entity function

2019-10-07 Thread Ricardo Ribalda Delgado
Without this patch, media_device_register_entity throws a warning: dev_warn(mdev->dev, "Entity type for entity %s was not initialized!\n", entity->name); Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart --- drivers/

[PATCH v11 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-10-07 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- .../media/uapi/v4l/ext-ctrls-image-source.rst | 10 ++ 1 file changed, 10 insertions(+) diff

Re: [PATCH v10 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-10-07 Thread Ricardo Ribalda Delgado
Hi Hans On Mon, Oct 7, 2019 at 2:01 PM Hans Verkuil wrote: > > On 10/7/19 1:35 PM, Ricardo Ribalda Delgado wrote: > > New control to pass to userspace the width/height of a pixel. Which is > > needed for calibration and lens selection. > > > > Reviewed-by:

[PATCH v10 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-10-07 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v10 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-10-07 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new

[PATCH v10 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_create

2019-10-07 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v10 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-10-07 Thread Ricardo Ribalda Delgado
-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 96cab2e173d3..bf50d37ef6c1 100644

[PATCH v10 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-10-07 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions

[PATCH v10 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-10-07 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v10 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-10-07 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42

[PATCH v10 0/8] Implement UNIT_CELL_SIZE control

2019-10-07 Thread Ricardo Ribalda Delgado
the mailing list. Ricardo Ribalda Delgado (8): media: v4l2-core: Implement v4l2_ctrl_new_std_compound Documentation: v4l2_ctrl_new_std_compound media: add V4L2_CTRL_TYPE_AREA control type Documentation: media: Document V4L2_CTRL_TYPE_AREA media: add V4L2_CID_UNIT_CELL_SIZE control Documentation

[PATCH v10 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-10-07 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff

Re: [PATCH v9 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-10-04 Thread Ricardo Ribalda Delgado
Hi Hans On Fri, Oct 4, 2019 at 12:31 PM Hans Verkuil wrote: > > On 10/1/19 1:24 PM, Ricardo Ribalda Delgado wrote: > > According to the product brief, the unit cell size is 1120 nanometers^2. > > > > https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/Prod

Re: [PATCH] media: imx214: Fix stop streaming

2019-10-03 Thread Ricardo Ribalda Delgado
Ups sorry about that. Hopefully it works fine also without the patch, but it needs to be fixed. On Thu, Oct 3, 2019 at 4:46 PM Daniel Gomez wrote: > > Stop video streaming when requested. > > When s_stream is called to stop the video streaming, if/else condition calls > start_streaming

[PATCH v9 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_create

2019-10-01 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v9 0/8] Implement UNIT_CELL_SIZE control

2019-10-01 Thread Ricardo Ribalda Delgado
if needed. https://github.com/ribalda/linux/tree/unit-size-v9 v9: Rename helper to v4l2_ctrl_ptr_create v8: Fix my email on some patches (sorry for the mess) v7: Add new helper v4l2_ctrl_ptr_from_void v4, v5 of this patchset never reached the mailing list. Ricardo Ribalda Delgado (8): media: v4l2

[PATCH v9 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-10-01 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v9 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-10-01 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42

[PATCH v9 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-10-01 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v9 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-10-01 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v9 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-10-01 Thread Ricardo Ribalda Delgado
-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index b9a46f536406..f626f9983408 100644

[PATCH v9 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-10-01 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions

[PATCH v9 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-10-01 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new

Re: [PATCH v8 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_from_void

2019-09-30 Thread Ricardo Ribalda Delgado
Hi Hans Thanks for the review On Mon, Sep 30, 2019 at 3:07 PM Hans Verkuil wrote: > > On 9/30/19 12:18 PM, Ricardo Ribalda Delgado wrote: > > This helper function simplifies the code by not needing a union > > v4l2_ctrl_ptr and an assignment every time we need to

[PATCH v8 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions

[PATCH v8 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index b9a46f536406..f626f9983408 100644

[PATCH v8 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v8 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-09-30 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v8 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_from_void

2019-09-30 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v8 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42

[PATCH v8 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new

[PATCH v8 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v8 0/8] Implement UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
if needed. https://github.com/ribalda/linux/tree/unit-size-v6 v8: Fix my email on some patches (sorry for the mess) v7: Add new helper v4l2_ctrl_ptr_from_void v4, v5 of this patchset never reached the mailing list. Ricardo Ribalda Delgado (8): media: v4l2-core: Implement v4l2_ctrl_new_std_compound

[PATCH v7 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42

[PATCH v7 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v7 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new

[PATCH v7 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions

[PATCH v7 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-09-30 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v7 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_from_void

2019-09-30 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v7 0/8] Implement UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
if needed. https://github.com/ribalda/linux/tree/unit-size-v6 v7: Add new helper v4l2_ctrl_ptr_from_void v4, v5 of this patchset never reached the mailing list. Ricardo Ribalda Delgado (8): media: v4l2-core: Implement v4l2_ctrl_new_std_compound Documentation: v4l2_ctrl_new_std_compound media

[PATCH v7 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v7 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index b9a46f536406..f626f9983408 100644

Re: [PATCH v6 7/7] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-27 Thread Ricardo Ribalda Delgado
Hi Hans On Fri, 27 Sep 2019, 09:14 Hans Verkuil, wrote: > > On 9/20/19 3:51 PM, Ricardo Ribalda Delgado wrote: > > From: Ricardo Ribalda Delgado > > > > According to the product brief, the unit cell size is 1120 nanometers^2. > > > > https://www.sony-semi

  1   2   3   4   5   6   7   8   9   10   >