[PATCH v4 10/12] [media] videodev2.h Add HSV encoding

2016-07-18 Thread Ricardo Ribalda Delgado
Some hardware maps the Hue between 0 and 255 instead of 0-179. Support this format with a new field hsv_enc. Signed-off-by: Ricardo Ribalda Delgado --- include/uapi/linux/videodev2.h | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux

[PATCH v4 00/12] Add HSV format

2016-07-18 Thread Ricardo Ribalda Delgado
(port documentation to .rst) Ricardo Ribalda Delgado (12): [media] videodev2.h Add HSV formats [media] Documentation: Add HSV format [media] Documentation: Add Ricardo Ribalda [media] vivid: Code refactor for color encoding [media] vivid: Add support for HSV formats [media] vivid: Rename

[PATCH v4 07/12] [media] vivid: Introduce TPG_COLOR_ENC_LUMA

2016-07-18 Thread Ricardo Ribalda Delgado
Simplifies handling of Gray formats. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 26 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 6 +++--- include/media/v4l2-tpg.h| 1 + 3 files changed

[PATCH v4 12/12] [media] vivid: Add support for HSV encoding

2016-07-18 Thread Ricardo Ribalda Delgado
Support HSV encoding. Most of the logic is replicated from ycbcr_enc. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 25 + drivers/media/platform/vivid/vivid-core.h | 1 + drivers/media/platform/vivid/vivid-ctrls.c

[PATCH v4 03/12] [media] Documentation: Add Ricardo Ribalda

2016-07-18 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst b/Documentation

[PATCH v4 03/12] [media] Documentation: Add Ricardo Ribalda

2016-07-18 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst b/Documentation/media/uapi/v4l/v4l2.rst index

Re: [PATCH v3 8/9] [media] vivid: Fix YUV555 and YUV565 handling

2016-07-18 Thread Ricardo Ribalda Delgado
Hi Hans On Mon, Jul 18, 2016 at 10:51 AM, Hans Verkuil wrote: >> + int y, cb, cr; >> + bool ycbbr_valid = false; > > I guess you mean ycbcr_valid? Yes, I think the medical term is Saturday dyslexia :) It is fixed on the next version. Thanks!

Re: [PATCH v3 8/9] [media] vivid: Fix YUV555 and YUV565 handling

2016-07-18 Thread Ricardo Ribalda Delgado
Hi Hans On Mon, Jul 18, 2016 at 10:51 AM, Hans Verkuil wrote: >> + int y, cb, cr; >> + bool ycbbr_valid = false; > > I guess you mean ycbcr_valid? Yes, I think the medical term is Saturday dyslexia :) It is fixed on the next version. Thanks!

Re: [PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Hi Hans On Sat, Jul 16, 2016 at 5:28 PM, Hans Verkuil wrote: > >> + >> +enum v4l2_rgb_encoding { >> + V4L2_RGB_ENC_FULL = 32, >> + V4L2_HSV_ENC_16_235 = 33, >> +}; > > No. I was trying to fit also Laurent special 16-235 RGB format. I will remove it on

Re: [PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Hi Hans On Sat, Jul 16, 2016 at 5:28 PM, Hans Verkuil wrote: > >> + >> +enum v4l2_rgb_encoding { >> + V4L2_RGB_ENC_FULL = 32, >> + V4L2_HSV_ENC_16_235 = 33, >> +}; > > No. I was trying to fit also Laurent special 16-235 RGB format. I will remove it on future versions.

Re: [PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Hi On Sat, Jul 16, 2016 at 4:12 PM, Laurent Pinchart wrote: > I'd still like to know about it for my personal information :-) Maybe it is just a very cheap gamma. > >> Anyway, I am inclined to use ycbcr_enc as well. > > I'm glad we agree. > Are you thinking

Re: [PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Hi On Sat, Jul 16, 2016 at 4:12 PM, Laurent Pinchart wrote: > I'd still like to know about it for my personal information :-) Maybe it is just a very cheap gamma. > >> Anyway, I am inclined to use ycbcr_enc as well. > > I'm glad we agree. > Are you thinking about something like this: diff

Re: [PATCH v3 9/9] [media] vivid: Local optimization

2016-07-16 Thread Ricardo Ribalda Delgado
Hi On Sat, Jul 16, 2016 at 12:41 PM, Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> wrote: > - cr = clamp(cr, 16 << 4, 240 << 4); > + y = clamp(y >> 4, 16, 235); > + cb = clamp(cb >> 4,

Re: [PATCH v3 9/9] [media] vivid: Local optimization

2016-07-16 Thread Ricardo Ribalda Delgado
Hi On Sat, Jul 16, 2016 at 12:41 PM, Ricardo Ribalda Delgado wrote: > - cr = clamp(cr, 16 << 4, 240 << 4); > + y = clamp(y >> 4, 16, 235); > + cb = clamp(cb >> 4, 16, 240); > +

[PATCH v3 4/9] [media] vivid: code refactor for color encoding

2016-07-16 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_enc Which can be used by other color encodings such us HSV. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c

[PATCH v3 5/9] [media] vivid: Add support for HSV formats

2016-07-16 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 93 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14 include

[PATCH v3 4/9] [media] vivid: code refactor for color encoding

2016-07-16 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_enc Which can be used by other color encodings such us HSV. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 49 +++ drivers/media/platform

[PATCH v3 5/9] [media] vivid: Add support for HSV formats

2016-07-16 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 93 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14 include/media/v4l2-tpg.h

[PATCH v3 7/9] [media] vivid: Introduce TPG_COLOR_ENC_LUMA

2016-07-16 Thread Ricardo Ribalda Delgado
Simplifies handling of Gray formats. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 26 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 6 +++--- include/media/v4l2

[PATCH v3 2/9] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Describe the HSV formats Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- Documentation/media/uapi/v4l/hsv-formats.rst | 19 +++ Documentation/media/uapi/v4l/pixfmt-packed-hsv.rst | 158 + Documentation/media/uapi/v4l/pixfmt.rst

[PATCH v3 9/9] [media] vivid: Local optimization

2016-07-16 Thread Ricardo Ribalda Delgado
Avoid duplicated data shifts when possible. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-cor

[PATCH v3 8/9] [media] vivid: Fix YUV555 and YUV565 handling

2016-07-16 Thread Ricardo Ribalda Delgado
precalculate_color() had a optimization that avoided duplicated conversion for YUV formats. This optimization did not take into consideration YUV444, YUV555, YUV565 or limited range quantization. This patch keeps the optimization, but fixes the wrong handling. Signed-off-by: Ricardo Ribalda

[PATCH v3 7/9] [media] vivid: Introduce TPG_COLOR_ENC_LUMA

2016-07-16 Thread Ricardo Ribalda Delgado
Simplifies handling of Gray formats. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 26 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 6 +++--- include/media/v4l2-tpg.h| 1 + 3 files changed

[PATCH v3 2/9] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Describe the HSV formats Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/hsv-formats.rst | 19 +++ Documentation/media/uapi/v4l/pixfmt-packed-hsv.rst | 158 + Documentation/media/uapi/v4l/pixfmt.rst| 1 + Documentation/media/uapi

[PATCH v3 9/9] [media] vivid: Local optimization

2016-07-16 Thread Ricardo Ribalda Delgado
Avoid duplicated data shifts when possible. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b/drivers/media/common/v4l2-tpg

[PATCH v3 8/9] [media] vivid: Fix YUV555 and YUV565 handling

2016-07-16 Thread Ricardo Ribalda Delgado
precalculate_color() had a optimization that avoided duplicated conversion for YUV formats. This optimization did not take into consideration YUV444, YUV555, YUV565 or limited range quantization. This patch keeps the optimization, but fixes the wrong handling. Signed-off-by: Ricardo Ribalda

[PATCH v3 6/9] [media] vivid: Rename variable

2016-07-16 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 inse

[PATCH v3 3/9] [media] Documentation: Add Ricardo Ribalda

2016-07-16 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst b/Documentation

[PATCH v3 6/9] [media] vivid: Rename variable

2016-07-16 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 insertions(+), 104 deletions(-) diff

[PATCH v3 3/9] [media] Documentation: Add Ricardo Ribalda

2016-07-16 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst b/Documentation/media/uapi/v4l/v4l2.rst index

[PATCH v3 0/9] Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
-Rebase over master and docs-next -Introduce TPG_COLOR_ENC_LUMA for gray formats -CodeStyle Thanks! v2: Suggested by Mauro Carvalho Chehab <mche...@osg.samsung.com>, -Rebase on top of docs-next (port documentation to .rst) Ricardo Ribalda Delgado (9): [media] videodev2.h Add HS

[PATCH v3 0/9] Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
for gray formats -CodeStyle Thanks! v2: Suggested by Mauro Carvalho Chehab , -Rebase on top of docs-next (port documentation to .rst) Ricardo Ribalda Delgado (9): [media] videodev2.h Add HSV formats [media] Documentation: Add HSV format [media] Documentation: Add Ricardo Ribalda [media] vivid

[PATCH v3 1/9] [media] videodev2.h Add HSV formats

2016-07-16 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c

[PATCH v3 1/9] [media] videodev2.h Add HSV formats

2016-07-16 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index f899bf1c5fc0..54670cd59212 100644

Re: [PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
help me? Thanks! On Fri, Jul 15, 2016 at 8:11 PM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Ricardo, > > Thank you for the patch. > > On Friday 15 Jul 2016 18:13:15 Ricardo Ribalda Delgado wrote: >> Describe the HSV formats >> >>

Re: [PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
help me? Thanks! On Fri, Jul 15, 2016 at 8:11 PM, Laurent Pinchart wrote: > Hi Ricardo, > > Thank you for the patch. > > On Friday 15 Jul 2016 18:13:15 Ricardo Ribalda Delgado wrote: >> Describe the HSV formats >> >> Signed-off-by: Ricardo Ribalda Delgado >&g

[PATCH v2 1/6] [media] videodev2.h Add HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c

[PATCH v2 4/6] [media] vivid: code refactor for color representation

2016-07-15 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_representation. Which can be used by HSV formats. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 44 ++--- d

[PATCH v2 5/6] [media] vivid: Add support for HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 94 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14 include

[PATCH v2 4/6] [media] vivid: code refactor for color representation

2016-07-15 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_representation. Which can be used by HSV formats. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 44 ++--- drivers/media/platform/vivid/vivid

[PATCH v2 5/6] [media] vivid: Add support for HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 94 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14 include/media/v4l2-tpg.h

[PATCH v2 1/6] [media] videodev2.h Add HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 28e5be2c2eef..4b67ad06efb7 100644

[PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Describe the HSV formats Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- Documentation/media/uapi/v4l/hsv-formats.rst | 19 ++ Documentation/media/uapi/v4l/pixfmt-packed-hsv.rst | 253 + Documentation/media/uapi/v4l/pixfmt.rst

[PATCH v2 2/6] [media] Documentation: Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Describe the HSV formats Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/hsv-formats.rst | 19 ++ Documentation/media/uapi/v4l/pixfmt-packed-hsv.rst | 253 + Documentation/media/uapi/v4l/pixfmt.rst| 1 + Documentation/media/uapi

[PATCH v2 3/6] [media] Documentation: Add Ricardo Ribalda

2016-07-15 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst b/Documentation

[PATCH v2 6/6] [media] vivid: Rename variable

2016-07-15 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 inse

[PATCH v2 0/6] Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
! Changelog v2: Suggested by Mauro Carvalho Chehab <mche...@osg.samsung.com>, -Rebase on top of docs-next (port documentation to .rst) @mchehab, You were right, there was no conflict after the rebase, Thanks! Ricardo Ribalda Delgado (6): [media] videodev2.h Add HSV formats [media] Documentation: A

[PATCH v2 3/6] [media] Documentation: Add Ricardo Ribalda

2016-07-15 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst b/Documentation/media/uapi/v4l/v4l2.rst index

[PATCH v2 6/6] [media] vivid: Rename variable

2016-07-15 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 insertions(+), 104 deletions(-) diff

[PATCH v2 0/6] Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
! Changelog v2: Suggested by Mauro Carvalho Chehab , -Rebase on top of docs-next (port documentation to .rst) @mchehab, You were right, there was no conflict after the rebase, Thanks! Ricardo Ribalda Delgado (6): [media] videodev2.h Add HSV formats [media] Documentation: Add HSV format [media

Re: [PATCH 2/6] [media] Documentation: Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Hi Mauro On Fri, Jul 15, 2016 at 5:28 PM, Mauro Carvalho Chehab wrote: > Hi Ricardo, > > I'm not seeing patch 1. That is because you blacklisted me :P https://lkml.org/lkml/2016/7/15/455 I resend it to you right away. > > Anyway, please send documentation patches

Re: [PATCH 2/6] [media] Documentation: Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Hi Mauro On Fri, Jul 15, 2016 at 5:28 PM, Mauro Carvalho Chehab wrote: > Hi Ricardo, > > I'm not seeing patch 1. That is because you blacklisted me :P https://lkml.org/lkml/2016/7/15/455 I resend it to you right away. > > Anyway, please send documentation patches against the rst files.

[PATCH 1/6] [media] videodev2.h Add HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c

[PATCH 1/6] [media] videodev2.h Add HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index f899bf1c5fc0..54670cd59212 100644

[PATCH 4/6] [media] vivid: code refactor for color representation

2016-07-15 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_representation. Which can be used by HSV formats. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 44 ++--- d

[PATCH 4/6] [media] vivid: code refactor for color representation

2016-07-15 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_representation. Which can be used by HSV formats. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 44 ++--- drivers/media/platform/vivid/vivid

[PATCH 2/6] [media] Documentation: Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Describe the HSV formats. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- .../DocBook/media/v4l/pixfmt-packed-hsv.xml| 195 + Documentation/DocBook/media/v4l/pixfmt.xml | 13 ++ Documentation/DocBook/media/v4l/v4l2.xml

[PATCH 5/6] [media] vivid: Add support for HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 94 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14 include

[PATCH 3/6] [media] Documentation: Add Ricardo Ribalda as author

2016-07-15 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my mail. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- Documentation/DocBook/media/v4l/v4l2.xml | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/DocBook/media/v4l/v4l2.

[PATCH 2/6] [media] Documentation: Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Describe the HSV formats. Signed-off-by: Ricardo Ribalda Delgado --- .../DocBook/media/v4l/pixfmt-packed-hsv.xml| 195 + Documentation/DocBook/media/v4l/pixfmt.xml | 13 ++ Documentation/DocBook/media/v4l/v4l2.xml | 8 + 3 files changed, 216

[PATCH 5/6] [media] vivid: Add support for HSV formats

2016-07-15 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 94 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14 include/media/v4l2-tpg.h

[PATCH 3/6] [media] Documentation: Add Ricardo Ribalda as author

2016-07-15 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my mail. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/DocBook/media/v4l/v4l2.xml | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l

[PATCH 0/6] Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Ribalda Delgado (6): [media] videodev2.h Add HSV formats [media] Documentation: Add HSV format [media] Documentation: Add Ricardo Ribalda as author [media] vivid: code refactor for color representation [media] vivid: Add support for HSV formats [media] vivid: Rename variable

[PATCH 6/6] [media] vivid: Rename variable

2016-07-15 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 inse

[PATCH 6/6] [media] vivid: Rename variable

2016-07-15 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 insertions(+), 104 deletions(-) diff

[PATCH 0/6] Add HSV format

2016-07-15 Thread Ricardo Ribalda Delgado
Ribalda Delgado (6): [media] videodev2.h Add HSV formats [media] Documentation: Add HSV format [media] Documentation: Add Ricardo Ribalda as author [media] vivid: code refactor for color representation [media] vivid: Add support for HSV formats [media] vivid: Rename variable

Re: [RESEND PATCH v3] mtd: spi-nor: Add support for S3AN spi-nor devices

2016-07-14 Thread Ricardo Ribalda Delgado
Hi Brian: On Thu, Jul 14, 2016 at 8:07 PM, Brian Norris wrote:) > > > This still doesn't apply to l2-mtd.git / linux-next.git. If I get time, > I'll see how easily I can fix that up myself. v3 was from May 11. I have just updated a V4 rebased over l2-mtd/master.

Re: [RESEND PATCH v3] mtd: spi-nor: Add support for S3AN spi-nor devices

2016-07-14 Thread Ricardo Ribalda Delgado
Hi Brian: On Thu, Jul 14, 2016 at 8:07 PM, Brian Norris wrote:) > > > This still doesn't apply to l2-mtd.git / linux-next.git. If I get time, > I'll see how easily I can fix that up myself. v3 was from May 11. I have just updated a V4 rebased over l2-mtd/master. Thanks -- Ricardo Ribalda

[PATCH v4] mtd: spi-nor: Add support for S3AN spi-nor devices

2016-07-14 Thread Ricardo Ribalda Delgado
(default addressing mode). - The spi nor commands used. Protocol is described on Xilinx User Guide UG333 Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- v4: -Rebase on top of l2-mtd/master v3: -Rebase on top of mtd-next -Rename ADDR_NATIVE to ADDR_DEFAULT to follow UG333

[PATCH v4] mtd: spi-nor: Add support for S3AN spi-nor devices

2016-07-14 Thread Ricardo Ribalda Delgado
(default addressing mode). - The spi nor commands used. Protocol is described on Xilinx User Guide UG333 Signed-off-by: Ricardo Ribalda Delgado --- v4: -Rebase on top of l2-mtd/master v3: -Rebase on top of mtd-next -Rename ADDR_NATIVE to ADDR_DEFAULT to follow UG333 naming -Fix bug on probe v2

[PATCH v5 8/8] clk: fixed-rate: Convert into a module platform driver

2016-07-05 Thread Ricardo Ribalda Delgado
Adds support for fixed-rate clock providers which have not been enabled via of_clk_init(). This is required by Device trees overlays that introduce clocks providers. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/clk-fixed-rate.

[PATCH v5 8/8] clk: fixed-rate: Convert into a module platform driver

2016-07-05 Thread Ricardo Ribalda Delgado
Adds support for fixed-rate clock providers which have not been enabled via of_clk_init(). This is required by Device trees overlays that introduce clocks providers. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/clk-fixed-rate.c | 69 +--- 1

[PATCH v5 3/8] clk: npx: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via lpc18xx_creg_clk_init and then continues the initialization on lpc18xx_creg_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/n

[PATCH v5 2/8] clk: axis: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via of_artpec6_clkctrl_setup and then continues the initialization on artpec6_clkctrl_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/ax

[PATCH v5 3/8] clk: npx: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via lpc18xx_creg_clk_init and then continues the initialization on lpc18xx_creg_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/nxp/clk-lpc18xx-creg.c | 3 ++- 1 file

[PATCH v5 2/8] clk: axis: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via of_artpec6_clkctrl_setup and then continues the initialization on artpec6_clkctrl_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/axis/clk-artpec6.c | 4 ++-- 1 file

[PATCH v5 4/8] clk: sunxi: mod0: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun4i_a10_mod0_setup and then continues the initialization on sun4i_a10_mod0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/sun

[PATCH v5 4/8] clk: sunxi: mod0: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun4i_a10_mod0_setup and then continues the initialization on sun4i_a10_mod0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/sunxi/clk-mod0.c | 3 ++- 1 file

[PATCH v5 5/8] clk: sunxi: apb0: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun8i_a23_apb0_setup and then continues the initialization on sun8i_a23_apb0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/sun

[PATCH v5 5/8] clk: sunxi: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun8i_a23_apb0_setup and then continues the initialization on sun8i_a23_apb0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/sun

[PATCH v5 5/8] clk: sunxi: apb0: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun8i_a23_apb0_setup and then continues the initialization on sun8i_a23_apb0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/sunxi/clk-sun8i-apb0.c | 4 ++-- 1

[PATCH v5 5/8] clk: sunxi: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun8i_a23_apb0_setup and then continues the initialization on sun8i_a23_apb0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/sunxi/clk-sun8i-apb0.c | 4 ++-- 1

[PATCH v5 1/8] clk: core: New macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This will be used by drivers that requires initialization at of_clk_init() time and also during platform device probing. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- include/linux/clk-provider.h | 12 1 file changed, 12 insertions(+) diff --git a/i

[PATCH v5 0/8] clk: Don't duplicate initialization on platform_dev

2016-07-05 Thread Ricardo Ribalda Delgado
re not added to the clock provider list. This makes that drivers such as i2c-xiic.c fail to init, as they may depend on the unadded clock provider. Ricardo Ribalda Delgado (8): clk: core: New macro CLK_OF_DECLARE_DRIVER clk: axis: Use new macro CLK_OF_DECLARE_DRIVER clk: npx: U

[PATCH v5 6/8] clk: core: Avoid double initialization of clocks

2016-07-05 Thread Ricardo Ribalda Delgado
Some clock providers can be initialized via of_clk_init() and also via platform device probe. Avoid double initialization of them by setting the OF_POPULATED flag. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/clk.c | 4 1 file changed, 4 inse

[PATCH v5 1/8] clk: core: New macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This will be used by drivers that requires initialization at of_clk_init() time and also during platform device probing. Signed-off-by: Ricardo Ribalda Delgado --- include/linux/clk-provider.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/clk-provider.h b

[PATCH v5 0/8] clk: Don't duplicate initialization on platform_dev

2016-07-05 Thread Ricardo Ribalda Delgado
that drivers such as i2c-xiic.c fail to init, as they may depend on the unadded clock provider. Ricardo Ribalda Delgado (8): clk: core: New macro CLK_OF_DECLARE_DRIVER clk: axis: Use new macro CLK_OF_DECLARE_DRIVER clk: npx: Use new macro CLK_OF_DECLARE_DRIVER clk: sunxi: mod0: Use new macro

[PATCH v5 6/8] clk: core: Avoid double initialization of clocks

2016-07-05 Thread Ricardo Ribalda Delgado
Some clock providers can be initialized via of_clk_init() and also via platform device probe. Avoid double initialization of them by setting the OF_POPULATED flag. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/clk.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk

[PATCH v5 7/8] clk: fixed-factor: Convert into a module platform driver

2016-07-05 Thread Ricardo Ribalda Delgado
Adds support for fixed-factor clock providers which have not been enabled via of_clk_init(). This is required by Device trees overlays that introduce clocks providers. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/clk-fixed-factor.

[PATCH v5 7/8] clk: fixed-factor: Convert into a module platform driver

2016-07-05 Thread Ricardo Ribalda Delgado
Adds support for fixed-factor clock providers which have not been enabled via of_clk_init(). This is required by Device trees overlays that introduce clocks providers. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/clk-fixed-factor.c | 72 +++--- 1

[PATCH v5 4/8] clk: sunxi: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun4i_a10_mod0_setup and then continues the initialization on sun4i_a10_mod0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> --- drivers/clk/sun

[PATCH v5 4/8] clk: sunxi: Use new macro CLK_OF_DECLARE_DRIVER

2016-07-05 Thread Ricardo Ribalda Delgado
This driver initializes a clock provider via sun4i_a10_mod0_setup and then continues the initialization on sun4i_a10_mod0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/sunxi/clk-mod0.c | 3 ++- 1 file

Re: [PATCH] 8250/fintek: rename IRQ_MODE macro

2016-07-04 Thread Ricardo Ribalda Delgado
Acked-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> On Mon, Jun 27, 2016 at 11:21 AM, Arnd Bergmann <a...@arndb.de> wrote: > A bugfix for the fintek driver required defining some macros, but > one of them clashes with a system header on ARM: > > drivers/tty/seri

Re: [PATCH] 8250/fintek: rename IRQ_MODE macro

2016-07-04 Thread Ricardo Ribalda Delgado
Acked-by: Ricardo Ribalda Delgado On Mon, Jun 27, 2016 at 11:21 AM, Arnd Bergmann wrote: > A bugfix for the fintek driver required defining some macros, but > one of them clashes with a system header on ARM: > > drivers/tty/serial/8250/8250_fintek.c:34:0: error: "IRQ_MODE"

Re: [PATCH v3 1/2] clk: fixed-factor: Convert into a module platform driver

2016-06-29 Thread Ricardo Ribalda Delgado
Hi again On Wed, Jun 29, 2016 at 10:07 AM, Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> wrote: > - I can send it as a proper patch if you prefer tat. Just realised how bad the code is treated by gmail. You can navigate more easily through the code here: https://github.com/riba

Re: [PATCH v3 1/2] clk: fixed-factor: Convert into a module platform driver

2016-06-29 Thread Ricardo Ribalda Delgado
Hi again On Wed, Jun 29, 2016 at 10:07 AM, Ricardo Ribalda Delgado wrote: > - I can send it as a proper patch if you prefer tat. Just realised how bad the code is treated by gmail. You can navigate more easily through the code here: https://github.com/ribalda/linux/tree/clk-platform

Re: [PATCH v3 1/2] clk: fixed-factor: Convert into a module platform driver

2016-06-29 Thread Ricardo Ribalda Delgado
Hi Stephen On Tue, Jun 28, 2016 at 8:04 PM, Stephen Boyd wrote: > Almost, except that this flag should be set in the common clk > framework and not in each driver. The large majority of cases > will want that. Only a few will want to clear it, and then we can > hide that

Re: [PATCH v3 1/2] clk: fixed-factor: Convert into a module platform driver

2016-06-29 Thread Ricardo Ribalda Delgado
Hi Stephen On Tue, Jun 28, 2016 at 8:04 PM, Stephen Boyd wrote: > Almost, except that this flag should be set in the common clk > framework and not in each driver. The large majority of cases > will want that. Only a few will want to clear it, and then we can > hide that fact by having a

Re: [PATCH v3 1/2] clk: fixed-factor: Convert into a module platform driver

2016-06-28 Thread Ricardo Ribalda Delgado
Ping? On Tue, Jun 21, 2016 at 11:01 AM, Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> wrote: > Adds support for fixed-factor clock providers which have not been > enabled via of_clk_init(). > > This is required by Device trees overlays that introduce clocks > prov

Re: [PATCH v3 1/2] clk: fixed-factor: Convert into a module platform driver

2016-06-28 Thread Ricardo Ribalda Delgado
Ping? On Tue, Jun 21, 2016 at 11:01 AM, Ricardo Ribalda Delgado wrote: > Adds support for fixed-factor clock providers which have not been > enabled via of_clk_init(). > > This is required by Device trees overlays that introduce clocks > providers. > > Signed-off-by: Ri

<    3   4   5   6   7   8   9   10   11   12   >