[RFC PATCH 1/2] [media] videodev2: Add V4L2_BUF_FLAG_LAST

2015-01-22 Thread Philipp Zabel
From: Peter Seiderer ps.rep...@gmx.net This v4l2_buffer flag can be used by drivers to mark a capture buffer as the last generated buffer, for example after a V4L2_DEC_CMD_STOP command was issued. Signed-off-by: Peter Seiderer ps.rep...@gmx.net Signed-off-by: Philipp Zabel p.za...@pengutronix.de

[RFC PATCH 2/2] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-01-22 Thread Philipp Zabel
If the last buffer was dequeued from a capture queue, let poll return immediately and let DQBUF return -EPIPE to signal there will no more buffers to dequeue until STREAMOFF. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- TODO: (How) should the last_buffer_dequeud flag be cleared

Re: coda: not generating EOS event

2015-01-22 Thread Philipp Zabel
Hi, Am Donnerstag, den 11.12.2014, 15:47 +0100 schrieb Hans Verkuil: Hi Pawel, On 12/11/14 15:42, Nicolas Dufresne wrote: Le jeudi 11 décembre 2014 à 11:00 -0200, Fabio Estevam a écrit : Hi, I am running Gstreamer 1.4.4 with on a imx6q-sabresd board and I am able to decode a video

Re: [RFC PATCH] [media] coda: Use S_PARM to set nominal framerate for h.264 encoder

2015-01-12 Thread Philipp Zabel
Hi Hans, thank you for the comments! Am Montag, den 12.01.2015, 16:03 +0100 schrieb Hans Verkuil: On 12/22/2014 05:00 PM, Philipp Zabel wrote: The encoder needs to know the nominal framerate for the constant bitrate control mechanism to work. Currently the only way to set the framerate

Re: [RFC v01] Driver for Toshiba TC358743 CSI-2 to HDMI bridge

2015-01-08 Thread Philipp Zabel
Hi Mats, Am Montag, den 15.12.2014, 19:21 +0100 schrieb matra...@cisco.com: From: Mats Randgaard matra...@cisco.com The driver is tested on our hardware and all the implemented features works as expected. Missing features: - CEC support - HDCP repeater support - IR support

Re: [PATCH v6 3/3] of: Add of_graph_get_port_by_id function

2014-12-23 Thread Philipp Zabel
Hi Andrzej, On Tue, Dec 23, 2014 at 12:10:00PM +0100, Andrzej Hajda wrote: [...] /** + * of_graph_get_port_by_id() - get the port matching a given id + * @parent: pointer to the parent device node Here you have 'parent' and 'node' in the code. [...] Maybe I miss something but it does

Re: [PATCH v6 1/3] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-12-23 Thread Philipp Zabel
On Mon, Dec 22, 2014 at 02:09:46PM -0700, Mathieu Poirier wrote: On 22 December 2014 at 08:11, Philipp Zabel p.za...@pengutronix.de wrote: Decrementing the reference count of the previous endpoint node allows to use the of_graph_get_next_endpoint function in a for_each_... style macro. All

[PATCH v7 0/3] Add of-graph helpers to loop over endpoints and find ports by id

2014-12-23 Thread Philipp Zabel
. - Added Mathieu's ack to the first patch. The previous version can be found here: https://lkml.org/lkml/2014/12/22/220 regards Philipp Philipp Zabel (3): of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint of: Add for_each_endpoint_of_node helper macro of: Add

[PATCH v7 1/3] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-12-23 Thread Philipp Zabel
to not decrement the passed prev argument's refcount themselves. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com Acked-by: Mathieu Poirier mathieu.poir...@linaro.org --- Changes since v6: - Added omap2-dss. - Added Mathieu's ack. --- drivers

[PATCH v7 2/3] of: Add for_each_endpoint_of_node helper macro

2014-12-23 Thread Philipp Zabel
Note that while of_graph_get_next_endpoint decrements the reference count of the child node passed to it, of_node_put(child) still has to be called manually when breaking out of the loop. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch

[PATCH v7 3/3] of: Add of_graph_get_port_by_id function

2014-12-23 Thread Philipp Zabel
This patch adds a function to get a port device tree node by port id, or reg property value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- Changes since v6: - Fixed of_graph_get_port_by_id to handle the optional 'ports' node

[PATCH v6 2/3] of: Add for_each_endpoint_of_node helper macro

2014-12-22 Thread Philipp Zabel
Note that while of_graph_get_next_endpoint decrements the reference count of the child node passed to it, of_node_put(child) still has to be called manually when breaking out of the loop. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch

[PATCH v6 3/3] of: Add of_graph_get_port_by_id function

2014-12-22 Thread Philipp Zabel
This patch adds a function to get a port device tree node by port id, or reg property value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/of/base.c| 26 ++ include/linux/of_graph.h

[PATCH v6 1/3] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-12-22 Thread Philipp Zabel
argument's refcount themselves. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com --- Changes since v5: - Rebased onto v3.19-rc1 - Added coresight and rcar-du --- drivers/coresight/of_coresight.c | 13 ++--- drivers

[PATCH v6 0/3] Add of-graph helpers to loop over endpoints and find ports by id

2014-12-22 Thread Philipp Zabel
. The previous version can be found here: https://lkml.org/lkml/2014/9/29/529 regards Philipp Philipp Zabel (3): of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint of: Add for_each_endpoint_of_node helper macro of: Add of_graph_get_port_by_id function drivers

[RFC PATCH] [media] coda: Use S_PARM to set nominal framerate for h.264 encoder

2014-12-22 Thread Philipp Zabel
The encoder needs to know the nominal framerate for the constant bitrate control mechanism to work. Currently the only way to set the framerate is by using VIDIOC_S_PARM on the output queue. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 29

Re: coda: Unable to use encoder video_bitrate

2014-12-22 Thread Philipp Zabel
Hi Frédéric, On Mon, Dec 22, 2014 at 04:24:20PM +0100, Frédéric Sureau wrote: Thanks for the patch! It works fine now after forcing framerate to 30fps (which seems to be hardcoded in the driver) That is a good point, rate control can only work if the encoder has an idea about the framerate.

Re: coda: Unable to use encoder video_bitrate

2014-12-19 Thread Philipp Zabel
Hi Jean-Michel, Am Donnerstag, den 18.12.2014, 18:10 +0100 schrieb Jean-Michel Hautbois: Sorry, forgot to put all of you on Cc: for the [media] coda: fix encoder rate control parameter masks patch. The coda driver is in drivers/media/platform/coda, register definitions in coda_regs.h. The

[PATCH 1/2] [media] coda: fix encoder rate control parameter masks

2014-12-18 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 p.za...@pengutronix.de --- drivers/media/platform/coda/coda_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media

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

2014-12-18 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- 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 42b4630..74261d9 100644 --- a/drivers

Re: coda: Unable to use encoder video_bitrate

2014-12-18 Thread Philipp Zabel
Hi Frédéric, Am Donnerstag, den 18.12.2014, 17:44 +0100 schrieb Frédéric Sureau: Hi I am trying to use the coda encoder through Gstreamer on an iMX6-based board. I use the (rebased and slightly modified) gstv4l2h264enc plugin from: https://github.com/hizukiayaka/gst-plugins-good This

Re: coda: Unable to use encoder video_bitrate

2014-12-18 Thread Philipp Zabel
Hi Jean-Michel, Am Donnerstag, den 18.12.2014, 17:55 +0100 schrieb Jean-Michel Hautbois: Hi Philipp, 2014-12-18 17:52 GMT+01:00 Philipp Zabel p.za...@pengutronix.de: Hi Frédéric, Am Donnerstag, den 18.12.2014, 17:44 +0100 schrieb Frédéric Sureau: Hi I am trying to use the coda

Re: [PATCH] Add LVDS RGB media bus formats

2014-12-15 Thread Philipp Zabel
Hi Sakari, Am Samstag, den 13.12.2014, 01:07 +0200 schrieb Sakari Ailus: [...] diff --git a/Documentation/DocBook/media/v4l/subdev-formats.xml b/Documentation/DocBook/media/v4l/subdev-formats.xml index 0d6f731..6d59a0e 100644 --- a/Documentation/DocBook/media/v4l/subdev-formats.xml +++

[PATCH] Add LVDS RGB media bus formats

2014-12-12 Thread Philipp Zabel
This patch adds three new RGB media bus formats that describe 18-bit or 24-bit samples transferred over an LVDS bus with three or four differential data pairs, serialized into 7 time slots, using standard SPWG/PSWG/VESA or JEIDA data ordering. Signed-off-by: Philipp Zabel p.za...@pengutronix.de

Re: VPU on iMX51 babbage board

2014-12-12 Thread Philipp Zabel
Am Freitag, den 12.12.2014, 10:15 +0100 schrieb Pierluigi Passaro: On 11/12/2014 15:03, Philipp Zabel wrote: Am Mittwoch, den 10.12.2014, 22:04 -0200 schrieb Fabio Estevam: On Wed, Dec 10, 2014 at 7:54 PM, Pierluigi Passaro pierluigi.pass...@phoenixsoftware.it wrote: Hi all, I'm trying

Re: [PATCH] Add LVDS RGB media bus formats

2014-12-04 Thread Philipp Zabel
Hi Sakari, Am Mittwoch, den 03.12.2014, 17:47 +0200 schrieb Sakari Ailus: Hi Philipp, On Tue, Dec 02, 2014 at 08:41:24PM +0100, Philipp Zabel wrote: This patch adds three new RGB media bus formats that describe 18-bit or 24-bit samples transferred over an LVDS bus with three or four

[PATCH 3/3] Add RGB666_1X24_CPADHI media bus format

2014-12-03 Thread Philipp Zabel
this connection. Cc: Emil Renner Berthing ker...@esmil.dk Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Documentation/DocBook/media/v4l/subdev-formats.xml | 30 ++ include/uapi/linux/media-bus-format.h | 1 + 2 files changed, 31 insertions(+) diff --git

[PATCH 1/3] Add BGR888_1X24 and GBR888_1X24 media bus formats

2014-12-03 Thread Philipp Zabel
This patch adds two more 24-bit RGB formats. BGR888 is more or less common, GBR888 is used on the internal connection between the IPU display interface and the TVE (VGA DAC) on i.MX53 SoCs. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Documentation/DocBook/media/v4l/subdev-formats.xml

[PATCH 2/3] Add YUV8_1X24 media bus format

2014-12-03 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Documentation/DocBook/media/v4l/subdev-formats.xml | 37 ++ include/uapi/linux/media-bus-format.h | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v4l/subdev

Re: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-03 Thread Philipp Zabel
b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. For the coda part, Acked-by: Philipp Zabel p.za...@pengutronix.de regards Philipp -- To unsubscribe from

Re: [PATCH 1/3] Add BGR888_1X24 and GBR888_1X24 media bus formats

2014-12-03 Thread Philipp Zabel
Am Mittwoch, den 03.12.2014, 14:48 +0200 schrieb Laurent Pinchart: Hi Philipp, Thank you for the patch. Thank you for the comments. I'll fix the issues you pointed out and resend. On Wednesday 03 December 2014 11:28:18 Philipp Zabel wrote: This patch adds two more 24-bit RGB formats

[PATCH v2 2/3] Add YUV8_1X24 media bus format

2014-12-03 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- Documentation/DocBook/media/v4l/subdev-formats.xml | 37 ++ include/uapi/linux/media-bus-format.h | 3 +- 2 files changed, 39 insertions(+), 1

[PATCH 3/3] Add RGB666_1X24_CPADHI media bus format

2014-12-03 Thread Philipp Zabel
this connection. Cc: Emil Renner Berthing ker...@esmil.dk Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Added missing /* RGB - next is ... */ comment update --- Documentation/DocBook/media/v4l/subdev-formats.xml | 30 ++ include/uapi/linux/media-bus-format.h

[PATCH v2 1/3] Add BGR888_1X24 and GBR888_1X24 media bus formats

2014-12-03 Thread Philipp Zabel
This patch adds two more 24-bit RGB formats. BGR888 is more or less common, GBR888 is used on the internal connection between the IPU display interface and the TVE (VGA DAC) on i.MX53 SoCs. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch

[PATCH] Add LVDS RGB media bus formats

2014-12-02 Thread Philipp Zabel
This patch adds three new RGB media bus formats that describe 18-bit or 24-bit samples transferred over an LVDS bus with three or four differential data pairs, serialized into 7 time slots, using standard SPWG/PSWG/VESA or JEIDA data ordering. Signed-off-by: Philipp Zabel p.za...@pengutronix.de

Re: [PATCH v5 1/6] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-12-01 Thread Philipp Zabel
Am Sonntag, den 09.11.2014, 16:51 +0100 schrieb Guennadi Liakhovetski: On Sun, 9 Nov 2014, Philipp Zabel wrote: Hi Guennadi, On Fri, Nov 07, 2014 at 11:06:21PM +0100, Guennadi Liakhovetski wrote: Hi Philipp, Thanks for the patch and sorry for a late reply. I did look at your

Re: [PATCH 1/3] staging: imx-drm: document internal HDMI I2C master controller DT binding

2014-12-01 Thread Philipp Zabel
may be represented by one of general purpose I2C busses found on SoC. Signed-off-by: Vladimir Zapolskiy vladimir_zapols...@mentor.com Cc: Wolfram Sang w...@the-dreams.de Cc: Philipp Zabel p.za...@pengutronix.de Cc: Shawn Guo shawn@linaro.org Cc: devicet...@vger.kernel.org Cc

Re: [PATCH 1/3] staging: imx-drm: document internal HDMI I2C master controller DT binding

2014-12-01 Thread Philipp Zabel
Hi Vladimir, [Added Andy Yan to Cc:, because imx-hdmi-dw-hdmi] Am Montag, den 01.12.2014, 17:39 +0200 schrieb Vladimir Zapolskiy: On 01.12.2014 17:11, Philipp Zabel wrote: Am Montag, den 01.12.2014, 16:54 +0200 schrieb Vladimir Zapolskiy: Hi Philipp and Shawn, On 15.11.2014 19:49

Re: i.MX6 CODA960 encoder

2014-11-28 Thread Philipp Zabel
Am Donnerstag, den 27.11.2014, 16:10 -0200 schrieb Fabio Estevam: On Thu, Nov 27, 2014 at 3:54 PM, Jean-Michel Hautbois jean-michel.hautb...@vodalys.com wrote: I don't have the same behaviour, but I may have missed a patch. I have taken linux-next and rebased my work on it. I have some

Re: i.MX6 CODA960 encoder

2014-11-26 Thread Philipp Zabel
Hi Jean-Michel, Am Mittwoch, den 26.11.2014, 14:33 +0100 schrieb Jean-Michel Hautbois: Hi, We are writing a gstreamer plugin to support CODA960 encoder on i.MX6, and it is not working so now trying to use v4l2-ctl for the moment. As I am asking about encoder, is there a way to make it

Re: Connecting ADV76xx to CSI via SFMC

2014-11-25 Thread Philipp Zabel
Hi Jean-Michel, Am Montag, den 24.11.2014, 16:19 +0100 schrieb Jean-Michel Hautbois: Hi, I am working on using the CSI bus of i.MX6 with a adv7611 chip. I started to work with Steve Longerbeam's tree, and here is the current tree I am using :

Re: [PATCH v5 1/6] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-11-09 Thread Philipp Zabel
Hi Guennadi, On Fri, Nov 07, 2014 at 11:06:21PM +0100, Guennadi Liakhovetski wrote: Hi Philipp, Thanks for the patch and sorry for a late reply. I did look at your patches earlier too, but maybe not attentively enough, or maybe I'm misunderstanding something now. In the scan_of_host()

Re: [PATCH v3 09/10] gpu: ipu-v3: Make use of media_bus_format enum

2014-11-07 Thread Philipp Zabel
definitions in the ipu-v3 driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Acked-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

[PATCH] MAINTAINERS: add maintainer for CODA video4linux mem2mem driver

2014-11-04 Thread Philipp Zabel
Add myself as maintainer for the CODA V4L2 mem2mem driver. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3c64271..34d3671 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2487,6

Re: [PATCH 4/5] [media] vivid: add support for contiguous DMA buffers

2014-11-04 Thread Philipp Zabel
Hi Hans, Am Montag, den 03.11.2014, 14:38 +0100 schrieb Hans Verkuil: Hi Philipp, I've been playing with this and I cannot make it work. One thing that is missing in this patch is that the device struct isn't passed to v4l2_device_register. Without that the vb2 allocation context will

Re: [PATCH v5 1/6] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-11-03 Thread Philipp Zabel
Hi Mauro, Guennadi, Am Dienstag, den 30.09.2014, 10:06 +0200 schrieb Philipp Zabel: Am Montag, den 29.09.2014, 18:10 -0400 schrieb Greg Kroah-Hartman: On Mon, Sep 29, 2014 at 08:03:34PM +0200, Philipp Zabel wrote: Decrementing the reference count of the previous endpoint node allows

Re: [PATCH v2] [media] coda: Improve runtime PM support

2014-10-23 Thread Philipp Zabel
Hi Ulf, Am Montag, den 22.09.2014, 20:44 +0200 schrieb Ulf Hansson: On 22 September 2014 18:05, Philipp Zabel p.za...@pengutronix.de wrote: From: Ulf Hansson ulf.hans...@linaro.org For several reasons it's good practice to leave devices in runtime PM active state while those have been

Re: [PATCH v2] [media] coda: Improve runtime PM support

2014-10-23 Thread Philipp Zabel
Hi Ulf, Am Donnerstag, den 23.10.2014, 14:15 +0200 schrieb Ulf Hansson: At what point is the pm domain supposed to be enabled when I load the module? Hi Philipp, The PM domain shall be powered on prior your driver starts probing. This is a common problem when using the generic PM

Re: [media] CODA960: Fails to allocate memory

2014-10-22 Thread Philipp Zabel
Hi Jean-Michel, Am Mittwoch, den 22.10.2014, 11:21 +0200 schrieb Jean-Michel Hautbois: I may have misunderstand something... I try to encode, and modified the CODA_MAX_FRAME_SIZE to 0x50 just to see. And here is the trace-cmd : $ trace-cmd record -e v4l2* v4l2-ctl -d1

[PATCH 4/5] [media] vivid: add support for contiguous DMA buffers

2014-10-22 Thread Philipp Zabel
To simulate the behaviour of real hardware with such limitations or to connect vivid to real hardware with such limitations, add an option to let vivid use the dma-contig allocator instead of vmalloc. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/vivid/Kconfig

[PATCH 2/5] [media] vivid: remove unused videobuf2-vmalloc headers

2014-10-22 Thread Philipp Zabel
The videobuf2-vmalloc header is not used by the changed files, so remove it. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/vivid/vivid-kthread-cap.c | 1 - drivers/media/platform/vivid/vivid-kthread-out.c | 1 - drivers/media/platform/vivid/vivid-osd.c

[PATCH 3/5] [media] vivid: convert to platform device

2014-10-22 Thread Philipp Zabel
For contiguous DMA buffer allocation, a struct is needed that DMA buffers can be associated with. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/vivid/vivid-core.c | 37 +-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git

[PATCH 0/5] Contiguous DMA buffer support for the Virtual Video Test Driver

2014-10-22 Thread Philipp Zabel
device to vivid. There is a new 'allocators' module parameter array that selects the dma-contig allocator for an instance when the value is set to 1: modprobe vivid n_devs=2 allocators=1,1 regards Philipp Philipp Zabel (5): [media] vivid: select CONFIG_FB_CFB_FILLRECT/COPYAREA/IMAGEBLIT

[PATCH 5/5] [media] vivid: enable VIDIOC_EXPBUF

2014-10-22 Thread Philipp Zabel
Instances created with allocators == 1 use videobuf2-dma-contig, and are able to export DMA buffers via VIDIOC_EXPBUF. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/vivid/vivid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/5] [media] vivid: select CONFIG_FB_CFB_FILLRECT/COPYAREA/IMAGEBLIT

2014-10-22 Thread Philipp Zabel
The OSD simulation uses the framebuffer core functions, so vivid needs to select the corresponding configuration options. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/vivid/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform

Re: [PATCH 4/5] [media] vivid: add support for contiguous DMA buffers

2014-10-22 Thread Philipp Zabel
Am Mittwoch, den 22.10.2014, 12:14 +0200 schrieb Hans Verkuil: [...] diff --git a/drivers/media/platform/vivid/vivid-vid-cap.c b/drivers/media/platform/vivid/vivid-vid-cap.c index 331c544..04b5fbf 100644 --- a/drivers/media/platform/vivid/vivid-vid-cap.c +++

Re: [media] CODA960: Fails to allocate memory

2014-10-21 Thread Philipp Zabel
Hi Jean-Michel, Am Dienstag, den 21.10.2014, 17:39 +0200 schrieb Jean-Michel Hautbois: [...] And the output is now : v4l2-ctl -d1 --stream-out-mmap --stream-mmap --stream-to x.raw [ 6208.240919] coda 204.vpu: Not output type [ 6208.245316] coda 204.vpu: streamon_out (N), streamon_cap

[PATCH] [media] coda: re-queue buffers if start_streaming fails

2014-10-21 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index ced4760..23ace447 100644

[PATCH] [media] coda: drop JPEG buffers not framed by SOI and EOI markers

2014-10-08 Thread Philipp Zabel
This patch adds a quick check for valid JPEG frames before feeding them into the bitstream buffer: Frames that do not begin with the JPEG start of image marker and end with the end of image marker are dropped. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda

[PATCH] [media] coda: set bitstream end flag in coda_release

2014-10-08 Thread Philipp Zabel
This should fix CODA crashes due to timeouts when stopping the decoding process with SIGINT. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/coda/coda-common.c b

Re: [PATCH v2] [media] uvcvideo: Add quirk to force the Oculus DK2 IR tracker to grayscale

2014-10-06 Thread Philipp Zabel
Hi Laurent, On Mon, Oct 6, 2014 at 4:34 PM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: @@ -311,6 +311,7 @@ static int uvc_parse_format(struct uvc_device *dev, struct uvc_format_desc *fmtdesc; struct uvc_frame *frame; const unsigned char *start =

Re: [PATCH 1/3] [media] coda: Call v4l2_device_unregister() from a single location

2014-10-05 Thread Philipp Zabel
-by: Fabio Estevam fabio.este...@freescale.com Acked-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 2/3] [media] coda: Unregister v4l2 upon alloc_workqueue() error

2014-10-05 Thread Philipp Zabel
-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 3/3] [media] coda: Remove devm_kzalloc() error message

2014-10-05 Thread Philipp Zabel
Hi Fabio, On Sat, Oct 04, 2014 at 04:40:52PM -0300, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Core code already prints on OOM errors, so no need to keep this here. Signed-off-by: Fabio Estevam fabio.este...@freescale.com I already have sent this patch:

[PATCH v2 00/10] CODA7 JPEG support

2014-10-02 Thread Philipp Zabel
devices only register relevant controls now. regards Philipp Philipp Zabel (10): [media] coda: add support for planar YCbCr 4:2:2 (YUV422P) format [media] coda: identify platform device earlier [media] coda: add coda_video_device descriptors [media] coda: split out encoder control setup

[PATCH v2 06/10] [media] coda: add CODA7541 JPEG support

2014-10-02 Thread Philipp Zabel
, the JPEG format always reports V4L2_COLORSPACE_JPEG. Signed-off-by: Lucas Stach l.st...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/Makefile | 2 +- drivers/media/platform/coda/coda-bit.c| 103 +- drivers/media/platform

[PATCH v2 10/10] [media] coda: allow userspace to set compressed buffer size in a certain range

2014-10-02 Thread Philipp Zabel
the initial sizeimage to a value inside the range allowed by try_fmt. While at it, reduce the default image size to a maximum of 1920*1088 (otherwise JPEG will default to 8k*8k and 96 MiB buffers). Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 4

[PATCH v2 05/10] [media] coda: add JPEG register definitions for CODA7541

2014-10-02 Thread Philipp Zabel
Add JPEG specific sequence initialization registers and bit definitions. Signed-off-by: Lucas Stach l.st...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda_regs.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media

[PATCH v2 04/10] [media] coda: split out encoder control setup to specify controls per video device

2014-10-02 Thread Philipp Zabel
This patch splits the encoder specific controls out of the main control setup function. This way each video device registers only relevant controls. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Kept both H.264 and MPEG4 v4l2 controls for bitstream encoder device

[PATCH v2 08/10] [media] coda: pad input stream for JPEG decoder

2014-10-02 Thread Philipp Zabel
Before starting a PIC_RUN, pad the bitstream with 0xff until 256 bytes past the next multiple of 256 bytes, if the buffer to be decoded is the last buffer in the bitstream. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c | 20 1

[PATCH v2 02/10] [media] coda: identify platform device earlier

2014-10-02 Thread Philipp Zabel
We'll use this information to decide whether to request the JPEG IRQ later. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/media/platform/coda/coda

[PATCH v2 03/10] [media] coda: add coda_video_device descriptors

2014-10-02 Thread Philipp Zabel
/CODA7542 case and a separate hardware unit on CODA960. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Combined bitstream encoder devices --- drivers/media/platform/coda/coda-common.c | 350 +- drivers/media/platform/coda/coda.h

[PATCH v2 01/10] [media] coda: add support for planar YCbCr 4:2:2 (YUV422P) format

2014-10-02 Thread Philipp Zabel
This patch adds support for the three-plane YUV422P format with one luma plane and two horizontally subsampled chroma planes. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 14 +- drivers/media/platform/coda/coda-common.c | 13

[PATCH v2 07/10] [media] coda: store bitstream buffer position with buffer metadata

2014-10-02 Thread Philipp Zabel
that it contains more than only the buffer timestamp. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 53 ++- drivers/media/platform/coda/coda-common.c | 14 drivers/media/platform/coda/coda.h| 8 +++-- 3

Re: [PATCH 00/10] CODA7 JPEG support

2014-10-01 Thread Philipp Zabel
Am Mittwoch, den 01.10.2014, 09:33 -0400 schrieb Nicolas Dufresne: Le 2014-09-30 10:34, Kamil Debski a écrit : I agree with you Hans. MFC has a single encoder node that supports multiple codecs and I think this design works well. JPEG should be separated into separate device. Having

Re: [PATCH v5 1/6] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-09-30 Thread Philipp Zabel
Am Montag, den 29.09.2014, 18:10 -0400 schrieb Greg Kroah-Hartman: On Mon, Sep 29, 2014 at 08:03:34PM +0200, Philipp Zabel wrote: Decrementing the reference count of the previous endpoint node allows to use the of_graph_get_next_endpoint function in a for_each_... style macro. All current

[PATCH 06/10] [media] coda: add CODA7541 JPEG support

2014-09-30 Thread Philipp Zabel
V4L2_COLORSPACE_JPEG. Signed-off-by: Lucas Stach l.st...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/Makefile | 2 +- drivers/media/platform/coda/coda-bit.c| 103 +- drivers/media/platform/coda/coda-common.c | 112

[PATCH 05/10] [media] coda: add JPEG register definitions for CODA7541

2014-09-30 Thread Philipp Zabel
Add JPEG specific sequence initialization registers and bit definitions. Signed-off-by: Lucas Stach l.st...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda_regs.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media

[PATCH 07/10] [media] coda: store bitstream buffer position with buffer metadata

2014-09-30 Thread Philipp Zabel
that it contains more than only the buffer timestamp. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 53 ++- drivers/media/platform/coda/coda-common.c | 14 drivers/media/platform/coda/coda.h| 8 +++-- 3

[PATCH 09/10] [media] coda: try to only queue a single JPEG into the bitstream

2014-09-30 Thread Philipp Zabel
. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c index 27e0764..2a6810e 100644 --- a/drivers/media/platform/coda/coda

[PATCH 10/10] [media] coda: allow userspace to set compressed buffer size in a certain range

2014-09-30 Thread Philipp Zabel
the initial sizeimage to a value inside the range allowed by try_fmt. While at it, reduce the default image size to a maximum of 1920*1088 (otherwise JPEG will default to 8k*8k and 96 MiB buffers). Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 4

[PATCH 00/10] CODA7 JPEG support

2014-09-30 Thread Philipp Zabel
device is separate because it supports more uncompressed formats (currently YUV422P, in the future grayscale or YUV 4:4:4 support could be added). regards Philipp Philipp Zabel (10): [media] coda: add support for planar YCbCr 4:2:2 (YUV422P) format [media] coda: identify platform device earlier

[PATCH 01/10] [media] coda: add support for planar YCbCr 4:2:2 (YUV422P) format

2014-09-30 Thread Philipp Zabel
This patch adds support for the three-plane YUV422P format with one luma plane and two horizontally subsampled chroma planes. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 14 +- drivers/media/platform/coda/coda-common.c | 13

[PATCH 04/10] [media] coda: split out encoder control setup to specify controls per video device

2014-09-30 Thread Philipp Zabel
This patch splits the H.264/MPEG4 encoder specific controls out of the main control setup function. This way each video device registers only relevant controls. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 66

[PATCH 03/10] [media] coda: add coda_video_device descriptors

2014-09-30 Thread Philipp Zabel
simplifies coda_enum_fmt and coda_try_fmt a bit. A separate decoder video device will be created for JPEG decoding later due to slightly different behavior in the CodaDx6/CODA7542 case and due to a separate hardware unit on CODA960. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media

[PATCH 02/10] [media] coda: identify platform device earlier

2014-09-30 Thread Philipp Zabel
We'll use this information to decide whether to request the JPEG IRQ later. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/media/platform/coda/coda

Re: [PATCH 00/10] CODA7 JPEG support

2014-09-30 Thread Philipp Zabel
Hi Hans, Am Dienstag, den 30.09.2014, 15:43 +0200 schrieb Hans Verkuil: On 09/30/14 11:57, Philipp Zabel wrote: Hi, These patches add JPEG encoding and decoding support for CODA7541 (i.MX5). The encoder video device is split into one video device per codec, so that each video device

[PATCH v4 8/8] imx-drm: use for_each_endpoint_of_node macro in imx_drm_encoder_parse_of

2014-09-29 Thread Philipp Zabel
Using the for_each_... macro should make the code bit shorter and easier to read. Since we can break out of the loop, we keep the call to of_node_put after the loop. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v3: - Kept of_node_put after the loop, as in the earlier

[PATCH v4 3/8] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-09-29 Thread Philipp Zabel
prev argument's refcount themselves. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/of/base.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index d8574ad

[PATCH v4 5/8] of: Add of_graph_get_port_by_id function

2014-09-29 Thread Philipp Zabel
This patch adds a function to get a port device tree node by port id, or reg property value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/of/base.c| 26 ++ include/linux/of_graph.h

[PATCH v4 2/8] imx-drm: Do not decrement endpoint node refcount in the loop

2014-09-29 Thread Philipp Zabel
In preparation for the following patch, stop decrementing the endpoint node refcount in the loop. This temporarily leaks a reference to the endpoint node, which will be fixed by having of_graph_get_next_endpoint decrement the refcount of its prev argument instead. Signed-off-by: Philipp Zabel

[PATCH v4 4/8] of: Add for_each_endpoint_of_node helper macro

2014-09-29 Thread Philipp Zabel
Note that while of_graph_get_next_endpoint decrements the reference count of the child node passed to it, of_node_put(child) still has to be called manually when breaking out of the loop. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch

[PATCH v4 0/8] Add of-graph helpers to loop over endpoints and find ports by id

2014-09-29 Thread Philipp Zabel
Philipp Zabel (8): [media] soc_camera: Do not decrement endpoint node refcount in the loop imx-drm: Do not decrement endpoint node refcount in the loop of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint of: Add for_each_endpoint_of_node helper macro of: Add

[PATCH v4 6/8] drm: use for_each_endpoint_of_node macro in drm_of_find_possible_crtcs

2014-09-29 Thread Philipp Zabel
Using the for_each_... macro should make the code a bit shorter and easier to read. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/gpu/drm/drm_of.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff

[PATCH v4 7/8] imx-drm: use for_each_endpoint_of_node macro in imx_drm_encoder_get_mux_id

2014-09-29 Thread Philipp Zabel
Using the for_each_... macro should make the code bit shorter and easier to read. This patch also properly decrements the endpoint node reference count before returning out of the loop. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/staging/imx-drm/imx-drm-core.c | 9

[PATCH v4 1/8] [media] soc_camera: Do not decrement endpoint node refcount in the loop

2014-09-29 Thread Philipp Zabel
In preparation for a following patch, stop decrementing the endpoint node refcount in the loop. This temporarily leaks a reference to the endpoint node, which will be fixed by having of_graph_get_next_endpoint decrement the refcount of its prev argument instead. Signed-off-by: Philipp Zabel p.za

Re: [PATCH v4 1/8] [media] soc_camera: Do not decrement endpoint node refcount in the loop

2014-09-29 Thread Philipp Zabel
Am Montag, den 29.09.2014, 12:13 +0300 schrieb Dan Carpenter: On Mon, Sep 29, 2014 at 10:15:44AM +0200, Philipp Zabel wrote: In preparation for a following patch, stop decrementing the endpoint node refcount in the loop. This temporarily leaks a reference to the endpoint node, which

[PATCH 6/6] [media] coda: add support for partial interleaved YCbCr 4:2:0 (NV12) format

2014-09-29 Thread Philipp Zabel
This patch adds support for the two-plane NV12 format with one luma plane and one interleaved chroma plane. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c| 26 +- drivers/media/platform/coda/coda-common.c | 8

[PATCH 0/6] CODA fixes and NV12 support

2014-09-29 Thread Philipp Zabel
to clear magic bits if we wrote 0 in the first place), and adds support for the NV12 pixel format. regards Philipp Philipp Zabel (6): [media] coda: clear aborting flag in stop_streaming [media] coda: remove superfluous error message on devm_kzalloc failure [media] coda: add coda_write_base

[PATCH 1/6] [media] coda: clear aborting flag in stop_streaming

2014-09-29 Thread Philipp Zabel
Clearing the aborting flag in stop_streaming is necessary if we want to start streaming again without having to closing and reopening the device. Also, do not explicitly set it in default_params; the context is zeroed by kzalloc anyway. Signed-off-by: Philipp Zabel p.za...@pengutronix.de

<    5   6   7   8   9   10   11   12   13   14   >