[ANN] New v4l2-compliance features

2015-03-13 Thread Hans Verkuil
Hi all, I've just updated v4l2-compliance with some important new features. First of all v4l2-compliance will store the driver state before it starts testing and it will restore it before the streaming tests start and when the application exits (including exit due to Ctrl-C). This makes it

Re: [PATCHv2 00/21] marvell-ccic: drop and fix formats

2015-03-13 Thread Jonathan Corbet
On Wed, 11 Mar 2015 09:10:24 +0100 Hans Verkuil hverk...@xs4all.nl wrote: After some more testing I realized that the 422P format produced wrong colors and I couldn't get it to work. Since it never worked and nobody complained about it (and it is a fairly obscure format as well) I've dropped

Re: [PATCHv2 00/21] marvell-ccic: drop and fix formats

2015-03-13 Thread Hans Verkuil
Hi Jon, On 03/13/2015 10:28 PM, Jonathan Corbet wrote: On Wed, 11 Mar 2015 09:10:24 +0100 Hans Verkuil hverk...@xs4all.nl wrote: After some more testing I realized that the 422P format produced wrong colors and I couldn't get it to work. Since it never worked and nobody complained about it

[PATCH] Add device tree support to adp1653 flash driver

2015-03-13 Thread Pavel Machek
Nokia N900 is switching to device tree, make sure we can use flash there, too. Signed-off-by: Pavel Machek pa...@ucw.cz diff --git a/drivers/media/i2c/adp1653.c b/drivers/media/i2c/adp1653.c index 873fe19..0341009 100644 --- a/drivers/media/i2c/adp1653.c +++ b/drivers/media/i2c/adp1653.c @@ -8,6

Re: [PATCH] media: au0828 - add vidq busy checks to s_std and s_input

2015-03-13 Thread Devin Heitmueller
On Fri, Mar 13, 2015 at 10:18 PM, Shuah Khan shua...@osg.samsung.com wrote: au0828 s_std and s_input are missing queue busy checks. Add vb2_is_busy() calls to s_std and s_input and return -EBUSY if found busy. These checks are only needed on devices which support more than a single format

[PATCHv4] [media] saa7164: use an MSI interrupt when available

2015-03-13 Thread Brendan McGrath
Enhances driver to use an MSI interrupt when available. Adds the module option 'enable_msi' (type bool) which by default is enabled. Can be set to 'N' to disable. Fixes (or can reduce the occurrence of) a crash which is most commonly reported when both digital tuners of the saa7164 chip is in

cron job: media_tree daily build: WARNINGS

2015-03-13 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Sat Mar 14 04:00:17 CET 2015 git branch: test git hash: 3d945be05ac1e806af075e9315bc1b3409adae2b gcc

[PATCH] media: au0828 - add vidq busy checks to s_std and s_input

2015-03-13 Thread Shuah Khan
au0828 s_std and s_input are missing queue busy checks. Add vb2_is_busy() calls to s_std and s_input and return -EBUSY if found busy. Signed-off-by: Shuah Khan shua...@osg.samsung.com --- drivers/media/usb/au0828/au0828-video.c | 13 + 1 file changed, 13 insertions(+) diff --git

Re: [PATCH v2 2/2] v4l: mt9v032: Add OF support

2015-03-13 Thread Laurent Pinchart
Hi Prabhakar, On Friday 13 March 2015 05:43:42 Lad, Prabhakar wrote: On Fri, Mar 13, 2015 at 12:03 AM, Laurent Pinchart wrote: Parse DT properties into a platform data structure when a DT node is available. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com ---

Re: [RFC 14/18] dt: bindings: Add bindings for omap3isp

2015-03-13 Thread Laurent Pinchart
Hi Sebastian, Thank you for the review. On Friday 13 March 2015 10:34:53 Sebastian Reichel wrote: On Fri, Mar 13, 2015 at 01:03:21AM +0200, Sakari Ailus wrote: [...] +Required properties +=== + +compatible : ti,omap3-isp I would rephrase that

Re: [RFC 18/18] omap3isp: Deprecate platform data support

2015-03-13 Thread Sebastian Reichel
Hi, [+CC Tony] On Sat, Mar 07, 2015 at 11:41:15PM +0200, Sakari Ailus wrote: Print a warning when the driver is used with platform data. Existing platform data user should move to DT now. I guess this should become a more visible warning on OMAP SoC level, since platform data based boot will

Re: [RFC 14/18] dt: bindings: Add bindings for omap3isp

2015-03-13 Thread Sebastian Reichel
Hi, On Fri, Mar 13, 2015 at 01:03:21AM +0200, Sakari Ailus wrote: [...] +Required properties +=== + +compatible : ti,omap3-isp I would rephrase that using the usual wording as compatible: Must contain ti,omap3-isp. [...] +ti,phy-type : 0 --

Re: [PATCH] [media] rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

2015-03-13 Thread Vincent McIntyre
On Mon, Mar 09, 2015 at 03:19:01PM +1000, Christian Dale wrote: Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U. I have not tested the remote, but it is the Y04G0051 model. Thanks for doing this Christian. I have one of these cards also, 0x6f12. I wrote the same patch

Re: [PATCH] [media] rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

2015-03-13 Thread Christian Dale
I'm currently running on ArchLinux [0.00] Linux version 3.18.6-1-ARCH (cdale@huntsman) (gcc version 4.9.2 20150204 (prerelease) (GCC) ) #2 SMP PREEMPT Sun Mar 8 10:00:24 AEST 2015 On boot the card is detected by the kernel: [ 13.575736] usb 5-1: dvb_usb_v2: found a 'Leadtek WinFast

Re: [PATCH] [media] rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

2015-03-13 Thread Christian Dale
I should note, that patch does not work for the 3.18 kernel. In the driver, rtl2832u_props was updated to rtl28xxu_props in commit 723abfd787f7cccaff89036b8aa14f56a2f7a11a. So you'd need to invert that change for the patch to work against 3.18. On 13/03/15 20:07, Vincent McIntyre wrote: On

Re: [PATCH v3 00/10] Use media bus formats in imx-drm and add drm panel support

2015-03-13 Thread Philipp Zabel
Am Donnerstag, den 12.03.2015, 18:53 +0100 schrieb Emil Renner Berthing: Hi Philipp On 12 March 2015 at 10:58, Philipp Zabel p.za...@pengutronix.de wrote: Currently the imx-drm driver misuses the V4L2_PIX_FMT constants to describe the pixel format on the parallel bus between display

[PATCH] cx231xx: fix compiler warnings

2015-03-13 Thread Hans Verkuil
If CONFIG_VIDEO_CX231XX_RC is undefined, then these compiler warnings are generated: In file included from drivers/media/usb/cx231xx/cx231xx-cards.c:23:0: drivers/media/usb/cx231xx/cx231xx-cards.c: In function ‘cx231xx_release_resources’: drivers/media/usb/cx231xx/cx231xx.h:982:30: warning:

[GIT PULL FOR v4.1] marvell-ccic: fixes and cleanups

2015-03-13 Thread Hans Verkuil
This pull request brings the marvell-ccic driver up to date with the latest frameworks. It has been fully tested on an OLPC XO-1 laptop and now passes the v4l2-compliance test suite. This pull request sits on top of this for-v4.1g pull request that is currently still pending (and was the reason

[PATCH] DocBook media: fix PIX_FMT_SGRBR8 example

2015-03-13 Thread Hans Verkuil
Fix the example of the V4L2_PIX_FMT_SGRBG8 Bayer format. The even lines should read BGBG, not RBRB. Signed-off-by: Hans Verkuil hans.verk...@cisco.com diff --git a/Documentation/DocBook/media/v4l/pixfmt-sgrbg8.xml b/Documentation/DocBook/media/v4l/pixfmt-sgrbg8.xml index 19727ab..7803b8c

[PATCH 36/39] vivid: add support for BGR666

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for the four byte BGR666 format. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-tpg.c| 13 + drivers/media/platform/vivid/vivid-vid-common.c | 8 2 files changed, 21

[PATCH 30/39] vivid: add RGB444 support

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for (A/X)RGB444 formats. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-tpg.c| 21 + drivers/media/platform/vivid/vivid-vid-common.c | 25 + 2

[PATCH 00/39] vivid: additional improvements

2015-03-13 Thread Hans Verkuil
This patch series follows the 29 part series posted earlier: http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/88842 It adds additional format support, makes vivid a platform driver and finally uses the v4l2_device release callback to clean up memory. This works also when

Re: [PATCH] DocBook media: fix PIX_FMT_SGRBR8 example

2015-03-13 Thread Sakari Ailus
On Fri, Mar 13, 2015 at 12:00:05PM +0100, Hans Verkuil wrote: Fix the example of the V4L2_PIX_FMT_SGRBG8 Bayer format. The even lines should read BGBG, not RBRB. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Thanks!! Acked-by: Sakari Ailus sakari.ai...@linux.intel.com -- Sakari

[GIT PULL FOR v4.1] Various fixes

2015-03-13 Thread Hans Verkuil
The following changes since commit 3d945be05ac1e806af075e9315bc1b3409adae2b: [media] mn88473: simplify bandwidth registers setting code (2015-03-03 13:09:12 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v4.1j for you to fetch changes up to

[PATCH 33/39] vivid: add support for NV24 and NV42

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for the YUV 4:4:4 formats NV24 and NV42. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-tpg.c| 28 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 18

[PATCH 35/39] DocBook media: clarify BGR666

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The documentation is not clear whether this is a three or four byte format. Clarify this. Also move the BGR666 format to the other 32 bit formats. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/pixfmt-packed-rgb.xml

[PATCH 31/39] vivid: fix format comments

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Clarify which formats have an alpha channel and which do not by using 'x' instead of 'a' if there is no alpha channel. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-vid-common.c | 14 +++--- 1 file

[PATCH 32/39] vivid: add support for [A|X]RGB555X

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Only RGB555X was supported, add support for the other two variants. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-tpg.c| 10 ++ drivers/media/platform/vivid/vivid-vid-common.c | 18

[PATCH 34/39] vivid: add support for PIX_FMT_RGB332

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for the one-byte-per-pixel RGB332 format. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-tpg.c| 12 drivers/media/platform/vivid/vivid-vid-common.c | 8 2 files

[PATCH 37/39] vivid: add support for packed YUV formats

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for the packed YUV formats YUV444, YUV555, YUV565 and YUV32. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-tpg.c| 40 +++--

[PATCH 38/39] vivid: turn this into a platform_device

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This turns this driver into a platform device. This ensures that it appears in /sys/bus/platform_device since it now has a proper parent device. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-core.c | 50

[PATCH 39/39] vivid: use v4l2_device.release to clean up the driver

2015-03-13 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Use the release callback of the v4l2_device to clean up the memory. This prevents vivid from breaking if someone tries to unbind the driver. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivid/vivid-core.c | 43

[PATCH] au0828: fix broken streaming

2015-03-13 Thread Hans Verkuil
Commit c5036d61e0bed3f4f51391a145638b426825e69c (media: au0828: drop vbi_buffer_filled() and re-use buffer_filled()) broke video and vbi streaming. The vb2_buffer struct was copied instead of taking a pointer to it, but vb2_buffer_done() needs the real object, not a copy, since it is hooking the

[PATCH] vivid: report only one frameinterval

2015-03-13 Thread Hans Verkuil
The vivid driver reports a range of frame intervals for non-webcams, when in fact the frame interval is fixed for those inputs as it depends on the DV timings or standard. Just report the single discrete frame interval instead. Caught by v4l2-compliance. Signed-off-by: Hans Verkuil

[PATCH] v4l2-dev: disable selection ioctls for non-video devices

2015-03-13 Thread Hans Verkuil
The selection/cropping ioctls are only valid for video nodes, not for vbi. Found by v4l2-compliance when run on a VBI device node. Signed-off-by: Hans Verkuil hans.verk...@cisco.com diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c index e2b8b3e..71a1b93

Re: [RFC 18/18] omap3isp: Deprecate platform data support

2015-03-13 Thread Tony Lindgren
* Sebastian Reichel s...@kernel.org [150313 02:41]: Hi, [+CC Tony] On Sat, Mar 07, 2015 at 11:41:15PM +0200, Sakari Ailus wrote: Print a warning when the driver is used with platform data. Existing platform data user should move to DT now. I guess this should become a more visible

Re: [PATCH] v4l2-dev: disable selection ioctls for non-video devices

2015-03-13 Thread Sakari Ailus
On Fri, Mar 13, 2015 at 05:25:53PM +0100, Hans Verkuil wrote: The selection/cropping ioctls are only valid for video nodes, not for vbi. Found by v4l2-compliance when run on a VBI device node. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Sakari Ailus