Re: [PATCH RFC] [media] gspca-ov534: don't call sd_start() from sd_init()

2013-08-09 Thread Yaroslav Zakharuk
Hi Antonio, Let me know if the change below alone is enough and the webcam keeps working, a test with suspend and resume would good to have too. I've tested your patch with the latest kernel (3.11.0-rc4) - the webcam works OK. After suspend and resume, the webcam works OK too. -- Bye, Yarosla

Re: [PATCH v4 13/13] V4L: Add driver for s5k4e5 image sensor

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:04 AM, Arun Kumar K wrote: 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 firmware. It can be updated if needed

Re: [PATCH v4 12/13] V4L: s5k6a3: Change sensor min/max resolutions

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:04 AM, Arun Kumar K wrote: s5k6a3 sensor has actual pixel resolution of 1408x1402 against the active resolution 1392x1392. The real resolution is needed when raw sensor SRGB data is dumped to memory by fimc-lite. Signed-off-by: Arun Kumar K --- drivers/media/i2c/s5k6a3.c | 2

Re: [PATCH v4 11/13] [media] exynos5-is: Add Kconfig and Makefile

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:03 AM, Arun Kumar K wrote: Adds Kconfig and Makefile for exynos5-is driver files. Signed-off-by: Shaik Ameer Basha Signed-off-by: Kilyeon Im Signed-off-by: Arun Kumar K --- drivers/media/platform/Kconfig |1 + drivers/media/platform/Makefile|1

Re: [PATCH v4 10/13] [media] exynos5-fimc-is: Add the hardware interface module

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:03 AM, Arun Kumar K wrote: The hardware interface module finally sends the commands to the FIMC-IS firmware and runs the interrupt handler for getting the responses. Signed-off-by: Arun Kumar K Signed-off-by: Kilyeon Im --- .../media/platform/exynos5-is/fimc-is-interface.c |

[PATCH/RFC v3 04/19] video: display: Add display entity notifier

2013-08-09 Thread Laurent Pinchart
Display entities are initialized by they respective drivers asynchronously with the master display driver. The notifier infrastructure allows display drivers to create a list of entities they need (based on platform data) and be notified when those entities are added to or removed from the system.

[PATCH/RFC v3 03/19] video: display: Add video and stream control operations

2013-08-09 Thread Laurent Pinchart
The video and stream control operations handle video stream management, both from the control point of view (called in response to userspace requests) and the video stream point of view (called by entities to control the video stream they receive on their input(s)). Signed-off-by: Laurent Pinchart

[PATCH/RFC v3 00/19] Common Display Framework

2013-08-09 Thread Laurent Pinchart
Hi everybody, Here's the third RFC of the Common Display Framework. This is a resent, the series I've sent earlier seems not to have made it to the vger mailing lists, possibly due to a too long list of CCs (the other explanation being that CDF has been delayed for so long that vger considers it a

[PATCH/RFC v3 13/19] video: display: Add VGA connector support

2013-08-09 Thread Laurent Pinchart
This driver exposes VGA connectors as display entity devices. The connectors are passive devices that pass analog VGA signals though. They optionally cary DDC signals for bidirectional control communications with the devices connected to the connectors. EDID retrieval isn't supported yet. Signed-

[PATCH/RFC v3 19/19] drm/rcar-du: Port to the Common Display Framework

2013-08-09 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/Kconfig | 3 +- drivers/gpu/drm/rcar-du/Makefile| 7 +- drivers/gpu/drm/rcar-du/rcar_du_connector.c | 164 drivers/gpu/drm/rcar-du/rcar_du_connector.h | 36 drivers/gpu/drm/rcar-du/rcar_

[PATCH/RFC v3 09/19] video: panel: Add DPI panel support

2013-08-09 Thread Laurent Pinchart
The Display Pixel Interface is a configurable-width video-only unidirectional parallel bus standard that defines video formats and signaling for panel devices. This driver implements support for simple DPI panels with no runtime configuration capabilities (GPIOs- and/or regulators-based control ca

[PATCH/RFC v3 08/19] video: display: Add MIPI DBI bus support

2013-08-09 Thread Laurent Pinchart
MIPI DBI is a configurable-width parallel display bus that transmits commands and data. Add a new DBI Linux bus type that implements the usual bus infrastructure (including devices and drivers (un)registration and matching, and bus configuration and access functions). Signed-off-by: Laurent Pinch

[PATCH/RFC v3 05/19] video: display: Graph helpers

2013-08-09 Thread Laurent Pinchart
Add two graph helper functions. display_entity_build_notifier() builds an entity notifier from an entities graph represented as a flat array, typically passed from platform data. display_entity_link_graph() can then be used to create media controller links between all entities in the graph. Signed

[PATCH/RFC v3 10/19] video: panel: Add R61505 panel support

2013-08-09 Thread Laurent Pinchart
The R61505 is a SYS-80 bus panel controller from Renesas. Signed-off-by: Laurent Pinchart --- drivers/video/display/Kconfig| 10 + drivers/video/display/Makefile | 1 + drivers/video/display/panel-r61505.c | 567 +++ include/video/panel-r61505.h

[PATCH/RFC v3 02/19] video: Add Common Display Framework core

2013-08-09 Thread Laurent Pinchart
The Common Display Framework (CDF) splits display devices in entities that interact through an abstract API. Each entity is managed by its own driver independently of the other entities, with the framework orchestrating interactions. This commit introduces the CDF core with entity (un)registration

[PATCH/RFC v3 17/19] ARM: shmobile: lager: Port DU platform data to CDF

2013-08-09 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- arch/arm/mach-shmobile/board-lager.c | 76 +--- 1 file changed, 53 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 75a01bc..d61b892 100644 --- a/arch

[PATCH/RFC v3 01/19] OMAPDSS: panels: Rename Kconfig options to OMAP2_DISPLAY_*

2013-08-09 Thread Laurent Pinchart
The DISPLAY_ prefix will clash with the Common Display Framework, rename it. Signed-off-by: Laurent Pinchart --- drivers/video/omap2/displays-new/Kconfig | 24 drivers/video/omap2/displays-new/Makefile | 24 2 files changed, 24 insertions(+), 24

[PATCH/RFC v3 18/19] ARM: shmobile: lager-reference: Add display device nodes to device tree

2013-08-09 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7790-lager-reference.dts | 92 +++ 1 file changed, 92 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager-reference.dts b/arch/arm/boot/dts/r8a7790-lager-reference.dts index d9a25d5..ba2469b 100644 --- a/arc

[PATCH/RFC v3 16/19] ARM: shmobile: marzen: Port DU platform data to CDF

2013-08-09 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- arch/arm/mach-shmobile/board-marzen.c | 77 --- 1 file changed, 53 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 6499f1a..be1b7cb 100644 --- a/ar

[PATCH/RFC v3 12/19] video: display: Add VGA Digital to Analog Converter support

2013-08-09 Thread Laurent Pinchart
This driver implements support for VGA Digital to Analog Converters (DACs) that receive pixel data through a DPI interface and have no control interface (GPIOs- and/or regulators-based control can be implemented later when needed). It exposes the devices a display entities. Signed-off-by: Laurent

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

2013-08-09 Thread 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 --- drivers/video/display/display-core.c | 334 +++ drivers/video/display/dis

[PATCH/RFC v3 15/19] ARM: shmobile: r8a7790: Add DU device node to device tree

2013-08-09 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7790.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index ab0582c..b63f1a6 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/a

[PATCH/RFC v3 07/19] video: display: Add pixel coding definitions

2013-08-09 Thread Laurent Pinchart
Pixel codings describe how pixels are transmitted on a physical bus. The information can be communicated between drivers to configure devices. Signed-off-by: Laurent Pinchart --- include/video/display.h | 120 1 file changed, 120 insertions(+) di

[PATCH/RFC v3 14/19] ARM: shmobile: r8a7790: Add DU clocks for DT

2013-08-09 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- arch/arm/mach-shmobile/clock-r8a7790.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index d99b87b..7229f96 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arc

[PATCH/RFC v3 11/19] video: panel: Add R61517 panel support

2013-08-09 Thread Laurent Pinchart
The R61517 is a MIPI DBI panel controller from Renesas. Signed-off-by: Laurent Pinchart --- drivers/video/display/Kconfig| 10 + drivers/video/display/Makefile | 1 + drivers/video/display/panel-r61517.c | 460 +++ include/video/panel-r61517.h

Re: [PATCH v4 08/13] [media] exynos5-fimc-is: Add sensor interface

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:03 AM, Arun Kumar K wrote: Some sensors to be used with fimc-is are exclusively controlled by the fimc-is firmware. This minimal sensor driver provides the required info for the firmware to configure the sensors sitting on I2C bus. Signed-off-by: Arun Kumar K --- drivers/media

Re: [PATCH v4 07/13] [media] exynos5-fimc-is: Add scaler subdev

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:03 AM, Arun Kumar K wrote: FIMC-IS has two hardware scalers named as scaler-codec and scaler-preview. This patch adds the common code handling the video nodes and subdevs of both the scalers. Signed-off-by: Arun Kumar K Signed-off-by: Kilyeon Im --- drivers/media/platform/exyn

Re: [PATCH v4 06/13] [media] exynos5-fimc-is: Add isp subdev

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:03 AM, Arun Kumar K wrote: fimc-is driver takes video data input from the ISP video node which is added in this patch. This node accepts Bayer input buffers which is given from the IS sensors. Signed-off-by: Arun Kumar K Signed-off-by: Kilyeon Im --- drivers/media/platform/exy

Re: [PATCH v4 05/13] [media] exynos5-fimc-is: Add register definition and context header

2013-08-09 Thread Sylwester Nawrocki
On 08/07/2013 11:03 AM, Arun Kumar K wrote: This patch adds the register definition file for the fimc-is driver and also the header file containing the main context for the driver. Signed-off-by: Arun Kumar K Signed-off-by: Kilyeon Im --- drivers/media/platform/exynos5-is/fimc-is-regs.h | 105

Re: [PATCH v4 03/13] [media] exynos5-fimc-is: Add driver core files

2013-08-09 Thread Sylwester Nawrocki
Hi, On 08/07/2013 11:03 AM, Arun Kumar K wrote: This driver is for the FIMC-IS IP available in Samsung Exynos5 SoC onwards. This patch adds the core files for the new driver. Signed-off-by: Arun Kumar K Signed-off-by: Kilyeon Im --- drivers/media/platform/exynos5-is/fimc-is-core.c | 413

[PATCH 06/10] exynos4-is: Add missing v4l2_device_unregister() call in fimc_md_remove()

2013-08-09 Thread Sylwester Nawrocki
Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/platform/exynos4-is/media-dev.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c index 91f21e2..0446ab3 100644 -

[PATCH 10/10] exynos4-is: Add support for asynchronous sensor subddevs registration

2013-08-09 Thread Sylwester Nawrocki
Add support for registering external sensor subdevs using the v4l2-async API. The async API is used only for sensor subdevs and only for platforms instantiated from Device Tree. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- Changes since v1: - register clock provider after

[PATCH 09/10] exynos4-is: Use external s5k6a3 sensor driver

2013-08-09 Thread Sylwester Nawrocki
This patch removes the common fimc-is-sensor driver for image sensors that are normally controlled by the FIMC-IS firmware. The FIMC-IS driver now contains only a table of properties specific to each sensor. The sensor properties required for the ISP's firmware are parsed from device tree and retri

[PATCH 02/10] V4L: s5k6a3: Add support for asynchronous subdev registration

2013-08-09 Thread Sylwester Nawrocki
This patch converts the driver to use v4l2 asynchronous subdev registration API an the common clock API. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Changes since v1: - clock-frequency property is now optional and a default frequency value will be used when it is missing,

[PATCH 07/10] exynos4-is: Simplify sclk_cam clocks handling

2013-08-09 Thread Sylwester Nawrocki
Use clk_prepare_enable()/clk_disable_unprepare() instead of separately prearing/unparing the clk_cam clocks. This simplifies the code that is now mostly not going to be used, function __fimc_md_set_camclk() is only left for S5PV210 platform which is not yet converted to Device Tree. Signed-off-by:

[PATCH 04/10] exynos4-is: Initialize the ISP subdev sd->owner field

2013-08-09 Thread Sylwester Nawrocki
Set the subdevs owner module so the exynos4_fimc_is module cannot be unloaded when the FIMC-IS driver is in use. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/platform/exynos4-is/fimc-isp.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media

[PATCH 08/10] exynos4-is: Add clock provider for the external clocks

2013-08-09 Thread Sylwester Nawrocki
This patch adds clock provider to expose the sclk_cam0/1 clocks for image sensor subdevs. Cc: devicet...@vger.kernel.org Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- .../devicetree/bindings/media/samsung-fimc.txt | 17 ++- drivers/media/platform/exynos4-is/media-dev.

[PATCH 05/10] exynos4-is: Add missing MODULE_LICENSE for exynos-fimc-is.ko

2013-08-09 Thread Sylwester Nawrocki
This fixes compilation warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/media/platform/exynos4-is/exynos-fimc-is.o Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/platform/exynos4-is/fimc-is.c |1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH 03/10] exynos4-is: Handle suspend/resume of fimc-is-i2c correctly

2013-08-09 Thread Sylwester Nawrocki
From: Tomasz Figa If the same callbacks are used for runtime and system suspend/resume, clocks can get disabled twice, which can lead to negative reference counts and kernel warnings. This patch splits suspend/resume callbacks into separate runtime and system-wide functions, so clock gating is d

[PATCH 01/10] V4L: Add driver for s5k6a3 image sensor

2013-08-09 Thread Sylwester Nawrocki
This patch adds subdev driver for Samsung S5K6A3 raw image sensor. As it is intended at the moment to be used only with the Exynos FIMC-IS (camera ISP) subsystem it is pretty minimal subdev driver. It doesn't do any I2C communication since the sensor is controlled by the ISP and its own firmware. T

[PATCH 00/10] exynos4-is: Asynchronous subdev registration support

2013-08-09 Thread Sylwester Nawrocki
This patch series is a refactoring of the exynos4-is driver to get rid of the common fimc-is-sensor driver and to adapt it to use "standard" sensor subdev drivers, one per each image sensor type. Then a clock provider is added and the s5k6a3 subdev is modified to use one of the clocks exposed by th

cron job: media_tree daily build: WARNINGS

2013-08-09 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: Fri Aug 9 19:00:37 CEST 2013 git branch: test git hash: dfb9f94e8e5e7f73c8e2bcb7d4fb1de57e7c333d gcc versi

[GIT PULL FOR 3.12] v4l2-async and Samsung driver fixes

2013-08-09 Thread Sylwester Nawrocki
Hi Mauro, This includes v4l2-async regression fix introduced in my previous patch series - sorry about that omission, and couple Samsung SoC driver fixes. The following changes since commit dfb9f94e8e5e7f73c8e2bcb7d4fb1de57e7c333d: [media] stk1160: Build as a module if SND is m and audio suppo

Re: [RFC 0/1] drm/pl111: Initial drm/kms driver for pl111

2013-08-09 Thread Rob Clark
On Fri, Aug 9, 2013 at 12:15 PM, Tom Cooksey wrote: > >> > Turning to DRM/KMS, it seems the supported formats of a plane can be >> > queried using drm_mode_get_plane. However, there doesn't seem to be a >> > way to query the supported formats of a crtc? If display HW only >> > supports scanning ou

Re: How to express planar formats with mediabus format code?

2013-08-09 Thread Su Jiaquan
Hi Laurent / Guennadi, On Fri, Aug 9, 2013 at 5:12 AM, Laurent Pinchart wrote: > Hi, > > On Tuesday 06 August 2013 17:18:14 Su Jiaquan wrote: >> Hi Guennadi, >> >> Thanks for the reply! Please see my description inline. >> >> On Mon, Aug 5, 2013 at 5:02 AM, Guennadi Liakhovetski wrote: >> > On Su

Re: [PATCH v2 1/2] libv4lconvert: Support for Y16 pixel format

2013-08-09 Thread Ricardo Ribalda Delgado
ping? On Sat, Aug 3, 2013 at 12:42 AM, Ricardo Ribalda Delgado wrote: > This patch adds support for V4L2_PIX_FMT_Y16 format. > > Signed-off-by: Ricardo Ribalda Delgado > --- > lib/libv4lconvert/libv4lconvert-priv.h |6 ++ > lib/libv4lconvert/libv4lconvert.c | 19 +

Re: [PATCH v2 2/2] libv4lconvert: Support for RGB32 and BGR32 format

2013-08-09 Thread Ricardo Ribalda Delgado
ping? On Sun, Aug 4, 2013 at 10:05 AM, Ricardo Ribalda Delgado wrote: > Hello Gregor > > Thanks for your comments. I have replied inline. > > On Sat, Aug 3, 2013 at 6:42 PM, Gregor Jasny wrote: >> On 8/3/13 12:42 AM, Ricardo Ribalda Delgado wrote: >>> >>> + case V4L2_PIX_FMT_RGB32: >>> +

[GIT PULL] soc-camera for 3.12 #1

2013-08-09 Thread Guennadi Liakhovetski
Hi Mauro Please, push to 3.12: The following changes since commit 20bf249c2d909c8530615c46d0f9aaa90c73498f: Add linux-next specific files for 20130808 (2013-08-08 16:49:48 +1000) are available in the git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git for-3.12-1 Guennadi Liakhov

Re: [PATCH] uvc: more buffers

2013-08-09 Thread Laurent Pinchart
Hi Oliver, Thank you for the patch. On Friday 09 August 2013 15:11:36 oli...@neukum.org wrote: > From: Oliver Neukum > > This is necessary to let the new generation of cameras from LiteOn used in > Haswell ULT notebook operate. Otherwise the images will be truncated. Could you please post the

Re: [PATCH RFC 0/3] Experimental patches for ISDB-T on Mygica X8502/X8507

2013-08-09 Thread Mauro Carvalho Chehab
Em Thu, 08 Aug 2013 21:00:30 -0300 Alfredo Jesús Delaiti escreveu: > Hi > > > El 08/08/13 13:51, Mauro Carvalho Chehab escribió: > > This is a first set of experimental patches for Mygica X8502/X8507. > > > > The last patch is just a very dirty hack, for testing purposes. I intend > > to get ri

[PATCH] uvc: more buffers

2013-08-09 Thread oliver
From: Oliver Neukum This is necessary to let the new generation of cameras from LiteOn used in Haswell ULT notebook operate. Otherwise the images will be truncated. Signed-off-by: Oliver Neukum --- drivers/media/usb/uvc/uvcvideo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] qv4l2: fix GeneralTab layout

2013-08-09 Thread Bård Eirik Winther
This moves the layout items for cropping, scaling and ALSA to not interfere with driver specific controls. Signed-off-by: Bård Eirik Winther --- utils/qv4l2/general-tab.cpp | 129 ++-- 1 file changed, 64 insertions(+), 65 deletions(-) diff --git a/utils/q

[PATCH] qv4l2: fix GeneralTab layout

2013-08-09 Thread Bård Eirik Winther
Cleans up the layout of GeneralTab. Also removes a single debug printout from original ALSA source. The debug was in a corner case and will most likely not be noticed there anyway, but is now removed. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a messag

Re: [PATCH 1/2] media: vb2: Fix potential deadlock in vb2_prepare_buffer

2013-08-09 Thread Hans Verkuil
On Fri 9 August 2013 14:11:25 Laurent Pinchart wrote: > Commit b037c0fde22b1d3cd0b3c3717d28e54619fc1592 ("media: vb2: fix > potential deadlock in mmap vs. get_userptr handling") fixes an AB-BA > deadlock related to the mmap_sem and driver locks. The same deadlock can > occur in vb2_prepare_buffer()

Re: [PATCH 2/2] media: vb2: Share code between vb2_prepare_buf and vb2_qbuf

2013-08-09 Thread Hans Verkuil
On Fri 9 August 2013 14:11:26 Laurent Pinchart wrote: > The two operations are very similar, refactor most of the code in a > helper function. > > Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Regards, Hans > --- > drivers/media/v4l2-core/videobuf2-core.c | 202 > ++

[PATCHv2 2/3] mb86a20s: Fix TS parallel mode

2013-08-09 Thread Mauro Carvalho Chehab
changeset 768e6dadd74 caused a regression on using mb86a20s in parallel mode, as the parallel mode selection got overriden by mb86a20s_init2. Cc: sta...@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/mb86a20s.c | 16 +++- 1 file changed, 7 insert

[PATCHv2 0/3] Add ISDB-T support on Mygica X8502/X8507

2013-08-09 Thread Mauro Carvalho Chehab
This is likely the final version of the patches that adds support for Mygica X8502/X8507. After bisecting the mb86a20s configs, I discovered that the failure was due to a regression on setting the frontend to parallel mode. So, I removed the dirty mb86a20s from this series, and added a proper reg

[PATCHv2 3/3] cx23885: Add DTV support for Mygica X8502/X8507 boards

2013-08-09 Thread Mauro Carvalho Chehab
Those boards were missing the ISDB-T support. Most of the work on this patch were done by Alfredo. My work here were to port this patch from Kernel 3.2 to upstream, fix the issue caused by the set_frontend bad hook, and add the Kconfig bits. Tested on a X8502 board rebranded as: "Leadership - Pl

[PATCHv2 1/3] cx23885-dvb: use a better approach to hook set_frontend

2013-08-09 Thread Mauro Carvalho Chehab
When the frontend drivers got converted to DVBv5 API, the original hook that tracked when a frontend is set got removed, being replaced by an approach that would use the gate control. That doesn't work fine with some boards. Also, the code were called more times than desired. Replace it by a logic

[GIT PULL FOR v3.12] Mixed V4L2 core and vb2 patches

2013-08-09 Thread Laurent Pinchart
Hi Mauro, The following changes since commit dfb9f94e8e5e7f73c8e2bcb7d4fb1de57e7c333d: [media] stk1160: Build as a module if SND is m and audio support is selected (2013-08-01 14:55:25 -0300) are available in the git repository at: git://linuxtv.org/pinchartl/media.git v4l2/core for you t

[PATCH] MAINTAINERS: Add entry for the Aptina PLL library

2013-08-09 Thread Laurent Pinchart
Add a maintainers entry for the Aptina PLL library, and rename the Aptina sensors entries to make it clear they refer to Aptina camera sensors. Signed-off-by: Laurent Pinchart --- MAINTAINERS | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTA

Re: [PATCH] v4l: Fix colorspace conversion error in sample code

2013-08-09 Thread Hans Verkuil
On Thu 8 August 2013 17:01:10 Laurent Pinchart wrote: > The sample code erroneously scales the y1, pb and pr variables from the > [0.0 .. 1.0] and [-0.5 .. 0.5] ranges to [0 .. 255] and [-128 .. 127]. > Fix it. > > Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Regards, Hans

Re: [PATCH] V4L: async: Make sure subdevs are stored in a list before being moved

2013-08-09 Thread Laurent Pinchart
Hi Sylwester, On Thursday 08 August 2013 17:51:46 Sylwester Nawrocki wrote: > On 08/07/2013 12:41 PM, Laurent Pinchart wrote: > > > > Subdevices have an async_list field used to store them in the global > > list of subdevices or in the notifier done lists. List entries are moved > > from the forme

[PATCH FINAL 6/6] qv4l2: updated about window

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther --- utils/qv4l2/qv4l2.cpp | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index a0f21cd..056e15d 100644 --- a/utils/qv4l2/qv4l2.cpp +++ b/utils/qv4l2/qv4l2.cpp @@ -1110,8 +1110,2

[PATCH FINAL 5/6] qv4l2: add manpage

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther --- utils/qv4l2/Makefile.am | 1 + utils/qv4l2/qv4l2.1 | 58 + 2 files changed, 59 insertions(+) create mode 100644 utils/qv4l2/qv4l2.1 diff --git a/utils/qv4l2/Makefile.am b/utils/qv4l2/Makefile.am index 58a

[PATCH FINAL 2/6] qv4l2: add cropping to CaptureWin and Qt render

2013-08-09 Thread Bård Eirik Winther
Allows for removal of letterboxes from common video formats. The Qt renderer has been rewritten to increase performance required when applying cropping. No longer uses memcpy. Signed-off-by: Bård Eirik Winther --- utils/qv4l2/capture-win-gl.cpp | 27 +++-- utils/qv4l2/capture-win-gl.h

[PATCH FINAL 3/6] qv4l2: fix missing status tips

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther --- utils/qv4l2/general-tab.cpp | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp index 3855296..cfc6bcf 100644 --- a/utils/qv4l2/general-tab.cpp +++ b/utils/qv4l2/general-tab

[PATCH FINAL 4/6] qv4l2: fix program input parameters

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther --- utils/qv4l2/qv4l2.cpp | 137 -- 1 file changed, 121 insertions(+), 16 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 7e2dba0..a0f21cd 100644 --- a/utils/qv4l2/qv4l2.cpp +++ b/util

[PATCH FINAL 0/6] qv4l2: cropping, optimization and documentatio

2013-08-09 Thread Bård Eirik Winther
qv4l2: Add cropping to the CaptureWin. In order to make the Qt renderer work with this as well, it had to be optimized to not lose framerate. A basic manpage is added along width fixing the input parameters. New Features/Improvements: - Add cropping to CaptureWin - Qt renderer has been optimized

[PATCH FINAL 1/6] qv4l2: change m_scaledFrame to m_scaledSize

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther --- utils/qv4l2/capture-win-qt.cpp | 12 ++-- utils/qv4l2/capture-win-qt.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/qv4l2/capture-win-qt.cpp b/utils/qv4l2/capture-win-qt.cpp index f746379..82c618c 100644 --- a/utils/

[PATCH 2/2] media: vb2: Share code between vb2_prepare_buf and vb2_qbuf

2013-08-09 Thread Laurent Pinchart
The two operations are very similar, refactor most of the code in a helper function. Signed-off-by: Laurent Pinchart --- drivers/media/v4l2-core/videobuf2-core.c | 202 --- 1 file changed, 79 insertions(+), 123 deletions(-) diff --git a/drivers/media/v4l2-core/videob

[PATCH 1/2] media: vb2: Fix potential deadlock in vb2_prepare_buffer

2013-08-09 Thread Laurent Pinchart
Commit b037c0fde22b1d3cd0b3c3717d28e54619fc1592 ("media: vb2: fix potential deadlock in mmap vs. get_userptr handling") fixes an AB-BA deadlock related to the mmap_sem and driver locks. The same deadlock can occur in vb2_prepare_buffer(), fix it the same way. Signed-off-by: Laurent Pinchart ---

[PATCH 0/2] Fix AB-BA deadlock in vb2_prepare_buffer()

2013-08-09 Thread Laurent Pinchart
Hello, This patch set fixes a deadlock in the vb2_prepare_buffer() function. See the commit message of patch 1/2 for more information. Patch 2/2 then proceeds to refactor vb2_prepare_buffer() and vb2_qbuf() to avoid code duplication. Laurent Pinchart (2): media: vb2: Fix potential deadlock in v

holiday absence

2013-08-09 Thread Guennadi Liakhovetski
Hi all As many of you already know, I'm on holidays for the next two weeks - until 25th August - with very limited to no access to the internet and email. I'll be sending a couple more emails today to try to make sure nothing gets lost on the way to 3.12. Wishing all a good fortnight. Thanks

[PATCH v2] mt9v032: Use the common clock framework

2013-08-09 Thread Laurent Pinchart
Configure the device external clock using the common clock framework instead of a board code callback function. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9v032.c | 17 +++-- include/media/mt9v032.h | 4 2 files changed, 11 insertions(+), 10 deletions(-) Chang

Re: [PATCH 2/2] qv4l2: add cropping and qt opimization

2013-08-09 Thread Hans Verkuil
On Fri 9 August 2013 09:43:49 Bård Eirik Winther wrote: > Adds cropping to CaptureWin. It also optimizes Qt renderer > to make it perform as expected with cropping and scaling. > > Signed-off-by: Bård Eirik Winther > --- > utils/qv4l2/capture-win-gl.cpp | 27 +++-- > utils/qv4l2/capture-

Re: [PATCH] V4L: s5c73m3: Add format propagation for TRY formats

2013-08-09 Thread Laurent Pinchart
Hi Andrzej, On Friday 09 August 2013 08:24:10 Andrzej Hajda wrote: > On 08/09/2013 12:58 AM, Laurent Pinchart wrote: > > On Wednesday 24 July 2013 16:57:32 Sylwester Nawrocki wrote: > >> From: Andrzej Hajda > >> > >> Resolution set on ISP pad of S5C73M3-OIF subdev should be > >> propagated to so

[PATCH 0/2] qv4l2: add cropping and qt opimization

2013-08-09 Thread Bård Eirik Winther
Add cropping to CaptureWin as well as optimizing the Qt renderer. There is also other fixes and tweaks to the code itself. Cropping allows removal of letterboxing from the video display. Qt optimization no longer needs to copy the frame data for every frame and scaling or cropping is only performed

[PATCH 1/2] qv4l2: change m_scaledFrame to m_scaledSize

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther --- utils/qv4l2/capture-win-qt.cpp | 12 ++-- utils/qv4l2/capture-win-qt.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/qv4l2/capture-win-qt.cpp b/utils/qv4l2/capture-win-qt.cpp index f746379..82c618c 100644 --- a/utils/

[PATCH 2/2] qv4l2: add cropping and qt opimization

2013-08-09 Thread Bård Eirik Winther
Adds cropping to CaptureWin. It also optimizes Qt renderer to make it perform as expected with cropping and scaling. Signed-off-by: Bård Eirik Winther --- utils/qv4l2/capture-win-gl.cpp | 27 +++-- utils/qv4l2/capture-win-gl.h | 1 + utils/qv4l2/capture-win-qt.cpp | 89 +++