[PATCH v3 1/2] media: i2c: adv7343: make the platform data members as array

2013-07-19 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch makes the platform data members as array wherever possible, so as this makes easier while collecting the data in DT case and read the entire array at once. This patch also makes appropriate changes to board-da850-evm.c Signed-off-by: Lad, Prabhakar Cc: Sekhar

[PATCH v3 2/2] media: i2c: adv7343: add OF support

2013-07-19 Thread Lad, Prabhakar
From: "Lad, Prabhakar" add OF support for the adv7343 driver. Signed-off-by: Lad, Prabhakar --- Changes for v3: 1: Fixed review comments pointed by Sylwester. Changes for v2: 1: Fixed naming of properties. .../devicetree/bindings/media/i2c/adv7343.txt | 48

[PATCH v3 0/2] adv7343 add OF support

2013-07-19 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This series adds OF support for adv7343 driver. The first patch makes platform data members as a array, so to ease in adding DT support. Lad, Prabhakar (2): media: i2c: adv7343: make the platform data members as array media: i2c: adv7343: add OF support .../devicetre

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

2013-07-19 Thread Alexander Shiyan
On Fri, 21 Jun 2013 09:30:14 +0200 Philipp Zabel wrote: > Am Donnerstag, den 20.06.2013, 20:46 +0400 schrieb Alexander Shiyan: > > Signed-off-by: Alexander Shiyan > > --- > > drivers/media/platform/coda.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/me

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-19 Thread Kishon Vijay Abraham I
Hi, On Saturday 20 July 2013 05:20 AM, Greg KH wrote: On Fri, Jul 19, 2013 at 12:06:01PM +0530, Kishon Vijay Abraham I wrote: Hi, On Friday 19 July 2013 11:59 AM, Greg KH wrote: On Fri, Jul 19, 2013 at 11:25:44AM +0530, Kishon Vijay Abraham I wrote: Hi, On Friday 19 July 2013 11:13 AM, Greg

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-19 Thread Kishon Vijay Abraham I
Hi, On Friday 19 July 2013 09:24 PM, Stephen Warren wrote: On 07/19/2013 12:36 AM, Kishon Vijay Abraham I wrote: Hi, On Friday 19 July 2013 11:59 AM, Greg KH wrote: On Fri, Jul 19, 2013 at 11:25:44AM +0530, Kishon Vijay Abraham I wrote: Hi, On Friday 19 July 2013 11:13 AM, Greg KH wrote: O

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-19 Thread Greg KH
On Fri, Jul 19, 2013 at 12:06:01PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 19 July 2013 11:59 AM, Greg KH wrote: > > On Fri, Jul 19, 2013 at 11:25:44AM +0530, Kishon Vijay Abraham I wrote: > >> Hi, > >> > >> On Friday 19 July 2013 11:13 AM, Greg KH wrote: > >>> On Fri, Jul 19, 201

[PATCH v8] V4L2: soc_camera: Renesas R-Car VIN driver

2013-07-19 Thread Sergei Shtylyov
From: Vladimir Barinov Add Renesas R-Car VIN (Video In) V4L2 driver. Based on the patch by Phil Edworthy . Signed-off-by: Vladimir Barinov [Sergei: removed deprecated IRQF_DISABLED flag, reordered/renamed 'enum chip_id' values, reordered rcar_vin_id_table[] entries, removed senseless parens f

Re: [PATCH 1/2] videobuf2-dma-sg: Allocate pages as contiguous as possible

2013-07-19 Thread Ricardo Ribalda Delgado
Hello Jonathan: Thanks for your review. I am making a driver for a camera that produces 4Mpx images with up to 10 bytes per pixel!. The camera has a dma engine capable of moving up to 255 sg sectors. In the original implementation of vb2-dma-sg, every page was allocated independently, dividing th

Re: width and height of JPEG compressed images

2013-07-19 Thread Sakari Ailus
Hi Thomas and Sylwester, On Mon, Jul 15, 2013 at 09:18:36AM +, Thomas Vajzovic wrote: > On 10 July 2013 20:44 Sylwester Nawrocki wrote: > >On 07/07/2013 10:18 AM, Thomas Vajzovic wrote: > >> On 06 July 2013 20:58 Sylwester Nawrocki wrote: > >>> On 07/05/2013 10:22 AM, Thomas Vajzovic wrote: >

Re: width and height of JPEG compressed images

2013-07-19 Thread Sakari Ailus
Hi Thomas and Sylwester, Apologies for my late reply. On Sat, Jul 06, 2013 at 09:58:23PM +0200, Sylwester Nawrocki wrote: > Hi Thomas, > > Cc: Sakari and Laurent > > On 07/05/2013 10:22 AM, Thomas Vajzovic wrote: > >Hello, > > > >I am writing a driver for the sensor MT9D131. This device suppor

Proposed modifications to dvb_frontend_ops

2013-07-19 Thread Chris Lee
In frontend.h we have a struct called dvb_frontend_ops, in there we have an element called delsys to show the delivery systems supported by the tuner, Id like to propose we add onto that with delmod and delfec. Its not a perfect solution as sometimes a specific modulation or fec is only availible

Re: [PATCH 1/2] videobuf2-dma-sg: Allocate pages as contiguous as possible

2013-07-19 Thread Jonathan Corbet
On Fri, 19 Jul 2013 19:02:33 +0200 Ricardo Ribalda Delgado wrote: > Most DMA engines have limitations regarding the number of DMA segments > (sg-buffers) that they can handle. Videobuffers can easily spread > through houndreds of pages. > > In the previous aproach, the pages were allocated indiv

cron job: media_tree daily build: WARNINGS

2013-07-19 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 Jul 19 19:00:22 CEST 2013 git branch: test git hash: 1c26190a8d492adadac4711fe5762d46204b18b0 gcc versi

[PATCH 1/2] radio-aztech: Convert to generic lm7000 implementation

2013-07-19 Thread Ondrej Zary
Aztech radio card is based on LM7001 chip which is (software) compatible with LM7000. So remove the LM7000-specific code from the driver and use generic code. Also found that the card does not have A0..A2 ISA pins connected, which means that the region size is 8 bytes. Signed-off-by: Ondrej Zar

[RFC 3/4] omap3isp: Mark which pads must connect

2013-07-19 Thread Sakari Ailus
Mark pads that must be connected. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/ispccdc.c|3 ++- drivers/media/platform/omap3isp/ispccp2.c|3 ++- drivers/media/platform/omap3isp/ispcsi2.c|3 ++- drivers/media/platform/omap3isp/isppreview.c |3 ++- dr

[RFC 4/4] omap3isp: Add resizer data rate configuration to resizer_link_validate

2013-07-19 Thread Sakari Ailus
The configuration of many other blocks depend on resizer maximum data rate. Get the value from resizer at link validation time. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/platform/omap3isp/ispresizer.c | 15 +++ drivers/media/platform/omap3isp/ispvideo.c |

[RFC 0/4] Add MEDIA_PAD_FL_MUST_CONNECT pad flag, check it

2013-07-19 Thread Sakari Ailus
Hi all, This is a small RFC patchset which adds a new pad flag MEDIA_PAD_FL_MUST_CONNECT. Pads that have this flag are required to be connected through an enabled link for the entity to be able to stream. Both sink and source pads may have this flag, compared to my old patch which required all sin

[RFC 1/4] media: Add pad flag MEDIA_PAD_FL_MUST_CONNECT

2013-07-19 Thread Sakari Ailus
Pads that set this flag must be connected by an active link for the entity to stream. Signed-off-by: Sakari Ailus --- Documentation/DocBook/media/v4l/media-ioc-enum-links.xml |5 + include/uapi/linux/media.h |1 + 2 files changed, 6 insertions(+) diff -

[RFC 2/4] media: Check for active links on pads with MEDIA_PAD_FL_MUST_CONNECT flag

2013-07-19 Thread Sakari Ailus
Do not allow streaming if a pad with MEDIA_PAD_FL_MUST_CONNECT flag is not connected by an active link. This patch makes it possible to avoid drivers having to check for the most common case of link state validation: a sink pad that must be connected. Signed-off-by: Sakari Ailus --- drivers/med

[PATCH 2/2] radio-aztech: Implement signal strength detection and fix stereo detection

2013-07-19 Thread Ondrej Zary
Current stereo detection code is wrong - it reads TUNED bit instead of STEREO bit. Fix that and implement signal strength detection too. Also remove useless s_stereo functionn. Signed-off-by: Ondrej Zary --- drivers/media/radio/radio-aztech.c | 13 - 1 files changed, 4 insertions(

[PATCH 2/2] videobuf2-dma-sg: Replace vb2_dma_sg_desc with sg_table

2013-07-19 Thread Ricardo Ribalda Delgado
Replace the private struct vb2_dma_sg_desc with the struct sg_table so we can benefit from all the helping functions in lib/scatterlist.c for things like allocating the sg or compacting the descriptor marvel-ccic and solo6x10 drivers, that uses this api has been updated Signed-off-by: Ricardo Rib

[PATCH 1/2] videobuf2-dma-sg: Allocate pages as contiguous as possible

2013-07-19 Thread Ricardo Ribalda Delgado
Most DMA engines have limitations regarding the number of DMA segments (sg-buffers) that they can handle. Videobuffers can easily spread through houndreds of pages. In the previous aproach, the pages were allocated individually, this could led to the creation houndreds of dma segments (sg-buffers)

[PATCH 0/2] videobuf2-dma-sg: Contiguos memory allocation

2013-07-19 Thread Ricardo Ribalda Delgado
Allocate memory as contiguos as possible to support dma engines with limitated amount of sg-descriptors. Replace private structer vb2_dma_sg_desc with generic struct sg_table. PS: This series of patches is the evolution of my previous patch for vb2-dma-sg to allocate the memory as contiguos as

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-19 Thread Stephen Warren
On 07/19/2013 12:36 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 19 July 2013 11:59 AM, Greg KH wrote: >> On Fri, Jul 19, 2013 at 11:25:44AM +0530, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Friday 19 July 2013 11:13 AM, Greg KH wrote: On Fri, Jul 19, 2013 at 11:07:10AM +0530,

Re: [PATCH 1/4] videobuf2-dma-sg: Allocate pages as contiguous as possible

2013-07-19 Thread Ricardo Ribalda Delgado
Hello Andre The underflow it is totally my fault :(, last_page is unsigned. I have fixed it. I was not aware of the double check. I have also fixed. I will wait for more comments and then I will post it again to avoid spamming the list. Thanks! On Fri, Jul 19, 2013 at 2:18 PM, Andre Heider wr

Re: [PATCH 1/4] videobuf2-dma-sg: Allocate pages as contiguous as possible

2013-07-19 Thread Andre Heider
On Fri, Jul 19, 2013 at 09:58:46AM +0200, Ricardo Ribalda Delgado wrote: > Most DMA engines have limitations regarding the number of DMA segments > (sg-buffers) that they can handle. Videobuffers can easily spread > through houndreds of pages. > > In the previous aproach, the pages were allocated

Re: [PATCH 2/4] videobuf2-dma-sg: Replace vb2_dma_sg_desc with sg_table

2013-07-19 Thread Ricardo Ribalda Delgado
Hello Sylwester I thought I had to split the API changes. Sorry :S. I will wait for more comments and then I will resubmit. Thanks for you comment! On Fri, Jul 19, 2013 at 10:51 AM, Sylwester Nawrocki wrote: > Hi Ricardo, > > On 07/19/2013 09:58 AM, Ricardo Ribalda Delgado wrote: >> Replace th

Re: PROBLEM: dvb-usb-rtl28xxu and Terratec Cinergy TStickRC (rev3) - no signal on some frequencies

2013-07-19 Thread Antti Palosaari
Hello It is e4000 driver problem. Someone should take the look what there is wrong. Someone sent non-working stick for me, but I wasn't able to reproduce issue. I used modulator to generate signal with just same parameters he said non-working, but it worked for me. It looks like e4000 driver d

PROBLEM: dvb-usb-rtl28xxu and Terratec Cinergy TStickRC (rev3) - no signal on some frequencies

2013-07-19 Thread Jan Taegert
[1.] One line summary of the problem: Kernel 3.8.x and later - DVB-T-USB-Device with module dvb-usb-rtl28xxu - doesn't get signal on some frequencies [2.] Full description of the problem/report: I am using a Terratec CinergyTStickRC (rev3), it's a usb-dvbt-device with device-id: 0ccd:00d3. Usua

Re: [PATCH v1 1/2] media: rc: Add user count to rc dev.

2013-07-19 Thread Srinivas KANDAGATLA
On 19/07/13 12:01, Sean Young wrote: >> +int rval = 0; >> >> -return rdev->open(rdev); >> +if (!rdev->users++) >> +rval = rdev->open(rdev); >> + >> +if (rval) >> +rdev->users--; >> + >> +return rval; > > This looks racey. Some locking is needed, I thi

Re: [PATCH v1 1/2] media: rc: Add user count to rc dev.

2013-07-19 Thread Sean Young
On Fri, Jul 19, 2013 at 09:39:27AM +0100, Srinivas KANDAGATLA wrote: > From: Srinivas Kandagatla > > This patch adds user count to rc_dev structure, the reason to add this > new member is to allow other code like lirc to open rc device directly. > In the existing code, rc device is only opened by

Re: [PATCH] cx23885[v2]: Fix IR interrupt storm.

2013-07-19 Thread Andy Walls
Luis Alves wrote: >Hi Max, > >Should have thought on that! I'll change it to preserve all other bits. > >Thanks, >Luis > > >On Fri, Jul 19, 2013 at 4:37 AM, nibble.max >wrote: >> Hello Luis, >> The internel interrupts are rounted as follow: >> flatiron(include ADC)--->HammerHead(include IR insid

Re: [PATCH] cx23885[v2]: Fix IR interrupt storm.

2013-07-19 Thread Luis Alves
Hi Max, Should have thought on that! I'll change it to preserve all other bits. Thanks, Luis On Fri, Jul 19, 2013 at 4:37 AM, nibble.max wrote: > Hello Luis, > The internel interrupts are rounted as follow: > flatiron(include ADC)--->HammerHead(include IR inside)--->Pecos(PCIe) > The flatiron

Re: [PATCH 2/4] videobuf2-dma-sg: Replace vb2_dma_sg_desc with sg_table

2013-07-19 Thread Sylwester Nawrocki
Hi Ricardo, On 07/19/2013 09:58 AM, Ricardo Ribalda Delgado wrote: > Replace the private struct vb2_dma_sg_desc with the struct sg_table so > we can benefit from all the helping functions in lib/scatterlist.c for > things like allocating the sg or compacting the descriptor > > Signed-off-by: Rica

[PATCH v1 0/2] Allow rc device to open from lirc

2013-07-19 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla Thankyou for providing comments on RFC patch. This patchset adds new members to rc_device structure to open rc device from code other than rc-main. In the current code rc-device is only opened via input driver. In cases where rc device is using lirc protocol, it will ne

[PATCH v1 2/2] media: lirc: Allow lirc dev to talk to rc device

2013-07-19 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla The use case is simple, if any rc device has allowed protocols = RC_TYPE_LIRC and map_name = RC_MAP_LIRC set, the driver open will be never called. The reason for this is, all of the key maps except lirc have some KEYS in there map, so during rc_register_device process t

[PATCH v1 1/2] media: rc: Add user count to rc dev.

2013-07-19 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla This patch adds user count to rc_dev structure, the reason to add this new member is to allow other code like lirc to open rc device directly. In the existing code, rc device is only opened by input subsystem which works ok if we have any input drivers to match. But in c

Re: [PATCH] videobuf2-dma-sg: Minimize the number of dma segments

2013-07-19 Thread Ricardo Ribalda Delgado
Hello Marek I have prepared a new set of patches, please take a look to them. The series implements the coherent allocation, segments compaction and use of sg_table, it does not implement the dma_map/dma_unmap/dma_sync, I rather work on that one when you are back. Thanks for your help On Thu, Ju

[PATCH 1/4] videobuf2-dma-sg: Allocate pages as contiguous as possible

2013-07-19 Thread Ricardo Ribalda Delgado
Most DMA engines have limitations regarding the number of DMA segments (sg-buffers) that they can handle. Videobuffers can easily spread through houndreds of pages. In the previous aproach, the pages were allocated individually, this could led to the creation houndreds of dma segments (sg-buffers)

[PATCH 4/4] media/solo6x10: Changes on the vb2-dma-sg API

2013-07-19 Thread Ricardo Ribalda Delgado
The struct vb2_dma_sg_desc has been replaced with the generic sg_table to describe the location of the video buffers. Signed-off-by: Ricardo Ribalda Delgado --- drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff

[PATCH 2/4] videobuf2-dma-sg: Replace vb2_dma_sg_desc with sg_table

2013-07-19 Thread Ricardo Ribalda Delgado
Replace the private struct vb2_dma_sg_desc with the struct sg_table so we can benefit from all the helping functions in lib/scatterlist.c for things like allocating the sg or compacting the descriptor Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 103 ++

[PATCH 0/4] videobuf2-dma-sg: Contiguos memory allocation

2013-07-19 Thread Ricardo Ribalda Delgado
Allocate memory as contiguos as possible to support dma engines with limitated amount of sg-descriptors. Replace private structer vb2_dma_sg_desc with generic struct sg_table. This series of patches is the evolution of my previous patch for vb2-dma-sg to allocate the memory as contiguos as poss

[PATCH 3/4] media/marvell-ccic: Changes on the vb2-dma-sg API

2013-07-19 Thread Ricardo Ribalda Delgado
The struct vb2_dma_sg_desc has been replaced with the generic sg_table to describe the location of the video buffers. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/platform/marvell-ccic/mcam-core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/driv