TV/RADIO tuner card

2014-06-23 Thread Ariel Argüello
Hi, I request support for the number board of my SAA7130 (philips semiconductor chipset) with fmradio card because it isn't listed in the v4l2 driver list of Saa7134 module. The Tuner card is Winstars WS-TVP7130FM. the output of dmesg command is: [ 20.072044] saa7130/34: v4l2 driver version 0,

cron job: media_tree daily build: OK

2014-06-23 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Tue Jun 24 04:00:24 CEST 2014 git branch: test git hash: 1fe3a8fe494463cfe2556a25ae41a1499725c178 gcc versi

Re: resend: device tree updates for r8a7790 vin

2014-06-23 Thread Simon Horman
inding(s). I don't seem to be able to find renesas,vin-r8a7790 in next-20140623. Have the driver changes been queued up elsewhere? -- 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

[PATCH v2 10/23] v4l: vsp1: Cleanup video nodes at removal time

2014-06-23 Thread Laurent Pinchart
Video nodes created and initialized in the RPF and WPF init code paths are never unregistered, and the related resources (videobuf alloc context and media entity) never released. Fix this by storing a pointer to the vsp1_video object in vsp1_entity and calling vsp1_video_cleanup() from vsp1_entity

[PATCH v2 13/23] v4l: vsp1: sru: Fix the intensity control default value

2014-06-23 Thread Laurent Pinchart
The default value isn't set and defaults to 0, which isn't in the 1-6 min-max range. Fix it by setting the default value to 1. This shoud have been caught when checking the control handler error field at initialization time, but the check was missing. Add it. Signed-off-by: Laurent Pinchart ---

[PATCH v2 08/23] v4l: vsp1: Fix pipeline stop timeout

2014-06-23 Thread Laurent Pinchart
If the pipeline was already stopped when stopping the stream, no frame end interrupt will be generated and the driver will time out waiting for the pipeline to stop. Fix this by setting the pipeline state to STOPPED when the pipeline is idle waiting for frames to process, and to STOPPING at stream

[PATCH v2 23/23] v4l: vsp1: uds: Fix scaling of alpha layer

2014-06-23 Thread Laurent Pinchart
Pixel color components can be scaled using either bilinear interpolation or a multitap filter. The multitap filter provides better results, but can't be selected when the alpha layer need to be scaled down by more than 1/2. Disable alpha scaling when the input has a fixed alpha value, and program

[PATCH v2 19/23] v4l: vsp1: Add V4L2_CID_ALPHA_COMPONENT control support

2014-06-23 Thread Laurent Pinchart
The control is used to configure the fixed alpha channel value, when reading from memory in the RPF or writing to memory in the WPF. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_rpf.c | 52 --- drivers/media/platform/vsp1/vsp1_rwpf.h | 2 ++

[PATCH v2 11/23] v4l: vsp1: Propagate vsp1_device_get errors to the callers

2014-06-23 Thread Laurent Pinchart
Modify the vsp1_device_get() function to return an error code instead of a pointer to the VSP1 device, and use the return value in the callers. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1.h | 2 +- drivers/media/platform/vsp1/vsp1_drv.c | 16 ++-- dr

[PATCH v2 17/23] v4l: vsp1: Switch to XRGB formats

2014-06-23 Thread Laurent Pinchart
The driver ignores the alpha component on output video nodes and hardcodes the alpha component to 0 on capture video nodes. Make this explicit by exposing XRGB formats. Compatibility with existing userspace applications is handled by selecting the XRGB format corresponding to the requested old RGB

[PATCH v2 06/23] v4l: vsp1: Fix routing cleanup when stopping the stream

2014-06-23 Thread Laurent Pinchart
Commit d9b45ed3d8b75e8cf38c8cd1563c29217eecba27 ("v4l: vsp1: Support multi-input entities") reworked pipeline routing configuration and introduced a bug by writing to the entities routing registers without first checking whether the entity had a routing register. This results in overwriting the val

[PATCH v2 04/23] v4l: Add premultiplied alpha flag for pixel formats

2014-06-23 Thread Laurent Pinchart
When set, the new V4L2_PIX_FMT_FLAG_PREMUL_ALPHA flag indicates that the pixel values are premultiplied by the alpha channel value. Signed-off-by: Laurent Pinchart --- Documentation/DocBook/media/v4l/pixfmt.xml | 28 +++- Documentation/DocBook/media/v4l/v4l2.xml | 2 +-

[PATCH v2 18/23] v4l: vsp1: Add alpha channel support to the memory ports

2014-06-23 Thread Laurent Pinchart
Support ARGB formats on the RPF side by reading the alpha component from memory and on the WPF side by writing it to memory. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_rpf.c | 8 -- drivers/media/platform/vsp1/vsp1_video.c | 49 +--- d

[PATCH v2 21/23] v4l: vsp1: bru: Support non-premultiplied colors at the BRU output

2014-06-23 Thread Laurent Pinchart
The BRU outputs premultiplied colors, enable color data normalization when the format configured at the output of the pipeline isn't premultiplied. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_bru.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff -

[PATCH v2 15/23] v4l: vsp1: wpf: Simplify cast to pipeline structure

2014-06-23 Thread Laurent Pinchart
Use the subdev pointer directly to_vsp1_pipeline() macro instead of casting from the subdev to the wpf object and back to the subdev. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_wpf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/pla

[PATCH v2 03/23] v4l: Support extending the v4l2_pix_format structure

2014-06-23 Thread Laurent Pinchart
The v4l2_pix_format structure has no reserved field. It is embedded in the v4l2_framebuffer structure which has no reserved fields either, and in the v4l2_format structure which has reserved fields that were not previously required to be zeroed out by applications. To allow extending v4l2_pix_form

[PATCH v2 14/23] v4l: vsp1: sru: Make the intensity controllable during streaming

2014-06-23 Thread Laurent Pinchart
The control value is currently stored in the SRU structure by the control set handler and written to the hardware at stream on time, making control set during streaming ineffective. Fix it by writing to the registers from within the control set handler. Signed-off-by: Laurent Pinchart --- driver

[PATCH v2 09/23] v4l: vsp1: Fix typos

2014-06-23 Thread Laurent Pinchart
Several macros were mistakenly prefixed with VPS1 instead of VSP1. Fix them. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1.h | 12 ++-- drivers/media/platform/vsp1/vsp1_drv.c | 6 +++--- drivers/media/platform/vsp1/vsp1_video.h | 2 +- 3 files changed, 10

[PATCH v2 05/23] v4l: vb2: Fix stream start and buffer completion race

2014-06-23 Thread Laurent Pinchart
videobuf2 stores the driver streaming state internally in the queue in the start_streaming_called variable. The state is set right after the driver start_stream operation returns, and checked in the vb2_buffer_done() function, typically called from the frame completion interrupt handler. A race con

[PATCH v2 07/23] v4l: vsp1: Release buffers at stream stop

2014-06-23 Thread Laurent Pinchart
videobuf2 expects no buffer to be owned by the driver when the stop_stream queue operation returns. As the vsp1 driver fails to do so, a warning is generated at stream top time. Fix this by mark releasing all buffers queued on the IRQ queue in the stop_stream operation handler and marking them as

[PATCH v2 22/23] v4l: vsp1: bru: Make the background color configurable

2014-06-23 Thread Laurent Pinchart
Expose the background color to userspace through the V4L2_CID_BG_COLOR control. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_bru.c | 51 ++ drivers/media/platform/vsp1/vsp1_bru.h | 3 ++ 2 files changed, 49 insertions(+), 5 deletions(-) d

[PATCH v2 20/23] v4l: vsp1: bru: Support premultiplied alpha at the BRU inputs

2014-06-23 Thread Laurent Pinchart
Adjust the BRU blending formula to avoid the multiplication by alpha when the corresponding input format is premultiplied. As this requires access to the RPFs connected to the BRU inputs from the BRU module, store pointers to the RPFs in the BRU structure when validating the pipeline. Signed-off-b

[PATCH v2 12/23] v4l: vsp1: Setup control handler automatically at stream on time

2014-06-23 Thread Laurent Pinchart
When setting a control directly on a subdev node the VSP1 driver doesn't guarantee that the device is powered on. This leads to crashes when the control handlers writes to hardware registers. One easy way to fix this is to ensure that the device gets powered on when a subdev node is opened. However

[PATCH v2 16/23] v4l: vsp1: wpf: Clear RPF to WPF association at stream off time

2014-06-23 Thread Laurent Pinchart
The VSP1 stores the video pipelines' input (RPF) to output (WPF) mappings in a WPF register. An RPF must never be associated with multiple WPFs, even if all of those WPFs but one are unused, otherwise the hardware won't function properly. The driver doesn't ensure this correctly as it never clears

[PATCH v2 02/23] DocBook: media: Document ALPHA_COMPONENT control usage on output devices

2014-06-23 Thread Laurent Pinchart
Extend the V4L2_CID_ALPHA_COMPONENT control for use on output devices, to set the alpha component value when the output format doesn't have an alpha channel. Signed-off-by: Laurent Pinchart --- Documentation/DocBook/media/v4l/controls.xml | 17 ++--- 1 file changed, 10 insertions(+),

[PATCH v2 00/23] Renesas VSP1: alpha support and miscellaneous fixes

2014-06-23 Thread Laurent Pinchart
Hello, This patch set adds alpha support to the Renesas VSP1 driver. The feature is split in two parts, support for the alpha component in capture and output buffers, and support for premultiplied colors. Each part requires extensions to the V4L API. The first two patches add new pixel formats fo

[PATCH v2 01/23] v4l: Add ARGB and XRGB pixel formats

2014-06-23 Thread Laurent Pinchart
From: Laurent Pinchart The existing RGB pixel formats are ill-defined in respect to their alpha bits and their meaning is driver dependent. Create new standard ARGB and XRGB variants with clearly defined meanings and make the existing variants deprecated. The new pixel formats 4CC values have be

Re: [PATCH 00/22] Add and use pci_zalloc_consistent

2014-06-23 Thread Julian Calaby
Hi Joe, On Tue, Jun 24, 2014 at 5:13 AM, Joe Perches wrote: > On Mon, 2014-06-23 at 10:25 -0700, Luis R. Rodriguez wrote: >> On Mon, Jun 23, 2014 at 06:41:28AM -0700, Joe Perches wrote: >> > Adding the helper reduces object code size as well as overall >> > source size line count. >> > >> > It's

Re: [PATCH 00/22] Add and use pci_zalloc_consistent

2014-06-23 Thread David Miller
From: Joe Perches Date: Mon, 23 Jun 2014 06:41:28 -0700 > Adding the helper reduces object code size as well as overall > source size line count. > > It's also consistent with all the various zalloc mechanisms > in the kernel. > > Done with a simple cocci script and some typing. For networking

resend: device tree updates for r8a7790 vin

2014-06-23 Thread Ben Dooks
I've gone through and hopefully cleaned up Sergei's issues. Is there any chance Simon could queue these in his tree? -- 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/major

[PATCH 2/2] [PATCH v2] ARM: lager: add vin1 node

2014-06-23 Thread Ben Dooks
Add device-tree for vin1 (composite video in) on the lager board. Signed-off-by: Ben Dooks --- Fixes since v1: - Whitespace fixes as suggested by Sergei --- arch/arm/boot/dts/r8a7790-lager.dts | 36 1 file changed, 36 insertions(+) diff --git a/arch

[PATCH 1/2] r8a7790.dtsi: add vin[0-3] nodes

2014-06-23 Thread Ben Dooks
Add nodes for the four video input channels on the R8A7790. Signed-off-by: Ben Dooks --- arch/arm/boot/dts/r8a7790.dtsi | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7ff2960..a6f083d

Re: [PATCH 7/9] soc_camera: add support for dt binding soc_camera drivers

2014-06-23 Thread Ben Dooks
On 19/06/14 08:28, Guennadi Liakhovetski wrote: > Hi Ben, > > Thanks for an update. > > On Sun, 15 Jun 2014, Ben Dooks wrote: > >> Add initial support for OF based soc-camera devices that may be used >> by any of the soc-camera drivers. The driver itself will need converting >> to use OF. >> >>

Re: [linux-sunxi] Re: [PATCH v10 4/5] ARM: sunxi: Add IR controllers on A20 to dtsi

2014-06-23 Thread Maxime Ripard
On Mon, Jun 23, 2014 at 01:08:24PM -0700, Александр Берсенев wrote: > Thanks, > > Should I send applied patches in the further versions of this patch set? No, you don't have to. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com s

Re: [PATCH 00/22] Add and use pci_zalloc_consistent

2014-06-23 Thread Joe Perches
On Mon, 2014-06-23 at 10:25 -0700, Luis R. Rodriguez wrote: > On Mon, Jun 23, 2014 at 06:41:28AM -0700, Joe Perches wrote: > > Adding the helper reduces object code size as well as overall > > source size line count. > > > > It's also consistent with all the various zalloc mechanisms > > in the ke

Re: [PATCH 00/22] Add and use pci_zalloc_consistent

2014-06-23 Thread Luis R. Rodriguez
On Mon, Jun 23, 2014 at 06:41:28AM -0700, Joe Perches wrote: > Adding the helper reduces object code size as well as overall > source size line count. > > It's also consistent with all the various zalloc mechanisms > in the kernel. > > Done with a simple cocci script and some typing. Awesome, an

Re: [BUG] rc1 and rc2: Laptop unusable: on boot,screen black instead of native resolution

2014-06-23 Thread Martin Kepplinger
Am 2014-06-23 15:14, schrieb Zhang Rui: > On Mon, 2014-06-23 at 14:22 +0200, Martin Kepplinger wrote: >> Am 2014-06-23 03:10, schrieb Zhang, Rui: >>> >>> -Original Message- From: Martin Kepplinger [mailto:mart...@posteo.de] Sent: Sunday, June 22, 2014 10:25 PM To: Zhang,

[PATCH 00/22] Add and use pci_zalloc_consistent

2014-06-23 Thread Joe Perches
Adding the helper reduces object code size as well as overall source size line count. It's also consistent with all the various zalloc mechanisms in the kernel. Done with a simple cocci script and some typing. Joe Perches (22): pci-dma-compat: Add pci_zalloc_consistent helper atm: Use pci_za

[PATCH 07/22] media: Use pci_zalloc_consistent

2014-06-23 Thread Joe Perches
Remove the now unnecessary memset too. Signed-off-by: Joe Perches --- drivers/media/common/saa7146/saa7146_core.c | 15 ++- drivers/media/common/saa7146/saa7146_fops.c | 5 +++-- drivers/media/pci/bt8xx/bt878.c | 16 drivers/media/pci/n

Re: [BUG] rc1 and rc2: Laptop unusable: on boot,screen black instead of native resolution

2014-06-23 Thread Zhang Rui
On Mon, 2014-06-23 at 14:22 +0200, Martin Kepplinger wrote: > Am 2014-06-23 03:10, schrieb Zhang, Rui: > > > > > >> -Original Message- > >> From: Martin Kepplinger [mailto:mart...@posteo.de] > >> Sent: Sunday, June 22, 2014 10:25 PM > >> To: Zhang, Rui > >> Cc: r...@rjwysocki.net; l...@ke

Re: [PATCH v10 4/5] ARM: sunxi: Add IR controllers on A20 to dtsi

2014-06-23 Thread Maxime Ripard
On Sat, Jun 21, 2014 at 05:04:05PM +0600, Alexander Bersenev wrote: > This patch adds records for two IR controllers on A20 > > Signed-off-by: Alexander Bersenev > Signed-off-by: Alexsey Shestacov Applied, thanks. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engi

Re: bttv and colorspace

2014-06-23 Thread Hans Verkuil
Hi Andy, On 06/20/2014 12:24 PM, Andy Walls wrote: > On Fri, 2014-06-20 at 09:07 +0200, Hans Verkuil wrote: >> Hi Mauro, >> >> I wonder if you remember anything about the reported broken colorspace >> handling >> of bttv. The spec talks about V4L2_COLORSPACE_BT878 where the Y range is >> 16-253

Re: [BUG] rc1 and rc2: Laptop unusable: on boot,screen black instead of native resolution

2014-06-23 Thread Martin Kepplinger
Am 2014-06-23 03:10, schrieb Zhang, Rui: > > >> -Original Message- >> From: Martin Kepplinger [mailto:mart...@posteo.de] >> Sent: Sunday, June 22, 2014 10:25 PM >> To: Zhang, Rui >> Cc: r...@rjwysocki.net; l...@kernel.org; linux-a...@vger.kernel.org; >> linux-ker...@vger.kernel.org >> Sub

Re: Time for v4l-utils 1.2 release?

2014-06-23 Thread Laurent Pinchart
Hi Mauro, On Monday 23 June 2014 07:58:37 Mauro Carvalho Chehab wrote: > Em Mon, 23 Jun 2014 10:22:18 +0200 Hans Verkuil escreveu: > > On 06/21/2014 12:53 PM, Mauro Carvalho Chehab wrote: > >> Em Sat, 21 Jun 2014 08:07:57 +0200 Hans Verkuil escreveu: > >>> On 06/21/2014 12:29 AM, Mauro Carvalho Ch

Re: Time for v4l-utils 1.2 release?

2014-06-23 Thread Mauro Carvalho Chehab
Em Mon, 23 Jun 2014 10:22:18 +0200 Hans Verkuil escreveu: > On 06/21/2014 12:53 PM, Mauro Carvalho Chehab wrote: > > Em Sat, 21 Jun 2014 08:07:57 +0200 > > Hans Verkuil escreveu: > > > >> On 06/21/2014 12:29 AM, Mauro Carvalho Chehab wrote: > >>> Em Sat, 21 Jun 2014 00:07:19 +0200 > >>> Hans Ve

[PATCH v2] media: vb2: verify data_offset only if nonzero bytesused

2014-06-23 Thread Nikhil Devshatwar
verify_length would fail if the user space fills up the data_offset field and bytesused is left as zero. Correct this. If bytesused is not populated, it means bytesused is same as length. Checking data offset >= bytesused makes sense only if bytesused is valid. Signed-off-by: Nikhil Devshatwar -

Re: [[PATCH]] vb2: verify data_offset only if nonzero bytesused

2014-06-23 Thread Devshatwar, Nikhil
On Monday 23 June 2014 01:25 PM, Hans Verkuil wrote: On 06/22/2014 12:47 PM, Nikhil Devshatwar wrote: verify_planes would fail if the user space fills up the data_offset field and bytesused is left as zero. Correct this. Checking for data_offset > bytesused is not correct as it might fail some

Re: [REPOST PATCH 4/8] android: convert sync to fence api, v5

2014-06-23 Thread Maarten Lankhorst
Hey, op 20-06-14 22:52, Thierry Reding schreef: > On Thu, Jun 19, 2014 at 02:28:14PM +0200, Daniel Vetter wrote: >> On Thu, Jun 19, 2014 at 1:48 PM, Thierry Reding >> wrote: > With these changes, can we pull the android sync logic out of > drivers/staging/ now? Afaik the google guys

Re: Time for v4l-utils 1.2 release?

2014-06-23 Thread Hans Verkuil
On 06/21/2014 12:53 PM, Mauro Carvalho Chehab wrote: > Em Sat, 21 Jun 2014 08:07:57 +0200 > Hans Verkuil escreveu: > >> On 06/21/2014 12:29 AM, Mauro Carvalho Chehab wrote: >>> Em Sat, 21 Jun 2014 00:07:19 +0200 >>> Hans Verkuil escreveu: >>> On 06/20/2014 10:31 PM, Gregor Jasny wrote:

Re: Time for v4l-utils 1.2 release?

2014-06-23 Thread Hans Verkuil
On 06/21/2014 12:07 AM, Hans Verkuil wrote: > On 06/20/2014 10:31 PM, Gregor Jasny wrote: >> Hello, >> >> It's been 11 months since the 1.0.0 release. What do you think about >> releasing HEAD? Do you have any pending commits? > > I've got two patches from Laurent pending that ensure that the 'ins

Re: [[PATCH]] vb2: verify data_offset only if nonzero bytesused

2014-06-23 Thread Hans Verkuil
On 06/22/2014 12:47 PM, Nikhil Devshatwar wrote: > verify_planes would fail if the user space fills up the data_offset field > and bytesused is left as zero. Correct this. > > Checking for data_offset > bytesused is not correct as it might fail some of > the valid use cases. e.g. when working with