[PATCH v3 04/32] [media] coda: fix internal framebuffer allocation size

2014-07-11 Thread Philipp Zabel
This error was introduced by 5677e3b04d3b3961200aa2bb9cc715e709eafeb9 [media] coda: update CODA7541 to firmware 1.4.50. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v3 14/32] [media] coda: select GENERIC_ALLOCATOR

2014-07-11 Thread Philipp Zabel
The driver uses the genalloc API, which doesn't have stubs in case GENERIC_ALLOCATOR is disabled. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/Kconfig

[PATCH v3 08/32] [media] coda: add selection API support for h.264 decoder

2014-07-11 Thread Philipp Zabel
The h.264 decoder produces capture frames that are a multiple of the macroblock size (16 pixels). To inform userspace about invalid pixel data at the edges, use the active and padded composing rectangles on the capture queue. The cropping information is obtained from the h.264 sequence parameter

[PATCH v3 02/32] [media] coda: fix readback of CODA_RET_DEC_SEQ_FRAME_NEED

2014-07-11 Thread Philipp Zabel
Previously we'd add one to this value, allocating one additional, superfluous internal buffer. 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

[PATCH v3 03/32] [media] coda: fix h.264 quantization parameter range

2014-07-11 Thread Philipp Zabel
If bitrate is not set, the encoder is running in VBR mode, with the I- and P-frame quantization parameters configured from userspace. For the quantization parameters, 0 is a valid value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 4 ++-- 1 file

[PATCH v3 32/32] [media] coda: store IRAM size in struct coda_devtype

2014-07-11 Thread Philipp Zabel
Similarly to workbuf_size and tempbuf_size, store iram_size in the coda_devtype structure. This also decreases the IRAM used on i.MX6DL to 128 KiB. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 19 ++- 1 file changed, 6 insertions(+), 13

[PATCH v3 27/32] [media] coda: round up internal frames to multiples of macroblock size for h.264

2014-07-11 Thread Philipp Zabel
CODA7541 only supports encoding h.264 frames with width and height that are multiples of the macroblock size. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git

[PATCH v3 28/32] [media] coda: increase frame stride to 16 for h.264

2014-07-11 Thread Philipp Zabel
When encoding into h.264, the input frame stride needs to be a multiple of 16. During allocation of the input buffers, it may not be known yet whether the encoder should create h.264 or not. Assume the worst and always use a frame stride that is a multiple of 16. Signed-off-by: Philipp Zabel

[PATCH v3 15/32] [media] coda: add h.264 min/max qp controls

2014-07-11 Thread Philipp Zabel
If the bitrate control is set, the encoder works in CBR mode, dynamically changing the quantization parameters to achieve a constant bitrate. With the min/max QP controls the quantization parameters can be limited to a given range. Signed-off-by: Philipp Zabel p.za...@pengutronix.de ---

[PATCH v3 25/32] [media] coda: add bytesperline to queue data

2014-07-11 Thread Philipp Zabel
bytesperline is calculated in multiple places, store it in the coda_q_data structure. This will be more useful later when adding JPEG support. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 27 --- 1 file changed, 16 insertions(+),

[PATCH v3 22/32] [media] coda: add sequence counter offset

2014-07-11 Thread Philipp Zabel
The coda h.264 decoder also counts PIC_RUNs where no frame was decoded but a frame was rotated out / marked as ready to be displayed. This causes an offset between the incoming encoded frame's sequence number and the decode sequence number returned by the coda. This patch introduces a sequence

[PATCH v3 09/32] [media] coda: add workqueue to serialize hardware commands

2014-07-11 Thread Philipp Zabel
Using the coda_mutex lock to serialize hardware access would cause INFO: possible circular locking dependency detected lockdep warnings. Since the possible locking paths are hard to follow, serialize hardware access with a single workqueue thread. Ultimately the workqueue could be converted to

[PATCH v3 26/32] [media] coda: allow odd width, but still round up bytesperline

2014-07-11 Thread Philipp Zabel
Even though the CODA h.264 decoder always decodes complete macroblocks, we can set the stride to the corresponding multiple of 16 and use a value smaller than that as real width. Unfortunately the same doesn't work for height, as there is no vertical linesperframe stride for discontiguous planar

[PATCH v3 31/32] [media] coda: store global temporary buffer size in struct coda_devtype

2014-07-11 Thread Philipp Zabel
Similarly to the work buffer size, store the temporary buffer size in the coda_devtype structure. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git

[PATCH v3 10/32] [media] coda: Use mem-to-mem ioctl helpers

2014-07-11 Thread Philipp Zabel
Use the mem2mem helpers introduced to get rid of some duplicated code. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 113 ++ 1 file changed, 14 insertions(+), 99 deletions(-) diff --git

[PATCH v3 11/32] [media] coda: use ctx-fh.m2m_ctx instead of ctx-m2m_ctx

2014-07-11 Thread Philipp Zabel
v4l2_fh already contains a mem2mem context pointer. Use it. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 66 +-- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/drivers/media/platform/coda.c

[PATCH v3 29/32] [media] coda: export auxiliary buffers via debugfs

2014-07-11 Thread Philipp Zabel
This patch exports all auxiliary buffers, including SRAM, as debugfs binary blobs for debugging purposes. It shows, for example, that psbuf currently doesn't seem to be used at all on CODA7541, and that slicebuf and workbuf usage is far from the maximum. It can also be used to validate SRAM size

[PATCH v3 19/32] [media] coda: try to schedule a decode run after a stop command

2014-07-11 Thread Philipp Zabel
From: Michael Olbrich m.olbr...@pengutronix.de In case no further buffers are queued after the stop command, restart job scheduling explicitly. Signed-off-by: Michael Olbrich m.olbr...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 2 ++ 1

[PATCH v3 17/32] [media] coda: add cyclic intra refresh control

2014-07-11 Thread Philipp Zabel
Allow userspace to enable cyclic intra refresh by setting the number of intra macroblocks per frame to a non-zero value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v3 20/32] [media] coda: add decoder timestamp queue

2014-07-11 Thread Philipp Zabel
The coda driver advertises timestamp_type V4L2_BUF_FLAG_TIMESTAMP_COPY on both queues, so we have to copy timestamps from input v4l2 buffers to the corresponding destination v4l2 buffers. Since the h.264 decoder can reorder frames, a timestamp queue is needed to keep track of and assign the

[PATCH v3 30/32] [media] coda: store per-context work buffer size in struct coda_devtype

2014-07-11 Thread Philipp Zabel
We had the workbuf_size field since the beginning. Use it to tighten the code a little bit. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 58 +++ 1 file changed, 26 insertions(+), 32 deletions(-) diff --git

[PATCH v3 01/32] [media] coda: fix decoder I/P/B frame detection

2014-07-11 Thread Philipp Zabel
Currently the rotator unit is used to copy decoded frames out into buffers provided by videobuf2. Since the CODA reports the I/P/B frame type of the last decoded frame, and this frame will be copied out in a later device_run, depending on display order, we have to store the frame type until such

[PATCH v3 21/32] [media] coda: alert userspace about macroblock errors

2014-07-11 Thread Philipp Zabel
If the CODA reports macroblock errors, also set the VB2_BUF_STATE_ERROR flag to alert userspace. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/coda.c

[PATCH v3 00/32] Initial CODA960 (i.MX6 VPU) support

2014-07-11 Thread Philipp Zabel
Hi, this is series adds support for the CODA960 Video Processing Unit on i.MX6Q/D/DL/S SoCs to the coda driver. Changes since v2: - Fixed patch 22 [media] coda: add sequence counter offset for 16-bit hardware frame counter - Changed variable name in patch 23 [media] coda: rename

[PATCH v3 16/32] [media] coda: add h.264 deblocking filter controls

2014-07-11 Thread Philipp Zabel
This adds controls for the h.264 deblocking loop filter. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/coda.c

[PATCH v3 05/32] [media] coda: simplify IRAM setup

2014-07-11 Thread Philipp Zabel
OVL and BTP IRAM buffers are never used, setup the bits for for DBK/BIT/IP usage depending on CODA version in one place. Also, use a simple allocator function and group IRAM addresses and size in a coda_aux_buf structure. This is done in preparation for CODA960 support. Signed-off-by: Philipp

[PATCH v3 18/32] [media] v4l2-mem2mem: export v4l2_m2m_try_schedule

2014-07-11 Thread Philipp Zabel
From: Michael Olbrich m.olbr...@pengutronix.de Some drivers might allow to decode remaining frames from an internal ringbuffer after a decoder stop command. Allow those to call v4l2_m2m_try_schedule directly. Signed-off-by: Michael Olbrich m.olbr...@pengutronix.de Signed-off-by: Philipp Zabel

[PATCH v3 12/32] [media] coda: Add runtime pm support

2014-07-11 Thread Philipp Zabel
This patch allows to use the runtime pm and generic pm domain frameworks to completely gate power to the VPU if it is unused. This functionality is available on i.MX6. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 65

[PATCH v3 07/32] [media] coda: remove BUG() in get_q_data

2014-07-11 Thread Philipp Zabel
This allows us to get rid of the now superfluous v4l2_m2m_get_vq check in G_FMT. Also, we can use this to check the buffer type in G_SELECTION later. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 12 +--- 1 file changed, 5 insertions(+), 7

[PATCH v3 23/32] [media] coda: rename prescan_failed to hold and stop stream after timeout

2014-07-11 Thread Philipp Zabel
Rename the per-context prescan_failed variable to hold, as this is what the flag does: it temporarily keeps the coda from running until new data is fed into the bitstream buffer or stop_streaming is called on the input side. A prescan failure on i.MX5 is one possible reason to enter this state,

[PATCH v3 24/32] [media] coda: add reset control support

2014-07-11 Thread Philipp Zabel
On i.MX53 and i.MX6, the CODA VPU can be reset by the System Reset Controller. We can use this to get out of dire situations, for example after a picture run timeout. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 51

[PATCH v3 13/32] [media] coda: split firmware version check out of coda_hw_init

2014-07-11 Thread Philipp Zabel
This adds a new function coda_check_firmware that does the firmware version checks so that this can be done only once from coda_probe instead of every time the runtime pm framework resumes the coda. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda.c | 42

Re: [PATCH v2 06/29] [media] coda: Add encoder/decoder support for CODA960

2014-07-11 Thread Robert Schwebel
Hi Fabio, On Wed, Jul 02, 2014 at 09:16:42PM +0200, Robert Schwebel wrote: It would be really nice if the firmware was available in the linux-firmware repository. Do you think this would be possible? Best wishes, -- Kamil Debski Samsung RD Institute Poland I tried to convince

Re: [PATCH v2 06/29] [media] coda: Add encoder/decoder support for CODA960

2014-07-11 Thread Fabio Estevam
Hi Robert, On Fri, Jul 11, 2014 at 9:33 AM, Robert Schwebel r.schwe...@pengutronix.de wrote: Hi Fabio, On Wed, Jul 02, 2014 at 09:16:42PM +0200, Robert Schwebel wrote: It would be really nice if the firmware was available in the linux-firmware repository. Do you think this would be

[PATCH] gspca_stv06xx: enable button found on some Quickcam Express variant

2014-07-11 Thread Antonio Ospite
Signed-off-by: Antonio Ospite a...@ao2.it --- drivers/media/usb/gspca/stv06xx/stv06xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/gspca/stv06xx/stv06xx.c b/drivers/media/usb/gspca/stv06xx/stv06xx.c index 49d209b..6ac93d8 100644 ---

Re: [PATCH 8/9] Documentation: devicetree: Document sclk-jpeg clock for exynos3250 SoC

2014-07-11 Thread Sylwester Nawrocki
On 07/07/14 18:32, Jacek Anaszewski wrote: JPEG IP on Exynos3250 SoC requires enabling two clock gates for its operation. This patch documents this requirement. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring

Re: [PATCH 1/9] s5p-jpeg: Add support for Exynos3250 SoC

2014-07-11 Thread Sylwester Nawrocki
On 07/07/14 18:32, Jacek Anaszewski wrote: +void exynos3250_jpeg_dec_scaling_ratio(void __iomem *regs, + unsigned int sratio) +{ + switch (sratio) { + case 1: + sratio = EXYNOS3250_DEC_SCALE_FACTOR_8_8; + break; +

Re: [PATCH 9/9] ARM: dts: exynos3250: add JPEG codec device node

2014-07-11 Thread Sylwester Nawrocki
On 07/07/14 18:32, Jacek Anaszewski wrote: Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Ian Campbell

[PATCH/RFC v4 19/21] of: Add Skyworks Solutions, Inc. vendor prefix

2014-07-11 Thread Jacek Anaszewski
Use skyworks as the vendor prefix for the Skyworks Solutions, Inc. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Ian Campbell

[PATCH/RFC v4 20/21] DT: Add documentation for the Skyworks AAT1290

2014-07-11 Thread Jacek Anaszewski
This patch adds device tree binding documentation for 1.5A Step-Up Current Regulator for Flash LEDs. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland

[PATCH/RFC v4 12/21] DT: Add documentation for LED Class Flash Manger

2014-07-11 Thread Jacek Anaszewski
This patch documents LED Class Flash Manager related bindings. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu coolo...@gmail.com Cc: Richard Purdie rpur...@rpsys.net Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll

[PATCH/RFC v4 11/21] DT: leds: Add flash led devices related properties

2014-07-11 Thread Jacek Anaszewski
Addition of a LED Flash Class extension entails the need for flash led specific device tree properties. The properties being added are: iout-torch, iout-flash, iout-indicator and flash-timeout. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park

[PATCH/RFC v4 15/21] media: Add registration helpers for V4L2 flash

2014-07-11 Thread Jacek Anaszewski
This patch adds helper functions for registering/unregistering LED class flash devices as V4L2 subdevs. The functions should be called from the LED subsystem device driver. In case the support for V4L2 Flash sub-devices is disabled in the kernel config the functions' empty versions will be used.

[PATCH/RFC v4 10/21] Documentation: leds: add exemplary asynchronous mux driver

2014-07-11 Thread Jacek Anaszewski
Exemplary driver showing usage of the Flash Manager API for registering/unregistering asynchronous multiplexers Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu coolo...@gmail.com Cc: Richard Purdie rpur...@rpsys.net ---

[PATCH/RFC v4 14/21] v4l2-ctrls: add control for flash strobe signal providers

2014-07-11 Thread Jacek Anaszewski
Add V4L2_CID_STROBE_PROVIDER of type menu, which allows for enumerating of available external flash strobe signal providers and setting the active one. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Sakari Ailus sakari.ai...@iki.fi

[PATCH/RFC v4 09/21] Documentation: leds: Add description of LED Flash Class extension

2014-07-11 Thread Jacek Anaszewski
The documentation being added contains overall description of the LED Flash Class and the related sysfs attributes. There are also chapters devoted specifically to the Flash Manager feature. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH/RFC v4 05/21] leds: avoid using deprecated DEVICE_ATTR macro

2014-07-11 Thread Jacek Anaszewski
Make the sysfs attributes definition consistent in the whole file. The modification entails change of the function name: led_max_brightness_show - max_brightness_show Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu

[PATCH/RFC v4 00/21] LED / flash API integration

2014-07-11 Thread Jacek Anaszewski
This is is the fourth version of the patch series being a follow up of the discussion on Media summit 2013-10-23, related to the LED / flash API integration (the notes from the discussion were enclosed in the message [1], paragraph 5). The series is based on linux-next-20140707 Description of the

[PATCH/RFC v4 04/21] leds: Reorder include directives

2014-07-11 Thread Jacek Anaszewski
Reorder include directives so that they are arranged in alphabetical order. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu coolo...@gmail.com Cc: Richard Purdie rpur...@rpsys.net --- drivers/leds/led-class.c | 13

[PATCH/RFC v4 01/21] leds: make brightness type consistent across whole subsystem

2014-07-11 Thread Jacek Anaszewski
Documentations states that brightness units type is enum led_brightness and this is the type used by the led API functions. Adjust the type of brightness variables in the struct led_classdev accordingly. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park

[PATCH/RFC v4 06/21] leds: add API for setting torch brightness

2014-07-11 Thread Jacek Anaszewski
This patch prepares ground for addition of LED Flash Class extension to the LED subsystem. Since turning the torch on must have guaranteed immediate effect the brightness_set op can't be used for it. Drivers must schedule a work queue task in this op to be compatible with led-triggers, which call

[PATCH/RFC v4 02/21] leds: implement sysfs interface locking mechanism

2014-07-11 Thread Jacek Anaszewski
Add mechanism for locking LED subsystem sysfs interface. This patch prepares ground for addition of LED Flash Class extension. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu coolo...@gmail.com Cc: Richard Purdie

[PATCH/RFC v4 03/21] leds: Improve and export led_update_brightness

2014-07-11 Thread Jacek Anaszewski
led_update_brightness helper function used to be exploited only locally in the led-class.c module, where its result was being passed to the brightness_show sysfs callback. With the introduction of v4l2-flash subdevice the same functionality became required for reading current brightness from a LED

[PATCH/RFC v4 16/21] leds: Add support for max77693 mfd flash cell

2014-07-11 Thread Jacek Anaszewski
This patch adds led-flash support to Maxim max77693 chipset. A device can be exposed to user space through LED subsystem sysfs interface or through V4L2 subdevice when the support for V4L2 Flash sub-devices is enabled. Device supports up to two leds which can work in flash and torch mode. Leds can

[PATCH/RFC v4 18/21] leds: Add driver for AAT1290 current regulator

2014-07-11 Thread Jacek Anaszewski
This patch adds a driver for the 1.5A Step-Up Current Regulator for Flash LEDs. The device is programmed through a Skyworks' proprietary AS2Cwire serial digital interface. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu

[PATCH/RFC v4 17/21] DT: Add documentation for the mfd Maxim max77693

2014-07-11 Thread Jacek Anaszewski
This patch adds device tree binding documentation for the flash cell of the Maxim max77693 multifunctional device. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark

[PATCH/RFC v4 21/21] ARM: dts: add aat1290 current regulator device node

2014-07-11 Thread Jacek Anaszewski
Add device node for AAT1290 1.5A Step-Up Current Regulator for Flash LEDs along with flash_muxes node containing information about a multiplexer that is used for switching between software and external strobe signal source. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by:

[PATCH/RFC v4 13/21] v4l2-device: add v4l2_device_register_subdev_node API

2014-07-11 Thread Jacek Anaszewski
Extract the code executed for each entry of the subdev list and put it to the separate function. Export it as a public API. It allows for registering single sub-device at a time. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Hans

[PATCH/RFC v4 07/21] of: add of_node_ncmp wrapper

2014-07-11 Thread Jacek Anaszewski
The wrapper for strnicmp is required for checking whether a node has expected prefix. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Grant Likely grant.lik...@linaro.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Michal

[PATCH v2 2/9] s5p-jpeg: return error immediately after get_byte fails

2014-07-11 Thread Jacek Anaszewski
When parsing JPEG header s5p_jpeg_parse_hdr function should return immediately in case there was an error while reading a byte. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/platform/s5p-jpeg/jpeg-core.c |4

[PATCH v2 1/9] s5p-jpeg: Add support for Exynos3250 SoC

2014-07-11 Thread Jacek Anaszewski
This patch adds support for jpeg codec on Exynos3250 SoC to the s5p-jpeg driver. Supported raw formats are: YUYV, YVYU, UYVY, VYUY, RGB565, RGB565X, RGB32, NV12, NV21. The support includes also scaling and cropping features. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by:

[PATCH v2 6/9] s5p-jpeg: Prevent erroneous downscaling for Exynos3250 SoC

2014-07-11 Thread Jacek Anaszewski
JPEG codec on Exynos3250 SoC produces broken raw image if a JPEG is decoded to YUV420 format and downscaling by more then 2 is applied. Prevent this by asserting downscale ratio to 2. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH v2 8/9] Documentation: devicetree: Document sclk-jpeg clock for exynos3250 SoC

2014-07-11 Thread Jacek Anaszewski
JPEG IP on Exynos3250 SoC requires enabling two clock gates for its operation. This patch documents this requirement. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll

[PATCH v2 4/9] s5p-jpeg: fix g_selection op

2014-07-11 Thread Jacek Anaszewski
V4L2_SEL_TGT_COMPOSE_DEFAULT switch case should select whole available area of the image and V4L2_SEL_TGT_COMPOSE should apply user settings. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[PATCH v2 7/9] s5p-jpeg: add chroma subsampling adjustment for Exynos3250

2014-07-11 Thread Jacek Anaszewski
Take into account limitations specific to the Exynos3250 SoC, regarding setting chroma subsampling control value. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 59

[PATCH v2 9/9] ARM: dts: exynos3250: add JPEG codec device node

2014-07-11 Thread Jacek Anaszewski
Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Kukjin Kim kgene@samsung.com --- arch/arm/boot/dts/exynos3250.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250.dtsi

[PATCH v2 0/9] Add support for Exynos3250 SoC to the s5p-jpeg driver

2014-07-11 Thread Jacek Anaszewski
This is the second version of the patch series adding support for jpeg codec on Exynos3250 SoC to the s5p-jpeg driver (Sylwester - thanks for a review). Supported raw formats are: YUYV, YVYU, UYVY, VYUY, RGB565, RGB565X, RGB32, NV12, NV21. The support includes also scaling and cropping features.

[PATCH v2 3/9] s5p-jpeg: Adjust jpeg_bound_align_image to Exynos3250 needs

2014-07-11 Thread Jacek Anaszewski
The jpeg_bound_align_image function needs to know the context in which it is called, as it needs to align image dimensions in a slight different manner for Exynos3250, which crops pixels for specific values in case the format is RGB. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com

[PATCH v2 5/9] s5p-jpeg: Assure proper crop rectangle initialization

2014-07-11 Thread Jacek Anaszewski
Assure proper crop_rect initialization in case the user space doesn't call S_SELECTION ioctl. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 15 +++ 1 file changed, 15

[PATCH v3] ARM: dts: exynos3250 add MFC codec device node

2014-07-11 Thread Jacek Anaszewski
Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Kukjin Kim kgene@samsung.com --- arch/arm/boot/dts/exynos3250.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250.dtsi

[PATCH] media: em28xx-dvb unregister i2c tuner and demod after fe detach

2014-07-11 Thread Shuah Khan
i2c tuner and demod are unregisetred in .fini before fe detach. dvb_unregister_frontend() and dvb_frontend_detach() invoke tuner sleep() and release() interfaces. Change to unregister i2c tuner and demod from em28xx_unregister_dvb() after unregistering dvb and detaching fe. Signed-off-by: Shuah

Re: [PATCH v2 0/9] Add support for Exynos3250 SoC to the s5p-jpeg driver

2014-07-11 Thread Sylwester Nawrocki
Hi Jacek, On 11/07/14 17:19, Jacek Anaszewski wrote: Jacek Anaszewski (9): s5p-jpeg: Add support for Exynos3250 SoC s5p-jpeg: return error immediately after get_byte fails s5p-jpeg: Adjust jpeg_bound_align_image to Exynos3250 needs s5p-jpeg: fix g_selection op s5p-jpeg: Assure

Re: linux-next: Tree for Jul 11 (media/pci/ttpci/av7110)

2014-07-11 Thread Randy Dunlap
On 07/11/14 00:18, Stephen Rothwell wrote: Hi all, Changes since 20140710: on x86_64: CONFIG_DVB_AV7110=y CONFIG_INPUT_EVDEV=m drivers/built-in.o: In function `av7110_emit_keyup': av7110_ir.c:(.text+0x76b608): undefined reference to `input_event' av7110_ir.c:(.text+0x76b61a): undefined

[PATCH] media: em28xx - fix i2c_xfer to return -ENODEV when dev is removed

2014-07-11 Thread Shuah Khan
In em28xx usb disconnect code path, some dvb fe and tuner drivers attempt i2c transfers from their release interfaces. When device is removed, return -ENODEV instead of attempting to transfer data over i2c. Signed-off-by: Shuah Khan shuah...@samsung.com --- drivers/media/usb/em28xx/em28xx-i2c.c

[PATCH 0/3] Fix interval length on ISDB-T doc/driver

2014-07-11 Thread Mauro Carvalho Chehab
The interleaving ISDB-T representation was utter broken: dib8000 driver were using interleave=3 on some parts, and interleave=4 on others; net result is that interleaving=4 or 8 were broking there. mb86a20s were using guard time as interleaving length. Other drivers don't implement it.

[PATCH 2/3] mb86a20s: Fix Interleaving

2014-07-11 Thread Mauro Carvalho Chehab
Interleaving code was wrong at mb86a20s: instead, it was looking at the Guard Interval. Fix it. Signed-off-by: Mauro Carvalho Chehab m.che...@samsung.com --- drivers/media/dvb-frontends/mb86a20s.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git

[PATCH 3/3] mb86a20s: Fix the code that estimates the measurement interval

2014-07-11 Thread Mauro Carvalho Chehab
Instead of looking at the guard interval field, it was using the interval length, with is wrong. Fix it. Signed-off-by: Mauro Carvalho Chehab m.che...@samsung.com --- drivers/media/dvb-frontends/mb86a20s.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 1/3] DocBook: Fix ISDB-T Interleaving property

2014-07-11 Thread Mauro Carvalho Chehab
The DocBook documentation is incorrect: on ISDB-T, interleaving time is always a power of 2. Fix it and provides a table showing the actual interleaving length for each mode. Signed-off-by: Mauro Carvalho Chehab m.che...@samsung.com --- Documentation/DocBook/media/dvb/dvbproperty.xml | 44

cron job: media_tree daily build: OK

2014-07-11 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 Jul 12 04:00:21 CEST 2014 git branch: test git hash: 3c0d394ea7022bb9666d9df97a5776c4bcc3045c gcc