[PATCH] [media] vim2m: return error if driver registration fails

2015-12-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/vim2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vim2m.c b/drivers/me

[PATCH 7/8] [media] rcar-vin: enable Gen3

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/Kconfig | 2 +- drivers/media/platform/rcar-vin/rcar-core.c | 1 + 2 files changed, 2 insertions(+), 1 delet

[PATCH 3/8] media: rcar-vin: add DV timings support

2016-05-25 Thread Niklas Söderlund
From: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Adds ioctls DV_TIMINGS_CAP, ENUM_DV_TIMINGS, G_DV_TIMINGS, S_DV_TIMINGS, and QUERY_DV_TIMINGS. Signed-off-by: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.s

[PATCH 6/8] [media] rcar-vin: add shared subdevice groups

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> This is done to prepare for Gen3 support where there are more than one subdevice and the usage of them are complex and can be shared between multiple rcar-vin instances. There are a few trouble areas with Gen3 that needs to be

[PATCH 8/8] [media] rcar-vin: add Gen2 and Gen3 fallback compatibility strings

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> These are present in the soc-camera version of this driver and it's time to add them to this driver as well. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rca

[PATCH 5/8] [media] rcar-vin: add Gen3 HW registers

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Add the register needed to work with Gen3 hardware. This patch just adds the logic for how to work with the Gen3 hardware. More work is required to enable the subdevice structure needed to support capturing. Signed-off-by:

[PATCH 4/8] [media] rcar-vin: allow subdevices to be bound late

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> This is done to prepare for Gen3 support where there are more than one subdevice and the usage of them are complex. There is a need to be able to change which subdevices are involved in capturing during runtime (but not

[PATCH 0/8] rcar-vin: Enable Gen3 support

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Hi, This series enable Gen3 support for the rcar-vin driver. It is based on top of the media_tree: git://linuxtv.org/media_tree.git master And it depends on the first rcar-vin patch at which I hope soon will enter the medi

[PATCH 1/8] media: rcar-vin: pad-aware driver initialisation

2016-05-25 Thread Niklas Söderlund
ewrite] Signed-off-by: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 16 drivers/media/platform/rcar-vin/rcar-vin.h | 2 ++ 2 files changed, 18 inser

[PATCH 2/8] media: rcar_vin: Use correct pad number in try_fmt

2016-05-25 Thread Niklas Söderlund
lor <rob.tay...@codethink.co.uk> Acked-by: Hans Verkuil <hans.verk...@cisco.com> [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vi

Re: [PATCH 8/8] [media] rcar-vin: add Gen2 and Gen3 fallback compatibility strings

2016-05-27 Thread Niklas Söderlund
Hi Sergei, On 2016-05-25 22:36:02 +0300, Sergei Shtylyov wrote: > On 05/25/2016 10:10 PM, Niklas Söderlund wrote: > > > From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> > > > > These are present in the soc-camera version of this driver and it's time

[PATCH 2/2] [media] v4l: subdev: move s_stream from v4l2_subdev_video_ops to v4l2_subdev_pad_ops

2016-06-21 Thread Niklas Söderlund
from struct v4l2_subdev_video_ops to struct v4l2_subdev_pad_ops. It also updates all users of s_stream to use the new function with pad number 0. Suggested-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se>

[PATCH 0/2] move s_stream from v4l2_subdev_video_ops to move s_stream from v4l2_subdev_pad_ops

2016-06-21 Thread Niklas Söderlund
); @@ expression e1, e2; symbol video, pad, s_stream; @@ -cx25840_call(e1, video, s_stream, e2); +cx25840_call(e1, pad, s_stream, 0, e2); >>>>cut<<<< Niklas Söderlund (2): [media] v4l: vsp1: Split pad operations between rpf and wpf [media] v4l: subdev: move s_stream from

[PATCH 1/2] [media] v4l: vsp1: Split pad operations between rpf and wpf

2016-06-21 Thread Niklas Söderlund
ed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/vsp1/vsp1_rpf.c | 12 +- drivers/media/platform/vsp1/vsp1_rwpf.c | 40 + drivers/media/platform/vsp1/vsp1_rwpf.h | 20 + drivers/media/p

[PATCH] [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver

2016-06-27 Thread Niklas Söderlund
to grab video (rcar-vin for Gen3, rcar-cis2 and adv7482). https://git.ragnatech.se/linux rcar-vin-gen3 Niklas Söderlund (1): [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver .../devicetree/bindings/media/rcar-csi2.txt| 79 +++ drivers/media/platform/rcar-vin/Kconfig

[PATCH] [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver

2016-06-27 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car MIPI CSI-2 interface. The driver supports the rcar-vin driver on R-Car Gen3 SoCs where a separate driver is needed to receive CSI-2. Driver is based on a prototype by Koji Matsuoka in the Renesas BSP. Signed-off-by: Niklas Söderlund <niklas.soderlund+r

[RFC 2/2] [media] i2c: adv7482: add adv7482 driver

2016-06-27 Thread Niklas Söderlund
This patch adds basic support for the ADV7482. It can output the HDMI source on the TXA sink and any AIN source on the TXB sink. Driver is based on a prototype by Koji Matsuoka in the Renesas BSP. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- .../devi

[RFC 1/2] media: entity: Add has_route entity operation

2016-06-27 Thread Niklas Söderlund
com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- include/media/media-entity.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index cbb266f..c4b2dca 100644 --- a/include/media/media-entity.h +

[RFC 0/2] [media] i2c: adv7482: add adv7482 driver

2016-06-27 Thread Niklas Söderlund
: entity: Add has_route entity operation Niklas Söderlund (1): [media] i2c: adv7482: add adv7482 driver .../devicetree/bindings/media/i2c/adv7482.txt | 62 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile |1 + drivers

[v4l-utils PATCH] libv4lconvert: Add support for V4L2_PIX_FMT_NV16

2016-03-11 Thread Niklas Söderlund
NV16 are two-plane versions of the YUV 4:2:2 format (V4L2_PIX_FMT_YUVU). Support it by merging the two planes into a one YUVU plane and falling through to the V4L2_PIX_FMT_YUVU code path. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- I'm sorry this is

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-03-11 Thread Niklas Söderlund
On 2016-03-11 12:16:30 +0100, Hans Verkuil wrote: > On 03/11/2016 12:03 PM, Niklas Söderlund wrote: > > Hi Hans, > > > > On 2016-03-11 09:26:48 +0100, Hans Verkuil wrote: > >> Hi Niklas, > >> > >> On 02/29/2016 10:52 AM, Hans Verkuil wrote: > >

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-03-11 Thread Niklas Söderlund
On 2016-03-11 22:04:17 +0100, Hans Verkuil wrote: > On 03/11/2016 09:55 PM, Niklas Söderlund wrote: > > On 2016-03-11 12:16:30 +0100, Hans Verkuil wrote: > >> On 03/11/2016 12:03 PM, Niklas Söderlund wrote: > >>> Hi Hans, > >>> > >>> On 20

[v4l-utils PATCHv2] libv4lconvert: Add support for V4L2_PIX_FMT_{NV16,NV61}

2016-03-11 Thread Niklas Söderlund
NV16 and NV61 are two-plane versions of the YUV 4:2:2 formats YUYV and YVYU. Support both formats by merging the two planes into a one and falling through to the V4L2_PIX_FMT_{YUYV,YVYU} code path. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- I'm

Re: [PATCH 1/2] v4l2-ioctl: simplify code

2016-03-14 Thread Niklas Söderlund
AULT; > > - ret = ops->vidioc_g_selection(file, fh, ); > - if (ret) > - return ret; > - p->defrect = s.r; > - } > + ret = ops->vidioc_g_selection(file, fh, ); > + if (ret) > + re

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-03-11 Thread Niklas Söderlund
either, or more accurate I get the same output broken rendering in qv4l2. What would you say is better drop NV16 support form the driver or keep it as is since it is compatible with the soc_camera drivers implementation? I would like to keep it in the driver for now since it at least works as

Re: [PATCH 1/2] v4l2-ioctl: simplify code

2016-03-14 Thread Niklas Söderlund
On 2016-03-14 13:52:17 +0100, Hans Verkuil wrote: > On 03/14/2016 01:42 PM, Niklas Söderlund wrote: > > Hi Hans, > > > > On 2016-02-29 11:16:39 +0100, Hans Verkuil wrote: > >> From: Hans Verkuil <hans.verk...@cisco.com> > >> > >> Instead o

Re: [PATCH 2/2] v4l2-ioctl: improve cropcap handling

2016-03-14 Thread Niklas Söderlund
Reviewed-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> On 2016-02-29 11:16:40 +0100, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > If cropcap is implemented, then call it first to fill in the pixel > aspect ratio. Don't return i

[PATCHv4] [media] rcar-vin: add Renesas R-Car VIN driver

2016-04-12 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car VIN driver that do not depend on soc_camera. The driver is heavily based on its predecessor and aims to replace it. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- The driver is tested on Koelsch and can do streaming using

Re: [PATCH/RFC 0/4] media: soc_camera: rcar_vin: Add UDS and NV16 scaling support

2016-03-02 Thread Niklas Söderlund
; >> > >> Yoshihiko Mori (1): > >> media: soc_camera: rcar_vin: Add UDS support > >> > >> drivers/media/platform/soc_camera/rcar_vin.c | 220 > >> ++- > >> 1 file changed, 184 insertions(+), 36 deletions(-) > >> > > -- Regards, Niklas Söderlund -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCHv3] [media] rcar-vin: add Renesas R-Car VIN driver

2016-04-02 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car VIN driver that do not depend on soc_camera. The driver is heavily based on its predecessor and aims to replace it. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- The driver is tested on Koelsch and can do streaming using

[PATCH 0/3] [media] adv7180: Add more operations

2016-04-02 Thread Niklas Söderlund
this series. Niklas Söderlund (3): [media] adv7180: Add g_std operation [media] adv7180: Add cropcap operation [media] adv7180: Add g_tvnorms operation drivers/media/i2c/adv7180.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) -- 2.7.4

[PATCH 3/3] [media] adv7180: Add g_tvnorms operation

2016-04-02 Thread Niklas Söderlund
The ADV7180 supports NTSC, PAL and SECAM. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/i2c/adv7180.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 8

[PATCH 2/3] [media] adv7180: Add cropcap operation

2016-04-02 Thread Niklas Söderlund
Add support to get the pixel aspect ratio depending on the current standard (50 vs 60 Hz). Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/i2c/adv7180.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/media/i2c/adv71

[PATCH 1/3] [media] adv7180: Add g_std operation

2016-04-02 Thread Niklas Söderlund
Add support to get the standard to the adv7180 driver. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/i2c/adv7180.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index f

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-04-02 Thread Niklas Söderlund
y the vb2 > ops and the interrupt handler. > > I think that should make the driver code a lot easier to navigate. > > On 02/24/2016 03:58 AM, Niklas Söderlund wrote: > > A V4L2 driver for Renesas R-Car VIN driver that do not depend on > > soc_camera. The driver

Re: [PATCH 1/6] adv7180: fix broken standards handling

2016-04-22 Thread Niklas Söderlund
Hi Hans, Tested-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> On 2016-04-22 15:03:37 +0200, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > The adv7180 attempts to autodetect the standard. Unfortunately this > is seriously broken.

[PATCHv6] [media] rcar-vin: add Renesas R-Car VIN driver

2016-04-26 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car VIN driver that do not depend on soc_camera. The driver is heavily based on its predecessor and aims to replace it. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- The patched is based on and depends on patches from the media_tre

Re: [PATCH 6/6] rcar-vin: failed start_streaming didn't call s_stream(0)

2016-04-22 Thread Niklas Söderlund
Hi Hans, Acked-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> On 2016-04-22 15:03:42 +0200, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > This can leave adv7180 in an inconsistent state > > Signed-off-by: Hans Verkuil <hans.v

Re: [PATCH 3/6] rcar-vin: support the source change event and fix s_std

2016-04-22 Thread Niklas Söderlund
hat was never updated. > > Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> > Cc: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> > Cc: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> > --- > drivers/media/platform/rcar-vin/rcar-v4l2.c | 48 >

[PATCHv5] [media] rcar-vin: add Renesas R-Car VIN driver

2016-04-21 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car VIN driver that do not depend on soc_camera. The driver is heavily based on its predecessor and aims to replace it. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- The patched is based on and depends on patches from the media_tre

Re: [PATCHv4] [media] rcar-vin: add Renesas R-Car VIN driver

2016-04-21 Thread Niklas Söderlund
On 2016-04-21 08:55:46 +0200, Hans Verkuil wrote: > On 04/12/2016 04:33 PM, Niklas Söderlund wrote: > > +static void rect_set_min_size(struct v4l2_rect *r, > > + const struct v4l2_rect *min_size) > > +{ > > + if (r->width < min_size

Re: [PATCH] rcar-vin: add R-Car gen2 fallback compatibility string

2016-07-26 Thread Niklas Söderlund
On 2016-07-25 22:19:33 +0300, Sergei Shtylyov wrote: > Such fallback string is present in the 'soc_camera' version of the R-Car VIN > driver, so need to add it here as well... > > Signed-off-by: Sergei Shtylyov <sergei.shtyl...@cogentembedded.com> Acked-by: Niklas Söderlund

Re: [PATCH 6/6] media: adv7180: fix field type

2016-07-29 Thread Niklas Söderlund
On 2016-07-29 12:32:30 -0700, Steve Longerbeam wrote: > > On 07/29/2016 12:10 PM, Sergei Shtylyov wrote: > > On 07/29/2016 08:40 PM, Niklas Söderlund wrote: > > > > > From: Steve Longerbeam <slongerb...@gmail.com> > > > > > > The ADV7180 and A

Re: [PATCH 4/6] media: rcar-vin: add support for V4L2_FIELD_ALTERNATE

2016-08-01 Thread Niklas Söderlund
Hi Sergei, On 2016-07-31 00:55:04 +0300, Sergei Shtylyov wrote: > Hello. > > On 07/29/2016 08:40 PM, Niklas Söderlund wrote: > > > The HW can capture both ODD and EVEN fields in separate buffers so it's > > possible to support this field mode. > > >

Re: [PATCH 1/6] media: rcar-vin: allow field to be changed

2016-08-01 Thread Niklas Söderlund
Hi Sergei, Thanks for testing! On 2016-07-30 00:04:33 +0300, Sergei Shtylyov wrote: > On 07/29/2016 08:40 PM, Niklas Söderlund wrote: > > > The driver forced whatever field was set by the source subdevice to be > > used. This patch allows the user to change from

Re: [PATCH 4/6] media: rcar-vin: add support for V4L2_FIELD_ALTERNATE

2016-08-02 Thread Niklas Söderlund
On 2016-08-02 12:39:40 +0200, Hans Verkuil wrote: > > > On 08/02/2016 12:32 PM, Niklas Söderlund wrote: > > Hi Hans, > > > > Thanks for your feedback. > > > > On 2016-08-02 11:41:15 +0200, Hans Verkuil wrote: > >> > >> > >>

Re: [PATCH 4/6] media: rcar-vin: add support for V4L2_FIELD_ALTERNATE

2016-08-02 Thread Niklas Söderlund
Hi Hans, Thanks for your feedback. On 2016-08-02 11:41:15 +0200, Hans Verkuil wrote: > > > On 07/29/2016 07:40 PM, Niklas Söderlund wrote: > > The HW can capture both ODD and EVEN fields in separate buffers so it's > > possible to support this field mode. > >

[PATCHv2 5/7] media: rcar-vin: add support for V4L2_FIELD_ALTERNATE

2016-08-02 Thread Niklas Söderlund
. The driver will only change the field type if the subdevice implements G_STD, if not it will keep the default at V4L2_FIELD_ALTERNATE. The user can always explicitly ask for V4L2_FIELD_ALTERNATE in S_FTM and the driver will use that field format. Signed-off-by: Niklas Söderlund <niklas.soderlund+r

[PATCHv2 7/7] [PATCHv5] media: adv7180: fix field type

2016-08-02 Thread Niklas Söderlund
ERNATE. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> [Niklas: changed filed type from V4L2_FIELD_SEQ_{TB,BT} to V4L2_FIELD_ALTERNATE] Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- v5: - Readd patch version and changelog which was

[PATCHv2 1/7] media: rcar-vin: make V4L2_FIELD_INTERLACED standard dependent

2016-08-02 Thread Niklas Söderlund
as V4L2_FIELD_INTERLACED_BT if not as V4L2_FIELD_INTERLACED_TB. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-dma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-dma.c b/drivers/media/pl

[PATCHv2 6/7] media: adv7180: fill in mbus format in set_fmt

2016-08-02 Thread Niklas Söderlund
If the V4L2_SUBDEV_FORMAT_TRY is used in set_fmt the width, height etc would not be filled. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/i2c/adv7180.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/a

[PATCHv2 0/7] Fix adv7180 and rcar-vin field handling

2016-08-02 Thread Niklas Söderlund
Total: 172, Succeeded: 172, Failed: 0, Warnings: 0 Niklas Söderlund (6): media: rcar-vin: make V4L2_FIELD_INTERLACED standard dependent media: rcar-vin: allow field to be changed media: rcar-vin: fix bug in scaling media: rcar-vin: fix height for TOP and BOTTOM fields media: rcar-vin: add

[PATCHv2 4/7] media: rcar-vin: fix height for TOP and BOTTOM fields

2016-08-02 Thread Niklas Söderlund
The height used for V4L2_FIELD_TOP and V4L2_FIELD_BOTTOM where wrong. The frames only contain one filed so the height should be half of the frame. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.

[PATCHv2 3/7] media: rcar-vin: fix bug in scaling

2016-08-02 Thread Niklas Söderlund
. This patch breaks out the resetting of the crop, compose and format to separate functions so the error wont creep back. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 105 ++-- 1 file chang

[PATCHv2 2/7] media: rcar-vin: allow field to be changed

2016-08-02 Thread Niklas Söderlund
The driver forced whatever field was set by the source subdevice to be used. This patch allows the user to change from the default field. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 9 + 1 file chan

Re: [PATCHv2 7/7] [PATCHv5] media: adv7180: fix field type

2016-08-03 Thread Niklas Söderlund
On 2016-08-03 10:14:45 -0700, Steve Longerbeam wrote: > On 08/03/2016 09:58 AM, Lars-Peter Clausen wrote: > > On 08/03/2016 06:55 PM, Steve Longerbeam wrote: > >> On 08/03/2016 06:21 AM, Niklas Söderlund wrote: > >>> On 2016-08-02 17:00:07 +0200, Lars-Peter Clausen wr

Re: [PATCHv2 7/7] [PATCHv5] media: adv7180: fix field type

2016-08-03 Thread Niklas Söderlund
n also ofc make the change suggested by Lars if you prefer, but then I want your blessing to do so. I have already changed so much of your original patch :-) > > > + else > > + format->format.field = V4L2_FIELD_ALTERNATE; > > break; > > } &g

Re: [PATCHv2 5/7] media: rcar-vin: add support for V4L2_FIELD_ALTERNATE

2016-08-03 Thread Niklas Söderlund
On 2016-08-03 16:22:22 +0300, Sergei Shtylyov wrote: > Hello. > > On 08/02/2016 05:51 PM, Niklas Söderlund wrote: > > > The HW can capture both ODD and EVEN fields in separate buffers so it's > > possible to support V4L2_FIELD_ALTERNATE. This patch add s

[PATCHv2] [PATCH] [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver

2016-07-19 Thread Niklas Söderlund
Hi all, This patch adds support for the R-Car MIPI CSI-2 interface. And is based on top of the media_tree. Changes since v1: - Drop dependency on a pad aware s_stream operation. - Use the DT bindings format "renesas,-", thanks Geert for pointing this out. Niklas Söderlund (1)

[PATCHv2] [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver

2016-07-19 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car MIPI CSI-2 interface. The driver supports the rcar-vin driver on R-Car Gen3 SoCs where a separate driver is needed to receive CSI-2. Driver is based on a prototype by Koji Matsuoka in the Renesas BSP. Signed-off-by: Niklas Söderlund <niklas.soderlund+r

[PATCHv2 15/16] [media] rcar-vin: enable Gen3

2016-07-19 Thread Niklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/Kconfig | 2 +- drivers/media/platform/rcar-vin/rcar-core.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/rcar-vin/Kconfig b/drivers

[PATCHv2 12/16] [media] rcar-vin: allow subdevices to be bound late

2016-07-19 Thread Niklas Söderlund
however solve the issue of bind/unbind of subdevices and still remaining operational. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 106 -- drivers/media/platform/rcar-vin/rcar-dma.c | 7 - drivers/media/platfor

[PATCHv2 13/16] [media] rcar-vin: add Gen3 HW registers

2016-07-19 Thread Niklas Söderlund
Add the register needed to work with Gen3 hardware. This patch just adds the logic for how to work with the Gen3 hardware. More work is required to enable the subdevice structure needed to support capturing. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- d

[PATCHv2 05/16] [media] rcar-vin: do not use v4l2_device_call_until_err()

2016-07-19 Thread Niklas Söderlund
a nitpicking review comment since we are fixing other issues here. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/rcar-vi

[PATCHv2 00/16] rcar-vin: Enable Gen3 support

2016-07-19 Thread Niklas Söderlund
has_route entity operation media: entity: Add media_entity_has_route() function Niklas Söderlund (14): [media] rcar-vin: add legacy mode for wrong media bus formats [media] rcar-vin: return correct error from platform_get_irq [media] rcar-vin: do not use v4l2_device_call_until_err

[PATCHv2 06/16] [media] rcar-vin: cosmetic clean up in preparation for Gen3

2016-07-19 Thread Niklas Söderlund
. - Fix indentation errors in rcar-v4l2.c which for some reason had bad indentations at some locations. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 46 ++-- drivers/media/platform/rcar-vin/rcar-

[PATCHv2 09/16] [media] rcar-vin: rework how subdeivce is found and bound

2016-07-19 Thread Niklas Söderlund
, simplifies the parsing of the DT graph and add checks to the v4l2 callbacks. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 232 +--- drivers/media/platform/rcar-vin/rcar-vin.h | 8 +- 2 files change

[PATCHv2 10/16] [media] rcar-vin: move media bus information to struct rvin_graph_entity

2016-07-19 Thread Niklas Söderlund
to a video source. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 12 ++-- drivers/media/platform/rcar-vin/rcar-dma.c | 10 +- drivers/media/platform/rcar-vin/rcar-v4l2.c | 2 +- drivers/media/platform/rc

[PATCHv2 08/16] [media] rcar-vin: move chip check for pixelformat support

2016-07-19 Thread Niklas Söderlund
The check for if the specific pixelformat is supported on the current chip should happen in VIDIOC_S_FMT and VIDIOC_TRY_FMT and not when we try to setup the hardware for streaming. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vi

[PATCHv2 07/16] [media] rcar-vin: add dependency on MEDIA_CONTROLLER

2016-07-19 Thread Niklas Söderlund
This is done in preparation for Gen3 support where media controller support will be mandatory for the driver. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/Kconfig | 2 +- drivers/media/platform/rcar-vin/rcar-v4l2.c | 7 +---

[PATCHv2 14/16] [media] rcar-vin: add shared subdevice groups

2016-07-19 Thread Niklas Söderlund
as a whole are that it's not allowed to open a video device if the current chsel value puts its input on a CSI-2 node that is not available. An attempt to do so will result in a -EBUSY error. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- .../devicetree/bindings

[PATCHv2 01/16] media: entity: Add has_route entity operation

2016-07-19 Thread Niklas Söderlund
com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- include/media/media-entity.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index cbb266f..c4b2dca 100644 --- a/include/media/media-entity.h +

[PATCHv2 02/16] media: entity: Add media_entity_has_route() function

2016-07-19 Thread Niklas Söderlund
From: Laurent Pinchart <laurent.pinch...@ideasonboard.com> This is a wrapper around the media entity has_route operation. Signed-off-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Michal Simek <michal.si...@xilinx.com> Signed-off-by: Niklas Söderlund

[PATCHv2 16/16] [media] rcar-vin: add Gen2 and Gen3 fallback compatibility strings

2016-07-19 Thread Niklas Söderlund
These are present in the soc-camera version of this driver and it's time to add them to this driver as well. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCHv2 11/16] [media] rcar-vin: add abstraction layer to interact with subdevices

2016-07-19 Thread Niklas Söderlund
source. This patch just adds and replace the v4l2 calls with there abstraction layer counter part, there are still only one possible input source. This is done to prepare for Gen3 support where there are more then one possible subdevices to chose from at runtime. Signed-off-by: Niklas Söderlund

[PATCHv2 04/16] [media] rcar-vin: return correct error from platform_get_irq

2016-07-19 Thread Niklas Söderlund
Fix a error from the original driver where the wrong error code is returned if the driver fails to get a IRQ number from platform_get_irq(). Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 2 +- 1 file changed, 1 ins

[PATCHv2 03/16] [media] rcar-vin: add legacy mode for wrong media bus formats

2016-07-19 Thread Niklas Söderlund
be removed sometime in the future. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 39 +++-- drivers/media/platform/rcar-vin/rcar-dma.c | 4 +-- 2 files changed, 39 insertions(+), 4 deletions(-)

Re: [PATCH] [media] rcar-vin: add legacy mode for wrong media bus formats

2016-07-20 Thread Niklas Söderlund
Hi Hans, Thanks for your feedback. On 2016-07-20 11:48:40 +0200, Hans Verkuil wrote: > On 07/08/2016 12:43 PM, Niklas Söderlund wrote: > > A recent bugfix to adv7180 brought to light that the rcar-vin driver are > > looking for the wrong media bus format. It was looking fo

Re: [PATCH 07/11] media: adv7180: change mbus format to UYVY

2016-07-08 Thread Niklas Söderlund
reak the Renesas R-Car2 Koelsch board which uses the adv7180. If that can be arranged Acked-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> > > But otherwise > > Acked-by: Lars-Peter Clausen <l...@metafoo.de> > > > --- > > drivers/media/i

[PATCH] [media] rcar-vin: add legacy mode for wrong media bus formats

2016-07-08 Thread Niklas Söderlund
be removed sometime in the future. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 39 +++-- drivers/media/platform/rcar-vin/rcar-dma.c | 4 +-- 2 files changed, 39 insertions(+), 4 deletions(-)

Re: [PATCH v5 4/4] rcar-vin: implement EDID control ioctls

2016-07-06 Thread Niklas Söderlund
= rvin_querystd, > .vidioc_g_std = rvin_g_std, > .vidioc_s_std = rvin_s_std, > -- > 2.7.4 > -- Regards, Niklas Söderlund -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/3] soc-camera/rcar-vin: remove obsolete driver

2016-08-01 Thread Niklas Söderlund
t; > Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> > > Cc: Guennadi Liakhovetski <g.liakhovet...@gmx.de> > > Cc: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> > > I'm all for removal of dead code :-) > > Acked-by: Laurent Pinchart <

[PATCH 1/6] media: rcar-vin: allow field to be changed

2016-07-29 Thread Niklas Söderlund
The driver forced whatever field was set by the source subdevice to be used. This patch allows the user to change from the default field. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 5 + 1 file chan

[PATCH 2/6] media: rcar-vin: fix bug in scaling

2016-07-29 Thread Niklas Söderlund
. This patch breaks out the resetting of the crop, compose and format to separate functions so the error wont creep back. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 105 ++-- 1 file chang

[PATCH 4/6] media: rcar-vin: add support for V4L2_FIELD_ALTERNATE

2016-07-29 Thread Niklas Söderlund
The HW can capture both ODD and EVEN fields in separate buffers so it's possible to support this field mode. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-dma.c | 26 -- drivers/media/platform/rc

[PATCH 6/6] media: adv7180: fix field type

2016-07-29 Thread Niklas Söderlund
ERNATE. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> [Niklas: changed filed type from V4L2_FIELD_SEQ_{TB,BT} to V4L2_FIELD_ALTERNATE] Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/i2c/adv7180.c | 15 +++

[PATCH 0/6] Fix adv7180 and rcar-vin field handling

2016-07-29 Thread Niklas Söderlund
know. Niklas Söderlund (5): media: rcar-vin: allow field to be changed media: rcar-vin: fix bug in scaling media: rcar-vin: fix height for TOP and BOTTOM fields media: rcar-vin: add support for V4L2_FIELD_ALTERNATE media: adv7180: fill in mbus format in set_fmt Steve Longerbeam (1

[PATCH 3/6] media: rcar-vin: fix height for TOP and BOTTOM fields

2016-07-29 Thread Niklas Söderlund
The height used for V4L2_FIELD_TOP and V4L2_FIELD_BOTTOM where wrong. The frames only contain one filed so the height should be half of the frame. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.

[PATCH 5/6] media: adv7180: fill in mbus format in set_fmt

2016-07-29 Thread Niklas Söderlund
If the V4L2_SUBDEV_FORMAT_TRY is used in set_fmt the width, height etc would not be filled. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/i2c/adv7180.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/a

[PATCHv3 04/10] [media] rcar-vin: rename entity to digital

2016-08-15 Thread Niklas Söderlund
When Gen3 support is added to the driver more then one possible video source entity will be possible. Knowing that the name entity is a bad one, rename it to digital since it will deal with the digital input source. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech

[PATCHv3 08/10] [media] rcar-vin: move chip check for pixelformat support

2016-08-15 Thread Niklas Söderlund
The check for if the specific pixelformat is supported on the current chip should happen in VIDIOC_S_FMT and VIDIOC_TRY_FMT and not when we try to setup the hardware for streaming. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vi

[PATCHv3 02/10] [media] rcar-vin: reduce indentation in rvin_s_dv_timings()

2016-08-15 Thread Niklas Söderlund
Align style with the rest of the driver. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform/rcar-vin/rca

[PATCHv3 09/10] [media] rcar-vin: rework how subdeivce is found and bound

2016-08-15 Thread Niklas Söderlund
, simplifies the parsing of the DT graph and add checks to the v4l2 callbacks. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 232 +--- drivers/media/platform/rcar-vin/rcar-vin.h | 8 +- 2 files change

[PATCHv3 10/10] [media] rcar-vin: move media bus information to struct rvin_graph_entity

2016-08-15 Thread Niklas Söderlund
to a video source. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 12 ++-- drivers/media/platform/rcar-vin/rcar-dma.c | 10 +- drivers/media/platform/rcar-vin/rcar-v4l2.c | 2 +- drivers/media/platform/rc

[PATCHv3 07/10] [media] rcar-vin: add dependency on MEDIA_CONTROLLER

2016-08-15 Thread Niklas Söderlund
This is done in preparation for Gen3 support where media controller support will be mandatory for the driver. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/Kconfig | 2 +- drivers/media/platform/rcar-vin/rcar-v4l2.c | 7 +---

[PATCHv3 01/10] [media] rcar-vin: fix indentation errors in rcar-v4l2.c

2016-08-15 Thread Niklas Söderlund
Fix broken indentations and line breaks. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 46 + 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/drivers/media/platform/rc

[PATCHv3 05/10] [media] rcar-vin: return correct error from platform_get_irq()

2016-08-15 Thread Niklas Söderlund
Fix a error from the original driver where the wrong error code is returned if the driver fails to get a IRQ number from platform_get_irq(). Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-core.c | 4 ++-- 1 file chan

[PATCHv3 00/10] rcar-vin: clean up and prepare for Gen3

2016-08-15 Thread Niklas Söderlund
. Niklas Söderlund (10): [media] rcar-vin: fix indentation errors in rcar-v4l2.c [media] rcar-vin: reduce indentation in rvin_s_dv_timings() [media] rcar-vin: arrange enum chip_id in chronological order [media] rcar-vin: rename entity to digital [media] rcar-vin: return correct error from

[PATCHv3 06/10] [media] rcar-vin: do not use v4l2_device_call_until_err()

2016-08-15 Thread Niklas Söderlund
a nitpicking review comment since we are fixing other issues here. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/rcar-vi

[PATCHv3 03/10] [media] rcar-vin: arrange enum chip_id in chronological order

2016-08-15 Thread Niklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-vin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/rcar-vin/rcar-vin.h b/drivers/media/platform/rcar-vin/rcar-vin.h index 3

  1   2   3   4   5   >