Re: AverMedia Volar Black HD (A850)

2009-04-08 Thread pHilipp Zabel
On Tue, Mar 31, 2009 at 1:07 AM, Antti Palosaari cr...@iki.fi wrote: Olivier MENUEL wrote: Here are my tests : http://linuxtv.org/hg/~anttip/af9015_aver_a850_2/ : I found why kaffeine was not working : I needed to check all offset checkboxes when scanning. Like Thomas, I get these

[PATCH] [media] V4L: pxa_camera: add clk_prepare/clk_unprepare calls

2012-03-15 Thread Philipp Zabel
This patch adds clk_prepare/clk_unprepare calls to the pxa_camera driver by using the helper functions clk_prepare_enable and clk_disable_unprepare. Signed-off-by: Philipp Zabel philipp.za...@gmail.com Cc: Mauro Carvalho Chehab mche...@infradead.org Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de

Re: [PATCH 4/7 v2] coda: Add copy time stamp handling

2013-04-25 Thread Philipp Zabel
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Philipp Zabel p.za...@pengutronix.de Cc: Javier Martin javier.mar...@vista-silicon.com Cc: Fabio Estevam fabio.este...@freescale.com Tested-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c |5 + 1

[PATCH] [media] v4l: vb2-dma-contig: add support for file access mode flags for DMABUF exporting

2013-05-21 Thread Philipp Zabel
Currently it is not possible for userspace to map a DMABUF exported buffer with write permissions. This patch allows to also pass O_RDONLY/O_RDWR when exporting the buffer, so that userspace may map it with write permissions. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Documentation

[PATCH 1/2] [media] v4l2-mem2mem: add v4l2_m2m_create_bufs helper

2013-05-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/v4l2-core/v4l2-mem2mem.c | 14 ++ include/media/v4l2-mem2mem.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c b/drivers/media/v4l2-core/v4l2-mem2mem.c

[PATCH 2/2] [media] coda: v4l2-compliance fix: add VIDIOC_CREATE_BUFS support

2013-05-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index d64908a..0319114 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media

[PATCH] [media] coda: v4l2-compliance fix: add bus_info prefix 'platform'

2013-05-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 48b8d7a..d64908a 100644 --- a/drivers/media/platform/coda.c +++ b/drivers

[PATCH] [media] coda: use devm_ioremap_resouce

2013-05-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 0319114..4a50386 100644 --- a/drivers/media/platform/coda.c

[PATCH] [media] coda: enable dmabuf support

2013-05-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 1cc4d64..16bef5e 100644 --- a/drivers/media/platform/coda.c

[PATCH] [media] coda: set umask 0644 on debug module param

2013-05-21 Thread Philipp Zabel
Otherwise module/coda/parameters/coda_debug won't show up in sysfs. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index

[PATCH] [media] coda: fix error return value if v4l2_m2m_ctx_init fails

2013-05-21 Thread Philipp Zabel
Use ret from the outer scope, instead of redifining it in the conditional clause. That way the error value reaches the end of the function as intended. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] [media] coda: do not use v4l2_dev in coda_timeout

2013-05-21 Thread Philipp Zabel
The timeout delayed work might be scheduled even after the v4l2 device is released. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform

[RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-22 Thread Philipp Zabel
into the ringbuffer draining end-of-stream mode. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/v4l2-core/v4l2-mem2mem.c | 26 -- include/media/v4l2-mem2mem.h | 3 +++ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/media

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-22 Thread Philipp Zabel
Am Mittwoch, den 22.05.2013, 12:36 +0200 schrieb Hans Verkuil: On Wed 22 May 2013 12:17:36 Philipp Zabel wrote: On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded without additional input buffers

[PATCH 0/9] CODA patches in preparation for decoding support

2013-05-23 Thread Philipp Zabel
The following patch series contains a few fixes and cleanups in preparation for decoding support. I've simplified the parameter buffer setup code, changed the hardware command register access locking for multi-instance support on CODA7, and added a list of supported codecs per device type, where

[PATCH 5/9] [media] coda: simplify parameter buffer setup code

2013-05-23 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 51 +++ 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index ef541b0..625ef3f 100644

[PATCH 4/9] [media] coda: clear registers in coda_hw_init

2013-05-23 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 3be56b0..ef541b0 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media

[PATCH 8/9] [media] coda: replace completion with mutex

2013-05-23 Thread Philipp Zabel
as finished and the mutex released, as otherwise coda_release will block. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 66 +++ 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/drivers/media/platform/coda.c

[PATCH 2/9] [media] coda: frame stride must be a multiple of 8

2013-05-23 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 7ac2299..79a81eb 100644 --- a/drivers/media/platform/coda.c +++ b

[PATCH 9/9] [media] coda: do not call v4l2_m2m_job_finish from .job_abort

2013-05-23 Thread Philipp Zabel
coda_irq_handler deal with it. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index f5d4144..df4ada88 100644 --- a/drivers/media

[PATCH 7/9] [media] coda: add coda_encode_header helper function

2013-05-23 Thread Philipp Zabel
In preparation for CODA7541 and CODA960 multi-stream support and for replacement of the completion with a mutex lock, consolidate the header encoding in a helper function. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 112

[PATCH 1/9] [media] coda: fix ENC_SEQ_OPTION for CODA7

2013-05-23 Thread Philipp Zabel
GAMMA_OFFSET is different between CodaDx6 and CODA7. Also, this is a bitfield, so drop the various Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 10 -- drivers/media/platform/coda.h | 8 ++-- 2 files changed, 10 insertions(+), 8 deletions

[PATCH 3/9] [media] coda: stop setting bytesused in buf_prepare

2013-05-23 Thread Philipp Zabel
The application must have filled the bytesused field, don't overwrite it here. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 79a81eb

[PATCH 6/9] [media] coda: per-product list of codecs instead of list of formats

2013-05-23 Thread Philipp Zabel
for decoding support. The maximum encoded frame buffer size is increased to 1 MiB. Instead of tracking inst_type and codec across S_FMT calls, set the codec and inst_type in start_streaming. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 345

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Philipp Zabel
Hi Sylwester, Am Mittwoch, den 29.05.2013, 11:32 +0200 schrieb Sylwester Nawrocki: Hello Philip, On 05/22/2013 12:17 PM, Philipp Zabel wrote: On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Philipp Zabel
Hi Kamil, Am Mittwoch, den 29.05.2013, 11:54 +0200 schrieb Kamil Debski: Hi Philipp, Hans, On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded without additional input buffers being provided,

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Philipp Zabel
Hi Andrzej, Am Mittwoch, den 29.05.2013, 14:05 +0200 schrieb Andrzej Hajda: Hi Philipp, On 05/29/2013 01:13 PM, Philipp Zabel wrote: Hi Kamil, Am Mittwoch, den 29.05.2013, 11:54 +0200 schrieb Kamil Debski: Hi Philipp, Hans, On mem2mem decoders with a hardware bitstream ringbuffer

Re: [PATCH 1/2] [media] v4l2-mem2mem: add v4l2_m2m_create_bufs helper

2013-05-29 Thread Philipp Zabel
Am Mittwoch, den 29.05.2013, 14:28 +0200 schrieb Kamil Debski: Hi, Thanks for the patch. May I ask you to use use checkpath next time and keep whitespaces tidy? This time I fixed it (spaces changed to a tab). Yes, thanks regards Philipp -- To unsubscribe from this list: send the line

Re: [PATCH 0/9] CODA patches in preparation for decoding support

2013-05-29 Thread Philipp Zabel
Am Mittwoch, den 29.05.2013, 14:28 +0200 schrieb Kamil Debski: Hi, Patches 5/9 an 6/9 have a style issues (Line 80) found by checkpatch. Can you comment on this? I think that especially with the CODA_CODEC array, readability is improved by overstepping the 80 character barrier. Also patch

[RFC PATCH v2] [media] mem2mem: add support for hardware buffered queue

2013-05-31 Thread Philipp Zabel
a new input buffer at the v4l2 output side. The decoder command ioctl can be used to put the decoder into the ringbuffer draining end-of-stream mode. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Removed the streamoff changes. Now the patch only allows scheduling

[RFC PATCH v3] [media] mem2mem: add support for hardware buffered queue

2013-05-31 Thread Philipp Zabel
a new input buffer at the v4l2 output side. The decoder command ioctl can be used to put the decoder into the ringbuffer draining end-of-stream mode. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v2: - Fixed declaration of v4l2_m2m_queue_set_buffered in v4l2-mem2mem.h

Re: [RFC PATCH v3] [media] mem2mem: add support for hardware buffered queue

2013-05-31 Thread Philipp Zabel
Hi Sylwester, Am Freitag, den 31.05.2013, 10:52 +0200 schrieb Sylwester Nawrocki: Hi Philipp, On 05/31/2013 10:33 AM, Philipp Zabel wrote: +void v4l2_m2m_queue_set_buffered(struct vb2_queue *vq, bool buffered) How about making it a 'static inline' function in include/media/v4l2-mem2mem.h

[PATCH v4] [media] mem2mem: add support for hardware buffered queue

2013-06-03 Thread Philipp Zabel
a new input buffer at the v4l2 output side. The decoder command ioctl can be used to put the decoder into the ringbuffer draining end-of-stream mode. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v3: - Split queue_set_buffered into set_src_buffered and set_dst_buffered

[PATCH 3/8] [media] coda: do not allocate maximum number of framebuffers for encoder

2013-06-17 Thread Philipp Zabel
The encoder only ever needs two buffers, but we'll have to increase CODA_MAX_FRAMEBUFFERS for the decoder. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda.c b

[PATCH 0/8] CODA7541 decoding support

2013-06-17 Thread Philipp Zabel
The following patch series depends on the CODA patches queued in Kamil's branch and on the mem2mem: add support for hardware buffered queue patch I've posted earlier. It should allow decoding h.264 high profile 1080p streams on i.MX53 with the current CODA7541 firmware version 1.4.50. regards

[PATCH 7/8] [media] coda: split encoder specific parts out of device_run and irq_handler

2013-06-17 Thread Philipp Zabel
() equivalents. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 82 +-- 1 file changed, 48 insertions(+), 34 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 856a93e..e8b3708

[PATCH 1/8] [media] coda: use vb2_set_plane_payload instead of setting v4l2_planes[0].bytesused directly

2013-06-17 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index c4566c4..90f3386 100644 --- a/drivers/media/platform/coda.c

[PATCH 5/8] [media] coda: add bitstream ringbuffer handling for decoder

2013-06-17 Thread Philipp Zabel
Add a bitstream ringbuffer using kfifo. Queued source buffers are to be copied into the bitstream ringbuffer immediately and marked as done, if possible. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 134

[PATCH 6/8] [media] coda: dynamic IRAM setup for decoder

2013-06-17 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 50 +-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 1f3bd43..856a93e 100644

[PATCH 8/8] [media] coda: add CODA7541 decoding support

2013-06-17 Thread Philipp Zabel
, and then device_run is called, bail out. For that the interrupt handler has to be threaded. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 785 ++ drivers/media/platform/coda.h | 84 + 2 files changed, 811 insertions(+), 58

[PATCH 4/8] [media] coda: update CODA7541 to firmware 1.4.50

2013-06-17 Thread Philipp Zabel
. This allows more than four active contexts at the same time. All auxiliary buffers are now allocated through a helper function to avoid code duplication. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 235 +++--- drivers

[PATCH 2/8] [media] coda: dynamic IRAM setup for encoder

2013-06-17 Thread Philipp Zabel
This sets up IRAM areas used as temporary memory for the different hardware units depending on the frame size. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 145 +++--- drivers/media/platform/coda.h | 11 +++- 2 files

Re: [PATCH 8/8] [media] coda: add CODA7541 decoding support

2013-06-18 Thread Philipp Zabel
Am Montag, den 17.06.2013, 16:59 +0200 schrieb Philipp Zabel: This patch enables decoding of h.264 and mpeg4 streams on CODA7541. Queued output buffers are immediately copied into the bitstream ringbuffer. A device_run can be scheduled whenever there is either enough compressed bitstream data

Re: [PATCH -next] [media] coda: fix missing unlock on error in coda_stop_streaming()

2013-06-18 Thread Philipp Zabel
Am Dienstag, den 18.06.2013, 13:00 +0800 schrieb Wei Yongjun: From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing unlock before return from function coda_stop_streaming() in the error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn ---

Re: [PATCH RESEND] media: coda: Fix DT-driver data pointer for i.MX27

2013-06-21 Thread Philipp Zabel
= coda_platform_ids[CODA_IMX27] }, + { .compatible = fsl,imx27-vpu, .data = coda_devdata[CODA_IMX27] }, { .compatible = fsl,imx53-vpu, .data = coda_devdata[CODA_IMX53] }, { /* sentinel */ } }; Acked-by: Philipp Zabel p.za...@pengutronix.de thanks Philipp -- To unsubscribe from

[PATCH v2 6/8] [media] coda: dynamic IRAM setup for decoder

2013-06-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 50 +-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 1f3bd43..856a93e 100644

[PATCH v2 4/8] [media] coda: update CODA7541 to firmware 1.4.50

2013-06-21 Thread Philipp Zabel
. This allows more than four active contexts at the same time. All auxiliary buffers are now allocated through a helper function to avoid code duplication. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 235 +++--- drivers

[PATCH v2 1/8] [media] coda: use vb2_set_plane_payload instead of setting v4l2_planes[0].bytesused directly

2013-06-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index c4566c4..90f3386 100644 --- a/drivers/media/platform/coda.c

[PATCH v2 0/8] CODA7541 decoding support

2013-06-21 Thread Philipp Zabel
The following patch series depends on the CODA patches queued in Kamil's branch and on the mem2mem: add support for hardware buffered queue patch I've posted earlier. It should allow decoding h.264 high profile 1080p streams on i.MX53 with the current CODA7541 firmware version 1.4.50. Changes

[PATCH v2 7/8] [media] coda: split encoder specific parts out of device_run and irq_handler

2013-06-21 Thread Philipp Zabel
() equivalents. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 82 +-- 1 file changed, 48 insertions(+), 34 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 856a93e..e8b3708

[PATCH v2 3/8] [media] coda: do not allocate maximum number of framebuffers for encoder

2013-06-21 Thread Philipp Zabel
The encoder only ever needs two buffers, but we'll have to increase CODA_MAX_FRAMEBUFFERS for the decoder. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda.c b

[PATCH v2 8/8] [media] coda: add CODA7541 decoding support

2013-06-21 Thread Philipp Zabel
, and then device_run is called, bail out. For that the interrupt handler has to be threaded. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Included the fix by Wei Yongjun, adding a missing unlock in the coda_stop_streaming() error handling case. - Restricted check for available

Re: [PATCH 2/3] media: coda: Add driver for Coda video codec.

2012-07-09 Thread Philipp Zabel
Am Montag, den 09.07.2012, 10:07 +0200 schrieb javier Martin: [...] +static int vidioc_s_parm(struct file *file, void *priv, struct v4l2_streamparm *a) +{ + struct coda_ctx *ctx = fh_to_ctx(priv); + + if (a-type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { + if

Re: [PATCH 2/3] media: coda: Add driver for Coda video codec.

2012-07-09 Thread Philipp Zabel
Am Montag, den 09.07.2012, 10:14 +0200 schrieb javier Martin: [...] +enum coda_platform { + CODA_INVALID = 0, I don't think CODA_INVALID is useful. It is, otherwise the following will fail since CODA_IMX27 is 0: if (of_id) dev-devtype = of_id-data;

Re: [PATCH v3] media: coda: Add driver for Coda video codec.

2012-07-18 Thread Philipp Zabel
a Reviewed-by: Philipp Zabel p.za...@pengutronix.de regards Philipp -- 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 v3] media: coda: Add driver for Coda video codec.

2012-07-18 Thread Philipp Zabel
Hi Javier, Am Mittwoch, den 18.07.2012, 11:01 +0200 schrieb javier Martin: On 18 July 2012 10:35, Philipp Zabel p.za...@pengutronix.de wrote: Hi Javier, Am Mittwoch, den 18.07.2012, 09:12 +0200 schrieb javier Martin: [...] I see there is a comment about the expected register setting

Re: [PATCH/RFC v3 06/19] video: display: OF support

2013-09-04 Thread Philipp Zabel
Hi Laurent, Am Samstag, den 10.08.2013, 01:03 +0200 schrieb Laurent Pinchart: Extend the notifier with DT node matching support, and add helper functions to build the notifier and link entities based on a graph representation in DT. Signed-off-by: Laurent Pinchart

Re: [PATCH/RFC v3 06/19] video: display: OF support

2013-09-11 Thread Philipp Zabel
Am Mittwoch, den 11.09.2013, 13:33 +0200 schrieb Laurent Pinchart: Hi Philipp, On Wednesday 04 September 2013 16:21:38 Philipp Zabel wrote: Am Samstag, den 10.08.2013, 01:03 +0200 schrieb Laurent Pinchart: Extend the notifier with DT node matching support, and add helper functions

Re: [PATCH v8 12/12] V4L: Add driver for s5k4e5 image sensor

2013-09-13 Thread Philipp Zabel
Hi Arun, Am Donnerstag, den 12.09.2013, 17:37 +0530 schrieb Arun Kumar K: This patch adds subdev driver for Samsung S5K4E5 raw image sensor. Like s5k6a3, it is also another fimc-is firmware controlled sensor. This minimal sensor driver doesn't do any I2C communications as its done by ISP

Re: [PATCH RFC 1/7] V4L: Add mem2mem ioctl and file operation helpers

2013-09-13 Thread Philipp Zabel
Hi Sylwester, Am Freitag, den 13.09.2013, 14:56 +0200 schrieb Sylwester Nawrocki: This patch adds ioctl helpers to the V4L2 mem-to-mem API, so we can avoid several ioctl handlers in the mem-to-mem video node drivers that are simply a pass-through to the v4l2_m2m_* calls. These helpers will

Re: [PATCH RFC 2/7] mem2mem_testdev: Use mem-to-mem ioctl and vb2 helpers

2013-09-16 Thread Philipp Zabel
Hi Sylwester, Am Sonntag, den 15.09.2013, 22:58 +0200 schrieb Sylwester Nawrocki: Hi Philipp, On 09/13/2013 03:08 PM, Philipp Zabel wrote: Am Freitag, den 13.09.2013, 14:56 +0200 schrieb Sylwester Nawrocki: [...] @@ -865,6 +793,7 @@ static int queue_init(void *priv, struct vb2_queue

[PATCH] [media] videobuf2-core: call __setup_offsets only for mmap memory type

2013-09-19 Thread Philipp Zabel
__setup_offsets fills the v4l2_planes' mem_offset fields, which is only valid for V4L2_MEMORY_MMAP type buffers. For V4L2_MEMORY_DMABUF and _USERPTR buffers, this incorrectly overwrites the fd and userptr fields. Reported-by: Michael Olbrich m.olbr...@pengutronix.de Signed-off-by: Philipp Zabel

[PATCH] [media] v4l2-mem2mem: fix context removal from job queue in v4l2_m2m_streamoff

2013-09-19 Thread Philipp Zabel
Just clearing the m2m_ctx-queue list_head will leave the m2m_dev-job_queue in a broken state and can cause scheduling of device_runs after streamoff was called. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/v4l2-core/v4l2-mem2mem.c | 3 ++- 1 file changed, 2 insertions

[PATCH] [media] v4l2-mem2mem: clear m2m queue ready counter in v4l2_m2m_streamoff

2013-09-19 Thread Philipp Zabel
v4l2_m2m_streamoff drops the list of ready buffers but failed to reset the num_rdy counter to zero. This would lead to v4l2_m2m_num_src/dst_bufs_ready reporting wrong values after streamoff. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/v4l2-core/v4l2-mem2mem.c | 1 + 1

Re: [PATCH] [media] videobuf2-core: call __setup_offsets only for mmap memory type

2013-09-19 Thread Philipp Zabel
Hi Pawel, Am Donnerstag, den 19.09.2013, 16:54 +0900 schrieb Pawel Osciak: On Thu, Sep 19, 2013 at 4:37 PM, Philipp Zabel p.za...@pengutronix.de wrote: __setup_offsets fills the v4l2_planes' mem_offset fields, which is only valid for V4L2_MEMORY_MMAP type buffers. For V4L2_MEMORY_DMABUF

[PATCH 02/10] [media] coda: only set buffered input queue for decoder

2013-09-19 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 2805538..945c539 100644 --- a/drivers/media/platform/coda.c +++ b

[PATCH 01/10] [media] coda: allow more than four instances on CODA7541

2013-09-19 Thread Philipp Zabel
With the new firmware, there are not anymore four register sets, but a single register set, which the driver has to conserve across context switches. This allows to handle more than four instances at the same time. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform

[PATCH 06/10] [media] coda: use picture type returned from hardware

2013-09-19 Thread Philipp Zabel
Instead of copying v4l2_buf.flags from the source buffer, set the destination buffer flags as reported by the hardware codec. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media

[PATCH 0/10] CODA driver fixes

2013-09-19 Thread Philipp Zabel
This series contains a few fixes for the CODA driver to allow more than four simultaneous instances on i.MX53, and to make v4l2-compliance a bit happier. regards Philipp --- drivers/media/platform/coda.c | 281 ++ 1 file changed, 175 insertions(+), 106

[PATCH 04/10] [media] coda: fix FMO value setting for CodaDx6

2013-09-19 Thread Philipp Zabel
The register is only written on CodaDx6, so the temporary variable to be written only needs to be initialized on CodaDx6. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media

[PATCH 10/10] [media] coda: v4l2-compliance fix: zero pixel format priv field

2013-09-19 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index d15238a..6dec34d 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform

[PATCH 05/10] [media] coda: move coda_product_name above vidioc_querycap

2013-09-19 Thread Philipp Zabel
Use the product name (currently CodaDx6 or CODA7541) to fill the v4l2_capabilities.name field. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers

[PATCH 03/10] [media] coda: add compressed flag to format enumeration output

2013-09-19 Thread Philipp Zabel
Correctly flag compressed formats in the ENUM_FMT ioctl output. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 945c539..53539c1 100644

[PATCH 08/10] [media] coda: v4l2-compliance fix: overwrite invalid pixel formats with the current setting

2013-09-19 Thread Philipp Zabel
This patch fixes the v4l2-compliance TRY_FMT(G_FMT) != G_FMT issue. The driver now overwrites invalid formats with the current setting, using coda_get_max_dimensions to find device specific max width/height. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c

[PATCH 09/10] [media] coda: v4l2-compliance fix: implement decoder_try_cmd

2013-09-19 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 1d44a4b..d15238a 100644 --- a/drivers/media

[PATCH 07/10] [media] coda: prefix v4l2_ioctl_ops with coda_

2013-09-19 Thread Philipp Zabel
Moving the ioctl handler callbacks into the coda namespace helps tremendously to make sense of backtraces. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 123 +- 1 file changed, 63 insertions(+), 60 deletions

Re: iram pool not available for MX27

2013-09-30 Thread Philipp Zabel
Hi Chris, Am Montag, den 30.09.2013, 13:40 +0800 schrieb Chris Ruehl: Hi Phillipp, hope things doing OK. I recently update to the 3.12-rc kernel and hit this problem below. [ 3.377790] coda coda-imx27.0: iram pool not available [ 3.383363] coda: probe of coda-imx27.0 failed with error

Re: [PATCH 04/10] [media] coda: fix FMO value setting for CodaDx6

2013-09-30 Thread Philipp Zabel
Am Montag, den 30.09.2013, 13:48 +0200 schrieb Hans Verkuil: On 09/19/2013 11:13 AM, Philipp Zabel wrote: The register is only written on CodaDx6, so the temporary variable to be written only needs to be initialized on CodaDx6. Signed-off-by: Philipp Zabel p.za...@pengutronix.de

Re: [PATCH 07/10] [media] coda: prefix v4l2_ioctl_ops with coda_

2013-09-30 Thread Philipp Zabel
Am Montag, den 30.09.2013, 13:50 +0200 schrieb Hans Verkuil: On 09/19/2013 11:13 AM, Philipp Zabel wrote: Moving the ioctl handler callbacks into the coda namespace helps tremendously to make sense of backtraces. I like the idea, but I would just use the coda_ prefix, not coda_vidioc_

[PATCH v2 01/10] [media] coda: allow more than four instances on CODA7541

2013-09-30 Thread Philipp Zabel
With the new firmware, there are not anymore four register sets, but a single register set, which the driver has to conserve across context switches. This allows to handle more than four instances at the same time. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform

[PATCH v2 03/10] [media] coda: add compressed flag to format enumeration output

2013-09-30 Thread Philipp Zabel
Correctly flag compressed formats in the ENUM_FMT ioctl output. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 945c539..53539c1 100644

[PATCH v2 06/10] [media] coda: use picture type returned from hardware

2013-09-30 Thread Philipp Zabel
Instead of copying v4l2_buf.flags from the source buffer, set the destination buffer flags as reported by the hardware codec. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media

[PATCH v2 09/10] [media] coda: v4l2-compliance fix: implement try_decoder_cmd

2013-09-30 Thread Philipp Zabel
Implement try_decoder_cmd to let userspace determine available commands and flags. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/coda.c

[PATCH v2 07/10] [media] coda: prefix v4l2_ioctl_ops with coda_ instead of vidioc_

2013-09-30 Thread Philipp Zabel
Moving the ioctl handler callbacks into the coda namespace helps tremendously to make sense of backtraces. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Use coda_ instead of coda_vidioc_ prefix --- drivers/media/platform/coda.c | 123

[PATCH v2 08/10] [media] coda: v4l2-compliance fix: overwrite invalid pixel formats with the current setting

2013-09-30 Thread Philipp Zabel
This patch fixes the v4l2-compliance TRY_FMT(G_FMT) != G_FMT issue. The driver now overwrites invalid formats with the current setting, using coda_get_max_dimensions to find device specific max width/height. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c

[PATCH v2 10/10] [media] coda: v4l2-compliance fix: zero pixel format priv field

2013-09-30 Thread Philipp Zabel
If unused, the pixel format priv field has to be cleared by the driver in try_fmt. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Clear pixel format priv in try_fmt only --- drivers/media/platform/coda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH v2 0/10] CODA driver fixes

2013-09-30 Thread Philipp Zabel
This series contains a few fixes for the CODA driver to allow more than four simultaneous instances on i.MX53, and to make v4l2-compliance a bit happier. Changes since v1: - Removed no-op lines leaving FMOPARAM fields of CMD_ENC_SEQ_FMO at zero values on CodaDx6. - Use coda_ instead of

[PATCH v2 05/10] [media] coda: move coda_product_name above vidioc_querycap

2013-09-30 Thread Philipp Zabel
Use the product name (currently CodaDx6 or CODA7541) to fill the v4l2_capabilities.name field. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers

[PATCH v2 02/10] [media] coda: only set buffered input queue for decoder

2013-09-30 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 2805538..945c539 100644 --- a/drivers/media/platform/coda.c +++ b

[PATCH v2 04/10] [media] coda: fix FMO value setting for CodaDx6

2013-09-30 Thread Philipp Zabel
The register is only written on CodaDx6, so the temporary variable to be written only needs to be initialized on CodaDx6. Also, drop two no-op lines. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Removed no-op lines leaving FMOPARAM fields of CMD_ENC_SEQ_FMO

Re: [PATCH] [media] v4l: vb2-dma-contig: add support for file access mode flags for DMABUF exporting

2013-10-08 Thread Philipp Zabel
is needed to map videobuf2 exported dmabuf fds writeable from userspace, for example for timestamp software rendering into frames passing from a v4l2 capture device to a v4l2 output device. regards Philipp On 05/21/2013 10:11 AM, Philipp Zabel wrote: Currently it is not possible for userspace

Re: [PATCH] media: coda: Fix H.264 header alignment.

2012-10-29 Thread Philipp Zabel
Hi Javier, Am Montag, den 29.10.2012, 10:20 +0100 schrieb javier.mar...@vista-silicon.com: From: Javier Martin javier.mar...@vista-silicon.com Length of H.264 headers is variable and thus it might not be aligned for the coda to append the encoded frame. This causes the first frame to

Re: [RFC v2 0/5] Common Display Framework

2012-11-25 Thread Philipp Zabel
Hi Thierry, Am Freitag, den 23.11.2012, 20:56 +0100 schrieb Thierry Reding: On Thu, Nov 22, 2012 at 10:45:31PM +0100, Laurent Pinchart wrote: [...] Display entities are accessed by driver using notifiers. Any driver can register a display entity notifier with the CDF, which then calls the

Re: [RFC v2 2/5] video: panel: Add DPI panel support

2012-11-30 Thread Philipp Zabel
height; /* Panel height in mm */ + const struct videomode *mode; +}; + +#endif /* __PANEL_DPI_H__ */ From: Philipp Zabel p.za...@pengutronix.de Date: Thu, 29 Nov 2012 19:18:30 +0100 Subject: [PATCH] video: panel: Add device tree support to the DPI panel driver Signed-off

Re: [PATCHv15 3/7] video: add of helper for display timings/videomode

2012-12-07 Thread Philipp Zabel
Hi, Am Montag, den 26.11.2012, 18:56 +0200 schrieb Tomi Valkeinen: On 2012-11-26 18:10, Steffen Trumtrar wrote: Hi, On Mon, Nov 26, 2012 at 04:38:36PM +0200, Tomi Valkeinen wrote: +optional properties: + - hsync-active: hsync pulse is active low/high/ignored + - vsync-active:

[PATCH 0/12] Initial i.MX5/CODA7 support for the CODA driver

2012-08-24 Thread Philipp Zabel
These patches contain initial firmware loading and encoding support for the CODA7 series VPU contained in i.MX51 and i.MX53 SoCs, and fix some multi-instance issues. regards Philipp --- arch/arm/boot/dts/imx51.dtsi|6 + arch/arm/boot/dts/imx53.dtsi|7 ++

[PATCH 02/12] coda: add i.MX53 / CODA7541 platform support

2012-08-24 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/video/coda.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/media/video/coda.c b/drivers/media/video/coda.c index 86dae17..aa12b7b 100644 --- a/drivers/media/video/coda.c

[PATCH 03/12] coda: fix IRAM/AXI handling for i.MX53

2012-08-24 Thread Philipp Zabel
This uses the genalloc API to allocate a work buffer in the SoC's on-chip SRAM and sets up the AXI_SRAM_USE register. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/video/Kconfig |3 ++- drivers/media/video/coda.c | 61

[PATCH 01/12] coda: firmware loading for 64-bit AXI bus width

2012-08-24 Thread Philipp Zabel
Add support for loading a raw firmware with 16-bit chars ordered in little-endian 64-bit words, corresponding to the memory access pattern of CODA7 and above: When writing the boot code into the code download register, the chars have to be reordered back. Signed-off-by: Philipp Zabel p.za

[PATCH 12/12] ARM i.MX5: Add CODA7 to device tree for i.MX51 and i.MX53

2012-08-24 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/boot/dts/imx51.dtsi |6 ++ arch/arm/boot/dts/imx53.dtsi |7 +++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi index bfa65ab..8e23068 100644 --- a/arch/arm

  1   2   3   4   5   6   7   8   9   10   >