Re: RFC: soc_camera, rcar_vin, and adv7604

2014-10-15 Thread William Towle
. (William Towle; william.to...@codethink.co.uk) -- 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

[PATCH 2/2] media: rcar_vin: move buffer management to .stop_streaming handler

2015-01-26 Thread William Towle
if omitted; these functions and references were removed. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 62 ++ 1 file changed, 13 insertions(+), 49 deletions(-) diff --git a/drivers/media/platform/soc_camera

rcar_vin video buffer management fixes, v3

2015-01-26 Thread William Towle
This is version 3 of the hotfix patchset for video support on Lager, in which we aim to fix the kernel's warnings about unexpected buffer states. It replaces the following series: http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/87009 This version of the

[PATCH 1/2] media: rcar_vin: helper function for streaming stop

2015-01-26 Thread William Towle
refactors code out of rcar_vin_videobuf_release() and into rcar_vin_wait_stop_streaming(), and ensures there are calls in places where we need to know that capturing has finished. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Signed-off-by: William Towle william.to...@codethink.co.uk

Re: [PATCH 4/8] WmT: m-5mols_core style pad handling for adv7604

2015-02-04 Thread William Towle
Hi Jean-Michel and others, On Thu, 29 Jan 2015, Jean-Michel Hautbois wrote: First of all, this subject puzzles me... What means WmT ?? That's just my initialism, to differentiate my work from that of colleagues'. I'll submit without those in due course (and SOBs). - fmt =

Re: [RFC PATCH 5/5] media: rcar_vin: move buffer management to .stop_streaming handler

2015-01-20 Thread William Towle
On Mon, 19 Jan 2015, Guennadi Liakhovetski wrote: On Mon, 19 Jan 2015, William Towle wrote: in the patchset Ben linked to above we think we have the appropriate loops: a for loop for queue_buf[], and list_for_each_safe() for anything left in priv-capture; this is consistent

Re: [RFC PATCH 5/5] media: rcar_vin: move buffer management to .stop_streaming handler

2015-01-19 Thread William Towle
On Mon, 19 Jan 2015, Guennadi Liakhovetski wrote: On Thu, 18 Dec 2014, Ben Hutchings wrote: Well, I thought that too. Will's submission from last week has that change: http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/87009 Anyway, yes, that looks better! But I would

[PATCH 2/2] media: rcar_vin: move buffer management to .stop_streaming handler

2015-01-16 Thread William Towle
the system cleans up after streaming stops. This fixes a problem with modification of buffers after their content has been cleared for passing to userspace. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 47 +- 1

[PATCH 1/2] media: rcar_vin: Fix race condition terminating stream

2015-01-16 Thread William Towle
has finished where this is critical. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 41 +- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git

[RFC PATCH 0/5] media: rcar_vin: Fixes for buffer management

2015-01-16 Thread William Towle
The following is a subset of our work in progress branch for video support on the Renesas Lager board, comprising hotfixes for video buffer management. We are successfully capturing single frames and video with the complete branch, and intend to follow up with stable patches from the branch

[PATCH 1/2] media: rcar_vin: helper function for streaming stop

2015-01-16 Thread William Towle
refactors code out of rcar_vin_videobuf_release() and into rcar_vin_wait_stop_streaming(), and ensures there are calls in places where we need to know that capturing has finished. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Signed-off-by: William Towle william.to...@codethink.co.uk

[PATCH 2/2] media: rcar_vin: move buffer management to .stop_streaming handler

2015-01-16 Thread William Towle
the system cleans up after streaming stops. This fixes a problem with modification of buffers after their content has been cleared for passing to userspace. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 47 +- 1

[PATCH 3/8] WmT: document adi,adv7612

2015-01-29 Thread William Towle
--- Documentation/devicetree/bindings/media/i2c/adv7604.txt |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/adv7604.txt b/Documentation/devicetree/bindings/media/i2c/adv7604.txt index bc50da2..1ca6e5a 100644 ---

RFC: supporting adv7604.c under soc_camera/rcar_vin

2015-01-29 Thread William Towle
The following constitutes parts of our rcar_vin development branch beyond the update to our hotfixes published earlier this month. Similarly, these patches are intended to the mainline 3.18 kernel. Further development is required, but we would like to highlight the following issues and discuss

[PATCH 6/8] WmT: adv7604 driver compatibility

2015-01-29 Thread William Towle
Add 'struct media_pad pad' member and suitable glue code, so that soc_camera/rcar_vin can become agnostic to whether an old or new- style driver (wrt pad API use) can sit underneath This version has been reworked to include appropriate constant and datatype names for kernel v3.18 ---

[PATCH 1/8] Add ability to read default input port from DT

2015-01-29 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk --- Documentation/devicetree/bindings/media/i2c/adv7604.txt |3 +++ drivers/media/i2c/adv7604.c |8 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH 8/8] WmT: dts/i vin0/adv7612 (HDMI)

2015-01-29 Thread William Towle
--- arch/arm/boot/dts/r8a7790-lager.dts | 51 +++ 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index be44493..c20b6cb 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts

[PATCH 2/8] adv7604.c: formats, default colourspace, and IRQs

2015-01-29 Thread William Towle
** for lx3.18.x+; from previous description ** The original adv7612-specific driver only contained formats meeting a certain specification; allowing the adv7612 chip to permit all the formats the adv7611 supports breaks this restriction and means that enum_mbus_code can end up containing values

[PATCH 5/8] media: rcar_vin: Add RGB888_1X24 input format support

2015-01-29 Thread William Towle
This adds V4L2_MBUS_FMT_RGB888_1X24 input format support which is used by the ADV7612 chip. Signed-off-by: Valentine Barshak valentine.bars...@cogentembedded.com --- URL:http://marc.info/?l=linux-shm=138002993417489q=raw FIXMEs required: - From: as per URL - adapted for lx3.18 by William

[PATCH 7/8] WmT: rcar_vin new ADV7612 support

2015-01-29 Thread William Towle
Add 'struct media_pad pad' member and suitable glue code, so that soc_camera/rcar_vin can become agnostic to whether an old or new- style driver (wrt pad API use) can sit underneath This version has been reworked to include appropriate constant and datatype names for kernel v3.18 --- ** this

Re: [Linux-kernel] RFC: supporting adv7604.c under soc_camera/rcar_vin

2015-03-25 Thread William Towle
Hello again all, Previously I promised to comment further on progress with our work supporting HDMI input on Lager. After studying commit 4c28078 [media] rcar_vin: Add scaling support on Hans' subdev2 branch, I have come to the conclusion that the following is actually reasonable behaviour

Re: [Linux-kernel] RFC: supporting adv7604.c under soc_camera/rcar_vin

2015-03-05 Thread William Towle
On Wed, 4 Mar 2015, Hans Verkuil wrote: On 03/04/15 10:51, William Towle wrote: if (timings-pad = state-source_pad) return -EINVAL; It suffices to comment out this line, but clearly this is not ideal. Depending on the intended semantics, should it be filtering out all pad

Re: [Linux-kernel] RFC: supporting adv7604.c under soc_camera/rcar_vin

2015-03-04 Thread William Towle
Hi all, I would like to develop a point in my previous discussion based on new findings: On Thu, 29 Jan 2015, William Towle wrote: 3. Our third problem concerns detecting the resolution of the stream. Our code works with the obsoleted driver (adv761x.c) in place, but with our modifications

[PATCH 02/20] media: adv7180: add of match table

2015-05-21 Thread William Towle
From: Ben Dooks ben.do...@codethink.co.uk Add a proper of match id for use when the device is being bound via device tree, to avoid having to use the i2c old-style binding of the device. Signed-off-by: Ben Dooks ben.do...@codethink.co.uk Signed-off-by: William.Towle william.to...@codethink.co.uk

[PATCH 10/20] media: soc_camera: soc_scale_crop: Use correct pad when calling subdev try_fmt

2015-05-21 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Fix calls to subdev try_fmt to use correct pad. Fixes failures with subdevs that care about having the right pad number set. Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers

[PATCH 14/20] media: rcar_vin: Reject videobufs that are too small for current format

2015-05-21 Thread William Towle
In videobuf_setup reject buffers that are too small for the configured format. Fixes v4l2-complience issue. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c |3 +++ 1 file changed, 3

[PATCH 18/20] media: adv7604: Always query_dv_timings in adv76xx_fill_format

2015-05-21 Thread William Towle
Make sure we're always reporting the current format of the input. Fixes start of day bugs. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7604.c |4 1 file changed, 4 insertions(+) diff --git

[PATCH 06/20] ARM: shmobile: lager dts: specify default-input for ADV7612

2015-05-21 Thread William Towle
Set 'default-input' property for ADV7612. Enables image/video capture without the need to have userspace specifying routing. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Tested-by: William Towle william.to...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts |1 + 1 file

[PATCH 07/20] media: soc_camera: rcar_vin: Add BT.709 24-bit RGB888 input support

2015-05-21 Thread William Towle
From: Koji Matsuoka koji.matsuoka...@renesas.com Signed-off-by: Koji Matsuoka koji.matsuoka...@renesas.com Signed-off-by: Simon Horman horms+rene...@verge.net.au Signed-off-by: Yoshihiro Kaneko ykaneko0...@gmail.com Modified to use MEDIA_BUS_FMT_* constants Signed-off-by: William Towle

[PATCH 17/20] media: adv7604: Support V4L_FIELD_INTERLACED

2015-05-21 Thread William Towle
When hardware reports interlaced input, correctly set field to V4L_FIELD_INTERLACED ini adv76xx_fill_format. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7604.c |7 ++- 1 file changed, 6 insertions

[PATCH 11/20] media: soc_camera: Fill std field in enum_input

2015-05-21 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Fill in the std field from the video_device tvnorms field in enum_input. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |3 +++ 1 file

[PATCH 20/20] media: soc_camera: Add debugging for get_formats

2015-05-21 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Some helpful debugging for get_formats use, useful for debugging v4l2-compliance issues. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c

[PATCH 01/20] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2015-05-21 Thread William Towle
Adds DT entries for vin0_pins, adv7612 and vin0 Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 41 ++- 1 file changed, 40 insertions(+), 1 deletion

[PATCH 04/20] media: adv7604: document support for ADV7612 dual HDMI input decoder

2015-05-21 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk This documentation accompanies the patch adding support for the ADV7612 dual HDMI decoder / repeater chip. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- .../devicetree/bindings/media

[PATCH 09/20] media: rcar_vin: Use correct pad number in try_fmt

2015-05-21 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Fix rcar_vin_try_fmt to use the correct pad number when calling the subdev set_fmt. Previously pad number 0 was always used, resulting in EINVAL if the subdev cares about the pad number (e.g. ADV7612). Signed-off-by: William Towle Taylor rob.tay

[PATCH 15/20] media: rcar_vin: Don't advertise support for USERPTR

2015-05-21 Thread William Towle
rcar_vin requires physically contiguous buffer, so shouldn't advertise support for USERPTR. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 05/20] media: adv7604: ability to read default input port from DT

2015-05-21 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk Adds support to the adv7604 driver for specifying the default input port in the Device tree. If no value is provided, the driver will be unable to select an input without help from userspace. Tested-by: William Towle william.to...@codethink.co.uk

HDMI and Composite capture on Lager, for kernel 4.1

2015-05-21 Thread William Towle
This is our latest test branch for video support on Lager, ported to kernel 4.1 as per commit 9cae84b32dd52768cf2fd2fcb214c3f570676c4b ([media] DocBook/media: fix syntax error) on the media-tree master branch last week. Single frame and video capture is working with appropriate test cases for

[PATCH 12/20] media: soc_camera: Fix error reporting in expbuf

2015-05-21 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Remove unnecessary check and fix the error code for vb1 drivers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |8 ++-- 1 file changed,

[PATCH 08/20] media: soc_camera pad-aware driver initialisation

2015-05-21 Thread William Towle
Add detection of source pad number for drivers aware of the media controller API, so that soc_camera/rcar_vin can create device nodes to support a driver such as adv7604.c (for HDMI on Lager) underneath. Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay

[PATCH 13/20] media: soc_camera: v4l2-compliance fixes for querycap

2015-05-21 Thread William Towle
Fill in bus_info field and zero reserved field. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform

[PATCH 16/20] media: adv7180: Fix set_pad_format() passing wrong format

2015-05-21 Thread William Towle
Return a usable format (and resolution) from adv7180_set_pad_format() in the TRY_FORMAT case Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Tested-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7180.c |6 -- 1 file changed, 4 insertions(+), 2 deletions

[PATCH 03/20] media: adv7604: chip info and formats for ADV7612

2015-05-21 Thread William Towle
Add support for the ADV7612 chip as implemented on Renesas' Lager board to adv7604.c, including lists for formats/colourspace/timing selection and an IRQ handler. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7604.c | 83

[PATCH 19/20] media: rcar_vin: Clean up format debugging statements

2015-05-21 Thread William Towle
Pretty print fourcc and code in format debugging statements. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions

[PATCH 11/15] media: soc_camera: soc_scale_crop: Use correct pad number in try_fmt

2015-06-03 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Fix calls to subdev try_fmt to use correct pad. Fixes failures with subdevs that care about having the right pad number set. Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers

[PATCH 09/15] media: soc_camera pad-aware driver initialisation

2015-06-03 Thread William Towle
gains a dependency on CONFIG_MEDIA_CONTROLLER, in line with requirements for building the drivers associated with it. Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/Kconfig |1 + drivers

[PATCH 04/15] media: adv7604: chip info and formats for ADV7612

2015-06-03 Thread William Towle
Add support for the ADV7612 chip as implemented on Renesas' Lager board to adv7604.c, including lists for formats/colourspace/timing selection and an IRQ handler. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7604.c | 91

[PATCH 07/15] ARM: shmobile: lager dts: specify default-input for ADV7612

2015-06-03 Thread William Towle
Set 'default-input' property for ADV7612. Enables image/video capture without the need to have userspace specifying routing. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Tested-by: William Towle william.to...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts |1 + 1 file

[PATCH 03/15] media: adv7180: add of match table

2015-06-03 Thread William Towle
From: Ben Dooks ben.do...@codethink.co.uk Add a proper of match id for use when the device is being bound via device tree, to avoid having to use the i2c old-style binding of the device. Signed-off-by: Ben Dooks ben.do...@codethink.co.uk Signed-off-by: William.Towle william.to...@codethink.co.uk

[PATCH 14/15] media: soc_camera: fill in bus_info field

2015-06-03 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Adapt soc_camera_querycap() so that cap-bus_info is populated in addition to cap-driver. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c

HDMI and Composite capture on Lager, for kernel 4.1, version 3

2015-06-03 Thread William Towle
Version 3. Obsoletes version 2, as seen at: http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/91668 Key changes in this version: this has some reworking of the adv7604 driver probe and soc_camera initialisation functions. In addition, we give rcar_vin.c a

[PATCH 10/15] media: rcar_vin: Use correct pad number in try_fmt

2015-06-03 Thread William Towle
Fix rcar_vin_try_fmt to use the correct pad number when calling the subdev set_fmt. Previously pad number 0 was always used, resulting in EINVAL if the subdev cares about the pad number (e.g. ADV7612). Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay

[PATCH 01/15] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2015-06-03 Thread William Towle
Add DT entries for vin0, vin0_pins, and adv7612 Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 41 ++- 1 file changed, 40 insertions(+), 1 deletion

[PATCH 15/15] media: rcar_vin: Reject videobufs that are too small for current format

2015-06-03 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk In videobuf_setup reject buffers that are too small for the configured format. Fixes v4l2-complience issue. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform

[PATCH 06/15] media: adv7604: ability to read default input port from DT

2015-06-03 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk Adds support to the adv7604 driver for specifying the default input port in the Device tree. If no value is provided, the driver will be unable to select an input without help from userspace. Tested-by: William Towle william.to...@codethink.co.uk

[PATCH 12/15] media: soc_camera: Fill std field in enum_input

2015-06-03 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Fill in the std field from the video_device tvnorms field in enum_input. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |3 +++ 1 file

[PATCH 02/15] media: soc_camera: rcar_vin: Add BT.709 24-bit RGB888 input support

2015-06-03 Thread William Towle
* constants Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b

[PATCH 13/15] media: soc_camera: Fix error reporting in expbuf

2015-06-03 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Remove unnecessary check and fix the error code for vb1 drivers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |8 ++-- 1 file changed,

[PATCH 05/15] media: adv7604: document support for ADV7612 dual HDMI input decoder

2015-06-03 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk This documentation accompanies the patch adding support for the ADV7612 dual HDMI decoder / repeater chip. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- .../devicetree/bindings/media

[PATCH 08/15] v4l: subdev: Add pad config allocator and init

2015-06-03 Thread William Towle
From: Laurent Pinchart laurent.pinch...@linaro.org Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent

[PATCH 09/15] media: soc_camera pad-aware driver initialisation

2015-06-25 Thread William Towle
gains a dependency on CONFIG_MEDIA_CONTROLLER, in line with requirements for building the drivers associated with it. Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/Kconfig |1 + drivers

[PATCH 10/15] media: rcar_vin: Use correct pad number in try_fmt

2015-06-25 Thread William Towle
Fix rcar_vin_try_fmt's use of an inappropriate pad number when calling the subdev set_fmt function - for the ADV7612, IDs should be non-zero. Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera

[PATCH 02/15] media: soc_camera: rcar_vin: Add BT.709 24-bit RGB888 input support

2015-06-25 Thread William Towle
* constants Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk Acked-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/soc_camera/rcar_vin.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

[PATCH 07/15] ARM: shmobile: lager dts: specify default-input for ADV7612

2015-06-25 Thread William Towle
Set 'default-input' property for ADV7612. Enables image/video capture without the need to have userspace specifying routing. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Tested-by: William Towle william.to...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts |1 + 1 file

[PATCH 04/15] media: adv7604: chip info and formats for ADV7612

2015-06-25 Thread William Towle
Add support for the ADV7612 chip as implemented on Renesas' Lager board to adv7604.c, including lists for formats/colourspace/timing selection and an IRQ handler. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7604.c | 102

[PATCH 01/15] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2015-06-25 Thread William Towle
Add DT entries for vin0, vin0_pins, and adv7612 Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 41 ++- 1 file changed, 40 insertions(+), 1 deletion

[PATCH 03/15] media: adv7180: add of match table

2015-06-25 Thread William Towle
From: Ben Dooks ben.do...@codethink.co.uk Add a proper of match id for use when the device is being bound via device tree, to avoid having to use the i2c old-style binding of the device. Signed-off-by: Ben Dooks ben.do...@codethink.co.uk Signed-off-by: William.Towle william.to...@codethink.co.uk

HDMI and Composite capture on Lager, for kernel 4.1, version 4

2015-06-25 Thread William Towle
Version 4. Obsoletes version 3, as seen at: http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/91931 This version has the bus_info field set in rcar_vin.c, where the value used can be constructed uniquely. Elsewhere a number of small optimisations have been

[PATCH 08/15] v4l: subdev: Add pad config allocator and init

2015-06-25 Thread William Towle
From: Laurent Pinchart laurent.pinch...@linaro.org Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent

[PATCH 05/15] media: adv7604: document support for ADV7612 dual HDMI input decoder

2015-06-25 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk This documentation accompanies the patch adding support for the ADV7612 dual HDMI decoder / repeater chip. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk Acked-by: Hans Verkuil hans.verk

[PATCH 12/15] media: soc_camera: Fill std field in enum_input

2015-06-25 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Fill in the std field from the video_device tvnorms field in enum_input. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |3 +++ 1 file

[PATCH 13/15] media: soc_camera: Fix error reporting in expbuf

2015-06-25 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Remove unnecessary check and fix the error code for vb1 drivers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |8 ++-- 1 file changed,

[PATCH 15/15] media: rcar_vin: Reject videobufs that are too small for current format

2015-06-25 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk In videobuf_setup reject buffers that are too small for the configured format. Fixes v4l2-compliance issue. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk Acked-by: Hans Verkuil hans.verk

[PATCH 14/15] media: rcar_vin: fill in bus_info field

2015-06-25 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Adapt rcar_vin_querycap() so that cap-bus_info is populated with something meaningful/unique. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform/soc_camera

[PATCH 11/15] media: soc_camera: soc_scale_crop: Use correct pad number in try_fmt

2015-06-25 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Fix calls to subdev try_fmt function to use valid pad numbers, fixing the case where subdevs (eg. ADV7612) have valid pad numbers that are non-zero. Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay

[PATCH 06/15] media: adv7604: ability to read default input port from DT

2015-06-25 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk Adds support to the adv7604 driver for specifying the default input port in the Device tree. If no value is provided, the driver will be unable to select an input without help from userspace. Tested-by: William Towle william.to...@codethink.co.uk

Re: HDMI and Composite capture on Lager, for kernel 4.1, version 3

2015-06-22 Thread William Towle
Hi Hans, I'm not sure if I've asked this before, but shouldn't soc-camera be extended with support for the DV_TIMINGS ioctls in order to control the adv7604? It's peculiar that that is not included in this patch series... Rob tells me he did some work on this, but we don't have it passing

[PATCH 11/15] media: soc_camera: soc_scale_crop: Use correct pad when calling subdev try_fmt

2015-05-27 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Fix calls to subdev try_fmt to use correct pad. Fixes failures with subdevs that care about having the right pad number set. Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers

[PATCH 12/15] media: soc_camera: Fill std field in enum_input

2015-05-27 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Fill in the std field from the video_device tvnorms field in enum_input. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |3 +++ 1 file

[PATCH 15/15] media: rcar_vin: Reject videobufs that are too small for current format

2015-05-27 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk In videobuf_setup reject buffers that are too small for the configured format. Fixes v4l2-complience issue. Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- drivers/media/platform

[PATCH 03/15] media: adv7180: add of match table

2015-05-27 Thread William Towle
From: Ben Dooks ben.do...@codethink.co.uk Add a proper of match id for use when the device is being bound via device tree, to avoid having to use the i2c old-style binding of the device. Signed-off-by: Ben Dooks ben.do...@codethink.co.uk Signed-off-by: William.Towle william.to...@codethink.co.uk

[PATCH 13/15] media: soc_camera: Fix error reporting in expbuf

2015-05-27 Thread William Towle
From: Hans Verkuil hans.verk...@cisco.com Remove unnecessary check and fix the error code for vb1 drivers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/soc_camera.c |8 ++-- 1 file changed,

HDMI and Composite capture on Lager, for kernel 4.1, version 2

2015-05-27 Thread William Towle
Version 2 of the patchset sent last week, ie. http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/91423 In response to comments, this version has: fixes regarding use of CONFIG_MEDIA_CONTROLLER defines; an additional line for the RGB888 support patch (required

[PATCH 09/15] media: soc_camera pad-aware driver initialisation

2015-05-27 Thread William Towle
Add detection of source pad number for drivers aware of the media controller API, so that soc_camera/rcar_vin can create device nodes to support a driver such as adv7604.c (for HDMI on Lager) underneath. Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay

[PATCH 10/15] media: rcar_vin: Use correct pad number in try_fmt

2015-05-27 Thread William Towle
Fix rcar_vin_try_fmt to use the correct pad number when calling the subdev set_fmt. Previously pad number 0 was always used, resulting in EINVAL if the subdev cares about the pad number (e.g. ADV7612). Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay

[PATCH 14/15] media: soc_camera: v4l2-compliance fixes for querycap

2015-05-27 Thread William Towle
From: Rob Taylor rob.tay...@codethink.co.uk Fill in bus_info field and zero reserved field - v4l2-compliance complained it wasn't zero (v4l2-compliance.cpp:308 in v4l-utils v1.6.2) Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk

[PATCH 05/15] media: adv7604: document support for ADV7612 dual HDMI input decoder

2015-05-27 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk This documentation accompanies the patch adding support for the ADV7612 dual HDMI decoder / repeater chip. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Reviewed-by: William Towle william.to...@codethink.co.uk --- .../devicetree/bindings/media

[PATCH 07/15] ARM: shmobile: lager dts: specify default-input for ADV7612

2015-05-27 Thread William Towle
Set 'default-input' property for ADV7612. Enables image/video capture without the need to have userspace specifying routing. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Tested-by: William Towle william.to...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts |1 + 1 file

[PATCH 06/15] media: adv7604: ability to read default input port from DT

2015-05-27 Thread William Towle
From: Ian Molton ian.mol...@codethink.co.uk Adds support to the adv7604 driver for specifying the default input port in the Device tree. If no value is provided, the driver will be unable to select an input without help from userspace. Tested-by: William Towle william.to...@codethink.co.uk

[PATCH 02/15] media: soc_camera: rcar_vin: Add BT.709 24-bit RGB888 input support

2015-05-27 Thread William Towle
* constants Signed-off-by: William Towle william.to...@codethink.co.uk Reviewed-by: Rob Taylor rob.tay...@codethink.co.uk --- drivers/media/platform/soc_camera/rcar_vin.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b

[PATCH 08/15] v4l: subdev: Add pad config allocator and init

2015-05-27 Thread William Towle
From: Laurent Pinchart laurent.pinch...@linaro.org Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent

[PATCH 01/15] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2015-05-27 Thread William Towle
Add DT entries for vin0, vin0_pins, and adv7612 Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 41 ++- 1 file changed, 40 insertions(+), 1 deletion

[PATCH 04/15] media: adv7604: chip info and formats for ADV7612

2015-05-27 Thread William Towle
Add support for the ADV7612 chip as implemented on Renesas' Lager board to adv7604.c, including lists for formats/colourspace/timing selection and an IRQ handler. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers/media/i2c/adv7604.c | 83

Re: [PATCH 07/20] media: soc_camera: rcar_vin: Add BT.709 24-bit RGB888 input support

2015-05-26 Thread William Towle
On Mon, 25 May 2015, Guennadi Liakhovetski wrote: How about this version of this patch: https://patchwork.linuxtv.org/patch/28098/ ? I personally like that one better, it seems clearer to me. This one first sets a bit to vnmp, then make another check and inverts it, whereas that version

[PATCH 2/3] media: adv7604: automatic default-input selection

2015-08-13 Thread William Towle
] media: adv7604: ability to read default input port from DT) states that the default-input property should reside directly in the node for adv7612. Hence, also adjust the parsing to make the implementation consistent with this. Signed-off-by: William Towle william.to...@codethink.co.uk --- drivers

[PATCH 1/3] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2015-08-13 Thread William Towle
Add DT entries for vin0, vin0_pins, and adv7612. Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 37 ++- 1 file changed, 36 insertions(+), 1 deletion

[PATCH 3/3] ARM: shmobile: lager dts: specify default-input for ADV7612

2015-08-13 Thread William Towle
ian.mol...@codethink.co.uk Signed-off-by: William Towle william.to...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 31854bc..12e1cfa 100644 --- a/arch/arm

Renesas Lager: Device Tree entries for VIN HDMI input, version 2

2015-08-13 Thread William Towle
Version 2 ... removes some redundant configuration from device nodes, and provides some supplementary logic for automatic initialisation of state-pdata.default_input based on the hardware present. (Obsoletes corresponding parts of HDMI and Composite capture on Lager..., published previously)

[PATCH 2/2] ARM: shmobile: lager dts: specify default-input for ADV7612

2015-07-28 Thread William Towle
Set 'default-input' property for ADV7612. Enables image/video capture without the need to have userspace specifying routing. Signed-off-by: Ian Molton ian.mol...@codethink.co.uk Tested-by: William Towle william.to...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts |1 + 1 file

[PATCH 1/2] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2015-07-28 Thread William Towle
Add DT entries for vin0, vin0_pins, and adv7612 Signed-off-by: William Towle william.to...@codethink.co.uk Signed-off-by: Rob Taylor rob.tay...@codethink.co.uk --- arch/arm/boot/dts/r8a7790-lager.dts | 41 ++- 1 file changed, 40 insertions(+), 1 deletion

  1   2   >