[PATCH 2/2] [media] ngene: separate demodulator and tuner attach

2012-12-15 Thread Patrice Chotard
Previously, demodulator and tuner attach was done in the demod_attach callback. Migrate the tuner part in the tuner_attach callback in ngene_info to do thing in right place. Signed-off-by: Patrice Chotard --- drivers/media/pci/ngene/ngene-cards.c | 10 ++ 1 file changed, 10 insertions(

[PATCH 1/2] [media] drxd: allow functional gate control after, attach

2012-12-15 Thread Patrice Chotard
Previously, gate control didn't work until drxd_init() execution. Migrate necessary set of commands in drxd_attach to allow gate control to be used by tuner which are accessible through i2c gate. Reported-by: frederic.mantega...@gbiloba.org Signed-off-by: Patrice Chotard --- drivers/media/dvb-fr

[PATCH 0/2] fix dvb_pll_attach failure for ngene

2012-12-15 Thread Patrice Chotard
Patrice Chotard (2): [media] drxd: allow functional gate control after attach [media] ngene: separate demodulator and tuner attach drivers/media/dvb-frontends/drxd_hard.c |4 drivers/media/pci/ngene/ngene-cards.c | 10 ++ 2 files changed, 14 insertions(+) -- 1.7.10.4

[PATCH] [media] Add common binding documentation for video interfaces

2012-12-15 Thread Sylwester Nawrocki
From: Guennadi Liakhovetski This patch adds a document describing common OF bindings for video capture, output and video processing devices. It is currently mainly focused on video capture devices, with data interfaces defined in standards like ITU-R BT.656 or MIPI CSI-2. It also documents a meth

cron job: media_tree daily build: ERRORS

2012-12-15 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 Dec 15 19:00:28 CET 2012 git hash:49cc629df16f2a15917800a8579bd9c25c41b634 gcc version: i686-linux-gcc (GCC

Re: [PATCH] omap_vout: find_vma() needs ->mmap_sem held

2012-12-15 Thread Al Viro
On Sat, Dec 15, 2012 at 08:12:37PM +, Al Viro wrote: > Walking rbtree while it's modified is a Bad Idea(tm); besides, > the result of find_vma() can be freed just as it's getting returned > to caller. Fortunately, it's easy to fix - just take ->mmap_sem a bit > earlier (and don't bother

[PATCH] omap_vout: find_vma() needs ->mmap_sem held

2012-12-15 Thread Al Viro
Walking rbtree while it's modified is a Bad Idea(tm); besides, the result of find_vma() can be freed just as it's getting returned to caller. Fortunately, it's easy to fix - just take ->mmap_sem a bit earlier (and don't bother with find_vma() at all if virtp >= PAGE_OFFSET - in that case w

Re: [PATCH 5/5] em28xx: fix+improve+unify i2c error handling, debug messages and code comments

2012-12-15 Thread Mauro Carvalho Chehab
Em Sat, 15 Dec 2012 17:25:55 +0100 Frank Schäfer escreveu: > Am 15.12.2012 14:46, schrieb Antti Palosaari: > > On 12/15/2012 03:01 PM, Frank Schäfer wrote: > >> Am 14.12.2012 18:03, schrieb Antti Palosaari: > >>> On 12/14/2012 06:28 PM, Frank Schäfer wrote: > - check i2c slave address range

Re: [PATCH 5/5] em28xx: fix+improve+unify i2c error handling, debug messages and code comments

2012-12-15 Thread Antti Palosaari
On 12/15/2012 06:25 PM, Frank Schäfer wrote: Am 15.12.2012 14:46, schrieb Antti Palosaari: On 12/15/2012 03:01 PM, Frank Schäfer wrote: Am 14.12.2012 18:03, schrieb Antti Palosaari: On 12/14/2012 06:28 PM, Frank Schäfer wrote: - check i2c slave address range (only 7 bit addresses supported) -

Re: em28xx: msi Digivox ATSC board id [0db0:8810]

2012-12-15 Thread Antti Palosaari
On 12/15/2012 06:21 PM, Frank Schäfer wrote: Am 15.12.2012 14:38, schrieb Antti Palosaari: On 12/15/2012 03:11 PM, Frank Schäfer wrote: Am 15.12.2012 02:54, schrieb Mauro Carvalho Chehab: Em Sat, 15 Dec 2012 02:56:25 +0200 Antti Palosaari escreveu: On 12/15/2012 02:26 AM, Mauro Carvalho Che

Re: [PATCH 5/5] em28xx: fix+improve+unify i2c error handling, debug messages and code comments

2012-12-15 Thread Frank Schäfer
Am 15.12.2012 14:46, schrieb Antti Palosaari: > On 12/15/2012 03:01 PM, Frank Schäfer wrote: >> Am 14.12.2012 18:03, schrieb Antti Palosaari: >>> On 12/14/2012 06:28 PM, Frank Schäfer wrote: - check i2c slave address range (only 7 bit addresses supported) - do not pass USB specific error

Re: em28xx: msi Digivox ATSC board id [0db0:8810]

2012-12-15 Thread Frank Schäfer
Am 15.12.2012 14:38, schrieb Antti Palosaari: > On 12/15/2012 03:11 PM, Frank Schäfer wrote: >> Am 15.12.2012 02:54, schrieb Mauro Carvalho Chehab: >>> Em Sat, 15 Dec 2012 02:56:25 +0200 >>> Antti Palosaari escreveu: >>> On 12/15/2012 02:26 AM, Mauro Carvalho Chehab wrote: > Em Fri, 14 De

Re: [PATCH 1/2] [media] em28xx: add support for NEC proto variants on em2874 and upper

2012-12-15 Thread Frank Schäfer
Am 15.12.2012 13:29, schrieb Mauro Carvalho Chehab: > By disabling the NEC parity check, it is possible to handle all 3 NEC > protocol variants (32, 24 or 16 bits). > > Change the driver in order to handle all of them. > > Unfortunately, em2860/em2863 provide only 16 bits for the IR scancode, > eve

Re: [PATCH 5/5] em28xx: fix+improve+unify i2c error handling, debug messages and code comments

2012-12-15 Thread Antti Palosaari
On 12/15/2012 03:01 PM, Frank Schäfer wrote: Am 14.12.2012 18:03, schrieb Antti Palosaari: On 12/14/2012 06:28 PM, Frank Schäfer wrote: - check i2c slave address range (only 7 bit addresses supported) - do not pass USB specific error codes to userspace/i2c-subsystem - unify the returned error c

Re: em28xx: msi Digivox ATSC board id [0db0:8810]

2012-12-15 Thread Antti Palosaari
On 12/15/2012 03:11 PM, Frank Schäfer wrote: Am 15.12.2012 02:54, schrieb Mauro Carvalho Chehab: Em Sat, 15 Dec 2012 02:56:25 +0200 Antti Palosaari escreveu: On 12/15/2012 02:26 AM, Mauro Carvalho Chehab wrote: Em Fri, 14 Dec 2012 17:39:50 -0200 Mauro Carvalho Chehab escreveu: Anyway, fir

Re: em28xx: msi Digivox ATSC board id [0db0:8810]

2012-12-15 Thread Mauro Carvalho Chehab
Em Sat, 15 Dec 2012 14:11:24 +0100 Frank Schäfer escreveu: > Sorry we completely lost the focus ! > Do you remeber the thread title ? ;) > > We have two separate issues here. > 1) Making Matthews hardware Didn't read the entire thread, but it seems that this were already solved. > / the sc

Re: em28xx: msi Digivox ATSC board id [0db0:8810]

2012-12-15 Thread Frank Schäfer
Am 15.12.2012 02:54, schrieb Mauro Carvalho Chehab: > Em Sat, 15 Dec 2012 02:56:25 +0200 > Antti Palosaari escreveu: > >> On 12/15/2012 02:26 AM, Mauro Carvalho Chehab wrote: >>> Em Fri, 14 Dec 2012 17:39:50 -0200 >>> Mauro Carvalho Chehab escreveu: >>> > Anyway, first we have to GET the byte

Re: [PATCH 5/5] em28xx: fix+improve+unify i2c error handling, debug messages and code comments

2012-12-15 Thread Frank Schäfer
Am 14.12.2012 18:03, schrieb Antti Palosaari: > On 12/14/2012 06:28 PM, Frank Schäfer wrote: >> - check i2c slave address range (only 7 bit addresses supported) >> - do not pass USB specific error codes to userspace/i2c-subsystem >> - unify the returned error codes and make them compliant with >>

Re: [PATCH 2/5] em28xx: respect the message size constraints for i2c transfers

2012-12-15 Thread Frank Schäfer
Am 14.12.2012 17:55, schrieb Antti Palosaari: > On 12/14/2012 06:28 PM, Frank Schäfer wrote: >> The em2800 can transfer up to 4 bytes per i2c message. >> All other em25xx/em27xx/28xx chips can transfer at least 64 bytes per >> message. >> >> I2C adapters should never split messages transferred via

[PATCH 2/2] [media] em28xx: add support for RC6 mode 0 on devices that support it

2012-12-15 Thread Mauro Carvalho Chehab
Newer em28xx chipsets (em2874 and upper) are capable of supporting RC6 codes, on both mode 0 (command mode, 16 bits payload size, similar to RC5, also called "Philips mode") and mode 6a (OEM command mode, with offers a few alternatives with regards to the payload size). I don't have any mode 6a co

[PATCH 1/2] [media] em28xx: add support for NEC proto variants on em2874 and upper

2012-12-15 Thread Mauro Carvalho Chehab
By disabling the NEC parity check, it is possible to handle all 3 NEC protocol variants (32, 24 or 16 bits). Change the driver in order to handle all of them. Unfortunately, em2860/em2863 provide only 16 bits for the IR scancode, even when NEC parity is disabled. So, this change should affect onl

[PATCH 0/2] Add more protocols to em28xx IR

2012-12-15 Thread Mauro Carvalho Chehab
This patch series add support for NEC protocol variants and to RC6 mode 0 on em2874 and newer devices. It was tested with a Terratec HTC device, and using 4 different remote control models: - RC5 Hauppauge Grey remote; - NEC Terratec remote; - NEC-like 24-bits protocol Pixe

Re: [PATCH] [media] ngene: fix dvb_pll_attach failure

2012-12-15 Thread Patrice Chotard
Le 15/12/2012 00:02, Antti Palosaari a écrit : > On 12/15/2012 12:31 AM, Patrice Chotard wrote: >> Le 14/12/2012 18:55, Antti Palosaari a écrit : >>> On 12/14/2012 07:28 PM, Patrice Chotard wrote: Before dvb_pll_attch call, be sure that drxd demodulator was initialized, otherwise, dvb_pll

[PATCH V3 11/15] [media] marvell-ccic: add soc_camera support in mcam core

2012-12-15 Thread Albert Wang
This patch adds the soc_camera support in mcam core. It creates the file mcam-core-soc.c and mcam-core-soc.h to support soc_camera in mcam core. To use the soc_camera feature, platform driver, such as mmp-driver.c, should also be modified. Signed-off-by: Libin Yang Signed-off-by: Albert Wang -

[PATCH V3 10/15] [media] marvell-ccic: split mcam-core into 2 parts for soc_camera support

2012-12-15 Thread Albert Wang
This patch splits mcam-core into 2 parts to prepare for soc_camera support. The first part remains in mcam-core.c. This part includes the HW operations and vb2 callback functions. The second part is moved to mcam-core-standard.c. This part is relevant with the implementation of using V4L2. Signe

[PATCH V3 06/15] [media] marvell-ccic: add new formats support for marvell-ccic driver

2012-12-15 Thread Albert Wang
From: Libin Yang This patch adds the new formats support for marvell-ccic. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/platform/marvell-ccic/mcam-core.c | 175 ++- drivers/media/platform/marvell-ccic/mcam-core.h |6 + 2 files changed, 149 in

[PATCH V3 14/15] [media] marvell-ccic: use unsigned int type replace int type

2012-12-15 Thread Albert Wang
This patch use unsigned int type replace int type in marvell-ccic. These variables: frame number, buf number, irq... should be unsigned. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- .../media/platform/marvell-ccic/mcam-core-soc.h|2 +- .../platform/marvell-ccic/mcam-core-st

[PATCH V3 15/15] [media] marvell-ccic: add 3 frame buffers support in DMA_CONTIG mode

2012-12-15 Thread Albert Wang
This patch adds support of 3 frame buffers in DMA-contiguous mode. In current DMA_CONTIG mode, only 2 frame buffers can be supported. Actually, Marvell CCIC can support at most 3 frame buffers. Currently 2 frame buffers mode will be used by default. To use 3 frame buffers mode, can do: define M

[PATCH V3 12/15] [media] marvell-ccic: add soc_camera support in mmp driver

2012-12-15 Thread Albert Wang
This patch adds the soc_camera support in the platform driver: mmp-driver.c. Specified board driver also should be modified to support soc_camera by passing some platform datas to platform driver. Currently the soc_camera mode in mmp driver only supports B_DMA_contig mode. Signed-off-by: Libin Ya

[PATCH V3 13/15] [media] marvell-ccic: add dma burst mode support in marvell-ccic driver

2012-12-15 Thread Albert Wang
This patch adds the dma burst size config support for marvell-ccic. Developer can set the dma burst size in specified board driver. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- .../media/platform/marvell-ccic/mcam-core-soc.c|2 +- drivers/media/platform/marvell-ccic/mcam-cor

[PATCH V3 04/15] [media] marvell-ccic: reset ccic phy when stop streaming for stability

2012-12-15 Thread Albert Wang
From: Libin Yang This patch adds the reset ccic phy operation when stop streaming. Without reset ccic phy, the next start streaming may be unstable. Also need add CCIC2 definition when PXA688/PXA2128 support dual ccics. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/

[PATCH V3 09/15] [media] marvell-ccic: add get_mcam function for marvell-ccic driver

2012-12-15 Thread Albert Wang
This patch adds get_mcam() inline function which is prepared for adding soc_camera support in marvell-ccic driver Signed-off-by: Libin Yang Signed-off-by: Albert Wang --- drivers/media/platform/marvell-ccic/mcam-core.c | 27 ++- drivers/media/platform/marvell-ccic/mcam-cor

[PATCH V3 07/15] [media] marvell-ccic: add SOF / EOF pair check for marvell-ccic driver

2012-12-15 Thread Albert Wang
From: Libin Yang This patch adds the SOFx/EOFx pair check for marvell-ccic. When switching format, the last EOF may not arrive when stop streamning. And the EOF will be detected in the next start streaming. Must ensure clear the obsolete frame flags before every really start streaming. Signed-

[PATCH V3 05/15] [media] marvell-ccic: refine mcam_set_contig_buffer function

2012-12-15 Thread Albert Wang
From: Libin Yang This patch refines mcam_set_contig_buffer() in mcam core Signed-off-by: Albert Wang Signed-off-by: Libin Yang Acked-by: Guennadi Liakhovetski --- drivers/media/platform/marvell-ccic/mcam-core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-)

[PATCH V3 08/15] [media] marvell-ccic: switch to resource managed allocation and request

2012-12-15 Thread Albert Wang
From: Libin Yang This patch switchs to resource managed allocation and request in mmp-driver. It can remove free resource operations. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/platform/marvell-ccic/mmp-driver.c | 56 -- 1 file changed, 20 ins

[PATCH V3 02/15] [media] marvell-ccic: add MIPI support for marvell-ccic driver

2012-12-15 Thread Albert Wang
From: Libin Yang This patch adds the MIPI support for marvell-ccic. Board driver should determine whether using MIPI or not. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/platform/marvell-ccic/mcam-core.c | 70 drivers/media/platform/marvell-cc

[PATCH V3 03/15] [media] marvell-ccic: add clock tree support for marvell-ccic driver

2012-12-15 Thread Albert Wang
From: Libin Yang This patch adds the clock tree support for marvell-ccic. Each board may require different clk enabling sequence. Developer need add the clk_name in correct sequence in board driver to use this feature. Signed-off-by: Libin Yang Signed-off-by: Albert Wang --- drivers/media/pl

[PATCH V3 00/15] [media] marvell-ccic: add soc camera support on marvell-ccic

2012-12-15 Thread Albert Wang
The following patches series will add soc_camera support on marvell-ccic Patch set V3 - Change log: - correct and enhance the implementation of some functions - replace most of preprocessor instruction with runtime detect - use devm_clk_get and devm_gpio_request which were

[PATCH V3 01/15] [media] marvell-ccic: use internal variable replace global frame stats variable

2012-12-15 Thread Albert Wang
From: Libin Yang This patch replaces the global frame stats variables by using internal variables in mcam_camera structure. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/platform/marvell-ccic/mcam-core.c | 30 ++- drivers/media/platform/marvell-c