cron job: media_tree daily build: ERRORS

2015-01-23 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 Jan 24 04:00:19 CET 2015 git branch: test git hash: 1fc77d013ba85a29e2edfaba02fd21e8c8187fae gcc versio

Re: [GIT PULL for v3.19-rc6] media fixes

2015-01-23 Thread Linus Torvalds
On Sat, Jan 24, 2015 at 1:26 AM, Mauro Carvalho Chehab wrote: > > Please pull from: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > media/v3.19-4 That does not exist. The tip of that linux-media tree does match the commit you claim is the tip but that's just the unsigned

[PATCH v5] media: au0828 - convert to use videobuf2

2015-01-23 Thread Shuah Khan
Convert au0828 to use videobuf2. Tested with NTSC. Tested video and vbi devices with xawtv, tvtime, and vlc. Ran v4l2-compliance to ensure there are no failures. Video compliance test results summary: Total: 75, Succeeded: 75, Failed: 0, Warnings: 18 Vbi compliance test results summary: Total: 7

Re: [PATCH v4] media: au0828 - convert to use videobuf2

2015-01-23 Thread Devin Heitmueller
Hi Shuah, > TRY_FMT and S_FMT both don't handle invalid pixelformats. Looks like > there is reason behind this based on the comments: > > /* format->fmt.pix.width only support 720 and height 480 */ > if (width != 720) > width = 720; > if (height != 480) >

Re: [PATCH v4] media: au0828 - convert to use videobuf2

2015-01-23 Thread Shuah Khan
On 01/23/2015 12:17 PM, Shuah Khan wrote: > On 01/23/2015 08:00 AM, Shuah Khan wrote: >> On 01/23/2015 02:50 AM, Hans Verkuil wrote: >>> Hi Shuah, >>> >>> On 01/23/2015 12:42 AM, Shuah Khan wrote: Convert au0828 to use videobuf2. Tested with NTSC. Tested video and vbi devices with xawtv,

Re: [PATCH v4] media: au0828 - convert to use videobuf2

2015-01-23 Thread Shuah Khan
On 01/23/2015 08:00 AM, Shuah Khan wrote: > On 01/23/2015 02:50 AM, Hans Verkuil wrote: >> Hi Shuah, >> >> On 01/23/2015 12:42 AM, Shuah Khan wrote: >>> Convert au0828 to use videobuf2. Tested with NTSC. >>> Tested video and vbi devices with xawtv, tvtime, >>> and vlc. Ran v4l2-compliance to ensure

[PATCH 03/21] [media] coda: remove context debugfs entry last

2015-01-23 Thread Philipp Zabel
Do not remove the per-context debugfs directory before the per-buffer debugfs entries contained therein. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/coda/coda-common.c b/d

[PATCH 11/21] [media] coda: fix width validity check when starting to decode

2015-01-23 Thread Philipp Zabel
From: Markus Pargmann Compare rounded up width to fit into bytesperline. Signed-off-by: Markus Pargmann Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda/coda-bit.c b/dr

[PATCH 08/21] [media] coda: properly clear f_cap in coda_s_fmt_vid_out

2015-01-23 Thread Philipp Zabel
Properly zero the structure on the stack before using it. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index af8a4d6..7a6cb08 1

[PATCH 13/21] [media] coda: issue seq_end_work during stop_streaming

2015-01-23 Thread Philipp Zabel
This patch queues seq_end_work and flushes the queue during stop_streaming and clears the ctx->initialized flag. This allows to start streaming again after stopping streaming without releasing the context. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 5 + 1 fi

[PATCH 10/21] [media] coda: clear RET_DEC_PIC_SUCCESS flag in prepare_decode

2015-01-23 Thread Philipp Zabel
To make sure a set RET_DEC_PIC_SUCCESS flag is not a leftover from a previous successful run, clear it in prepare_decode. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/coda/coda-bit.c b/drive

[PATCH 16/21] [media] coda: switch BIT decoder source queue to vmalloc

2015-01-23 Thread Philipp Zabel
Since we have to copy from input buffers into the bitstream ringbuffer with the CPU, there is no need for contiguous DMA buffers on the decoder input side. Signed-off-by: Philipp Zabel --- drivers/media/platform/Kconfig| 1 + drivers/media/platform/coda/coda-common.c | 6 -- 2 fi

[PATCH 09/21] [media] coda: initialize SRAM on probe

2015-01-23 Thread Philipp Zabel
Zeroing the SRAM on probe helps with debugging SRAM contents. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 7a6cb08..5386b

[PATCH 19/21] [media] coda: add support for contexts that do not use the BIT processor

2015-01-23 Thread Philipp Zabel
In preparation for CODA9 JPEG support, allow contexts that control hardware units directly, without the BIT processor. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 42 +-- drivers/media/platform/coda/coda.h| 1 + 2 files change

[PATCH 02/21] [media] coda: bitrate can only be set in kbps steps

2015-01-23 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 39330a7..1cc4e90 100644 --- a/drivers/media/platform/coda/cod

[PATCH 17/21] [media] coda: make seq_end_work optional

2015-01-23 Thread Philipp Zabel
In preparation for CODA9 JPEG support, which doesn't have to call SEQ_END on the BIT processor. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/coda/coda-common.c b/driv

[PATCH 01/21] [media] coda: fix encoder rate control parameter masks

2015-01-23 Thread Philipp Zabel
This patch fixes the ENC_SEQ_RC_PARA initial delay and bitrate masks. These bit fields are 15 bit wide, not 7 bit. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda/coda_reg

[PATCH 21/21] [media] coda: simplify check in coda_buf_queue

2015-01-23 Thread Philipp Zabel
Now that the bitstream buffer is only allocated for the BIT decoder case, we can use bitstream.size to check for bitstream ringbuffer operation. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH 04/21] [media] coda: move meta out of padding

2015-01-23 Thread Philipp Zabel
Handle an empty buffer metadata list without crashing. This can happen if the decoder is fed a broken stream, or multiple compressed frames in a single queued buffer. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 9 + 1 file changed, 5 insertions(+), 4 deletio

[PATCH 05/21] [media] coda: adjust sequence offset after unexpected decoded frame

2015-01-23 Thread Philipp Zabel
From: Lucas Stach If userspace doesn't properly separate the bitstream input into individual frames (which may happen for example on slightly corrupted streams) the CODA hardware may decode more frames than we expect. We already log an error in this case, but it's also necessary to adjust the seq

[PATCH 14/21] [media] coda: don't ever use subsampling ping-pong buffers as reconstructed reference buffers

2015-01-23 Thread Philipp Zabel
On i.MX6, two subsampling ping-pong buffers are used for motion estimation and deblocking They should not be counted as framebuffers, or they will be also used to store reconstructed frames, causing visible artifacts in P-frames. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-

[PATCH 07/21] [media] coda: fix try_fmt_vid_out colorspace setting

2015-01-23 Thread Philipp Zabel
v4l2-compliance complains about invalid colorspace settings being accepted on the output side. This patch only allows REC709 and JPEG. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/media

[PATCH 15/21] [media] coda: add coda_estimate_sizeimage and use it in set_defaults

2015-01-23 Thread Philipp Zabel
Call coda_estimate_sizeimage from both try_fmt and set_defaults to avoid this v4l2-compliance warning on the h.264 decoder video device: G_FMT: 1920x1088, 32315559, 1, 1920, 1048576, 3, 0, 0, feedcafe TRY/S_FMT: 1920x1088, 32315559, 1, 1920, 3133440, 3, 0, 0, feedcafe fail: v4l2-te

[PATCH 12/21] [media] coda: remove unused isequence, reset qsequence in stop_streaming

2015-01-23 Thread Philipp Zabel
The isequence counter is never used, qsequence counts the buffers queued into the bit decoder bitstream ringbuffer. It needs to be reset in stop_streaming. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 2 +- drivers/media/platform/coda/coda.h| 1 - 2 files

[PATCH 20/21] [media] coda: allocate bitstream ringbuffer only for BIT decoder

2015-01-23 Thread Philipp Zabel
The BIT encoder does not use a per-context bitstream ringbuffer as it encodes directly into the videobuf2 capture queue's buffers. Avoid allocation of the bitstream ringbuffer for encoder contexts. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 3 ++- 1 file changed

[PATCH 06/21] [media] coda: fix job_ready debug reporting for bitstream decoding

2015-01-23 Thread Philipp Zabel
Clarify whether job_ready returns false because the context is on hold, waiting for new input buffers, whether there are not enough input buffers to fill two into the bitstream, or whether there is not enough data in the bitstream buffer for the bitstream reader hardware to read a whole frame. Sig

[PATCH 18/21] [media] coda: free context buffers under buffer mutex

2015-01-23 Thread Philipp Zabel
Make sure the buffer_mutex lock is taken in coda_bit_release while coda_free_framebuffers and coda_free_context_buffers are called. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/coda/coda-bit.c

[PATCH 00/21] CODA fixes and vmalloc input

2015-01-23 Thread Philipp Zabel
Hi, this is a series of various fixes that should increase stability in the face of broken streams and just general use of the CODA driver. They range from crash fixes to issues uncovered by v4l2-compliance. The CODA9 subsampling buffers patch fixes encoder image corruption. Also, the BIT decoder

Re: [RFC PATCH 0/3] Introduce IIO interface for fingerprint sensors

2015-01-23 Thread Florian Echtler
Hello Teodora, On 23.01.2015 14:05, Baluta, Teodora wrote: > The fingerprint sensor acts more like a scanner device, so the > closest type is the V4L2_CAP_VIDEO_CAPTURE. However, this is not a > perfect match because the driver only sends an image, once, when > triggered. Would it be a better alte

[PATCH v2 13/15] [media] adv7180: Add I2P support

2015-01-23 Thread Lars-Peter Clausen
Some of the devices supported by this driver have a interlaced-to- progressive converter which can optionally be enabled. This patch adds support for enabling and disabling the I2P converter on such devices. I2P mode can be enabled by selecting V4L2_FIELD_NONE instead of V4L2_FIELD_INTERLACED for

[PATCH v2 09/15] [media] adv7180: Prepare for multi-chip support

2015-01-23 Thread Lars-Peter Clausen
The adv7180 is part of a larger family of device, which have all a very similar register map layout. This patch prepares the adv7180 driver for support for multiple different devices. For now the only difference we care about is the number of input channel configurations. Also the way the input for

[PATCH v2 06/15] [media] adv7180: Reset the device before initialization

2015-01-23 Thread Lars-Peter Clausen
Reset the device when initializing it so it is in a good known state and the assumed register settings matche the actual register settings. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- drivers/media/i2c/adv7180.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(

[PATCH v2 08/15] [media] adv7180: Consolidate video mode setting

2015-01-23 Thread Lars-Peter Clausen
We have basically the same code to set the video standard in init_device() and adv7180_s_std(). Factor this out into a common helper function. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- drivers/media/i2c/adv7180.c | 67 ++--- 1 file chan

[PATCH v2 11/15] [media] adv7180: Add support for the adv7280/adv7281/adv7282

2015-01-23 Thread Lars-Peter Clausen
This patch adds support for the adv7280/adv7281/adv7282 devices to the adv7180 driver. They are very similar to the adv7182, the main difference from the drivers point of view are some different tuning constants for improved video performance. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verk

[PATCH v2 15/15] [media] Add MAINTAINERS entry for the adv7180

2015-01-23 Thread Lars-Peter Clausen
Add myself as the maintainer for the adv7180 video subdev driver. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4318f34..22bb77e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6

[PATCH v2 12/15] [media] adv7180: Add support for the adv7280-m/adv7281-m/adv7281-ma/adv7282-m

2015-01-23 Thread Lars-Peter Clausen
This patch adds support for the adv7280-m/adv2781-m/adv7281-ma/adv7282-m devices to the adv7180 driver. They are very similar to the adv7280/adv7281/adv7282 but instead of parallel video out they feature a MIPI CSI2 transmitter. The CSI2 transmitter is configured via a separate I2C address, so we

[PATCH v2 14/15] [media] adv7180: Add fast switch support

2015-01-23 Thread Lars-Peter Clausen
In fast switch mode the adv7180 (and similar) can lock onto a new signal faster when switching between different inputs. As a downside though it is no longer able to auto-detect the incoming format. The fast switch mode is exposed as a boolean v4l control that allows userspace applications to eith

[PATCH v2 07/15] [media] adv7180: Add media controller support

2015-01-23 Thread Lars-Peter Clausen
Add media controller support to the adv7180 driver by registering a media entity instance for it as well as implementing pad ops for configuring the format. As there currently don't seem to be any users of the video ops format operations those are removed as well in this patch. Also set the V4L2_

[PATCH v2 05/15] [media] adv7180: Do implicit register paging

2015-01-23 Thread Lars-Peter Clausen
The ad7180 has multiple register pages which can be switched between by writing to a register. Currently the driver manually switches between pages whenever a register outside of the default register map is accessed and switches back after it has been accessed. This is a bit tedious and also potent

[PATCH v2 10/15] [media] adv7180: Add support for the adv7182

2015-01-23 Thread Lars-Peter Clausen
This patch adds support for the adv7182 to the adv7180 driver. The adv7182 is similar to the adv7180, the main difference from the driver's point of view is how the video input and how the input format are selected. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- drivers/media/i2c/

[PATCH v2 04/15] [media] adv7180: Cleanup register define naming

2015-01-23 Thread Lars-Peter Clausen
Consistently prefix register defines with ADV7180_REG. Also remove the "ADI" from register names, the ADV7180 prefix should provide enough of a namespace separation. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- drivers/media/i2c/adv7180.c | 105 ++

[PATCH v2 02/15] [media] adv7180: Pass correct flags to request_threaded_irq()

2015-01-23 Thread Lars-Peter Clausen
Most IRQ controllers support different types of interrupts. The adv7180 generates falling edge interrupts, so make sure to pass IRQF_TRIGGER_FALLING to request_threaded_irq() so the IRQ controller is configured for the correct mode. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- d

[PATCH v2 00/15] [media] adv7180: Add support for more chip variants

2015-01-23 Thread Lars-Peter Clausen
Changes from v1: * Reserved custom user control range for the fast switch control * Dropped the free-run mode control patch for now. The controls should probably be standardized first, but that is going to be a different patch series. Original cover letter below

[PATCH v2 03/15] [media] adv7180: Use inline function instead of macro

2015-01-23 Thread Lars-Peter Clausen
Use a inline function instead of a macro for the container_of helper for getting the driver's state struct from a control. A inline function has the advantage that it is more typesafe and nicer in general. Signed-off-by: Lars-Peter Clausen Acked-by: Hans Verkuil --- drivers/media/i2c/adv7180.c

[PATCH v2 01/15] [media] adv7180: Do not request the IRQ again during resume

2015-01-23 Thread Lars-Peter Clausen
Currently the IRQ is requested from within the init_device() function. This function is not only called during device probe, but also during resume causing the driver to try to request the IRQ again. Move requesting the IRQ from init_device() to the probe function to make sure that it is only reque

Re: [PATCH v4] media: au0828 - convert to use videobuf2

2015-01-23 Thread Shuah Khan
On 01/23/2015 02:50 AM, Hans Verkuil wrote: > Hi Shuah, > > On 01/23/2015 12:42 AM, Shuah Khan wrote: >> Convert au0828 to use videobuf2. Tested with NTSC. >> Tested video and vbi devices with xawtv, tvtime, >> and vlc. Ran v4l2-compliance to ensure there are >> no regressions. video now has no fa

[GIT PULL for v3.19-rc6] media fixes

2015-01-23 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media media/v3.19-4 For: - Fix some race conditions caused by a regression on videobuf2; - Fix a interrupt release bug on cx23885; - Fix support for Mygica T230 and HVR4400; - Fix compilation breaka

RE: [RFC PATCH 0/3] Introduce IIO interface for fingerprint sensors

2015-01-23 Thread Baluta, Teodora
Hi, Thanks for the reply, Sylwester! I am considering v4l2 now and I have some questions/comments below. > -Original Message- > From: linux-iio-ow...@vger.kernel.org [mailto:linux-iio- > ow...@vger.kernel.org] On Behalf Of Sylwester Nawrocki > Sent: Thursday, January 15, 2015 7:38 PM > T

Re: [RFC v2 3/7] cec: add new framework for cec support.

2015-01-23 Thread Sean Young
On Thu, Jan 22, 2015 at 05:04:35PM +0100, Kamil Debski wrote: > Add the CEC framework. -snip- > +Remote control handling > +--- > + > +The CEC framework provides two ways of handling the key messages of remote > +control. In the first case, the CEC framework will handle these me

Re: [PATCH v4] media: au0828 - convert to use videobuf2

2015-01-23 Thread Hans Verkuil
Hi Shuah, On 01/23/2015 12:42 AM, Shuah Khan wrote: > Convert au0828 to use videobuf2. Tested with NTSC. > Tested video and vbi devices with xawtv, tvtime, > and vlc. Ran v4l2-compliance to ensure there are > no regressions. video now has no failures and vbi > has 3 fewer failures. > > video befo