Re: [PATCH v2 0/14] Initial i.MX5/CODA7 support for the CODA driver

2012-08-28 Thread Richard Zhao
On Tue, Aug 28, 2012 at 12:53:47PM +0200, Philipp Zabel wrote: > These patches contain initial firmware loading and encoding support for the > CODA7 series VPU contained in i.MX51 and i.MX53 SoCs, and fix some > multi-instance > issues. The last two patches touching files in arch/arm/* are include

RE: [PATCH v5 1/4] [media] s5p-mfc: Update MFCv5 driver for callback based architecture

2012-08-28 Thread Kamil Debski
Hi Arun, Please find my comments inline. Best wishes, -- Kamil Debski Linux Platform Group Samsung Poland R&D Center > From: Arun Kumar K [mailto:arun...@samsung.com] > Sent: 27 August 2012 04:58 [...] > diff --git a/drivers/media/video/s5p-mfc/s5p_mfc.c b/drivers/media/video/s5p- > mfc/s5p_m

RE: [PATCH v5 2/4] [media] s5p-mfc: Add MFC variant data to device context

2012-08-28 Thread Kamil Debski
Hi Arun, Please find my comments below. Best wishes, -- Kamil Debski Linux Platform Group Samsung Poland R&D Center > From: Arun Kumar K [mailto:arun...@samsung.com] > Sent: 27 August 2012 04:58 [...] > diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_common.h > b/drivers/media/video/s5p-mfc/

Re: [PATCH, RFC] Fix DVB ioctls failing if frontend open/closed too fast

2012-08-28 Thread Hans Petter Selasky
On Sunday 12 August 2012 05:06:49 Devin Heitmueller wrote: > On Sat, Aug 11, 2012 at 10:15 PM, Mauro Carvalho Chehab > > wrote: > > Devin/Antti, > > > > As Juergen mentioned your help on this patch, do you mind helping > > reviewing and testing it? > > I guided Juergen through the creation of t

Re: [PATCH v2] [media] rc: ite-cir: Initialise ite_dev::rdev earlier

2012-08-28 Thread Luis Henriques
On Tue, Aug 28, 2012 at 10:09:55AM -0700, Ben Hutchings wrote: > On Tue, 2012-08-28 at 12:44 +0100, Luis Henriques wrote: > > On Mon, Aug 20, 2012 at 12:32:27AM +0100, Ben Hutchings wrote: > > > ite_dev::rdev is currently initialised in ite_probe() after > > > rc_register_device() returns. If a ne

cron job: media_tree daily build: WARNINGS

2012-08-28 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 Aug 28 19:00:18 CEST 2012 git hash:79e8c7bebb467bbc3f2514d75bba669a3f354324 gcc version: i686-linux-gcc (GC

Re: [PATCH 9/9] videobuf2-core: Change vb2_queue_init return type to void

2012-08-28 Thread Ezequiel Garcia
Hi Jon, Thanks for your answers, I really appreciate it. On Tue, Aug 28, 2012 at 1:55 PM, Jonathan Corbet wrote: > On Sun, 26 Aug 2012 19:59:40 -0300 > Ezequiel Garcia wrote: > >> 1. >> Why do we need to check for all these conditions in the first place? >> There are many other functions relyin

[PATCH] [media] ttusbir: support suspend and resume

2012-08-28 Thread Sean Young
The led is green, not yellow. Signed-off-by: Sean Young --- drivers/media/rc/ttusbir.c | 48 ++ 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c index 2151927..f0921b5 100644 --- a/d

Re: [PATCH v2] [media] rc: ite-cir: Initialise ite_dev::rdev earlier

2012-08-28 Thread Ben Hutchings
On Tue, 2012-08-28 at 12:44 +0100, Luis Henriques wrote: > On Mon, Aug 20, 2012 at 12:32:27AM +0100, Ben Hutchings wrote: > > ite_dev::rdev is currently initialised in ite_probe() after > > rc_register_device() returns. If a newly registered device is opened > > quickly enough, we may enable inter

Re: [PATCH 9/9] videobuf2-core: Change vb2_queue_init return type to void

2012-08-28 Thread Jonathan Corbet
On Sun, 26 Aug 2012 19:59:40 -0300 Ezequiel Garcia wrote: > 1. > Why do we need to check for all these conditions in the first place? > There are many other functions relying on "struct vb2_queue *q" > not being null (almost all of them) and we don't check for it. > What makes vb2_queue_init() so

TerraTec Cinergy T PCIe Dual bug

2012-08-28 Thread Javier Marcet
Hi, I have recently bought a TerraTec Cinergy T PCIe Dual for an HTPC. It didn't work at first, with kernel 3.4 which already supported it. After checking everything I find out that I have to manually change the frontend of the second tuner to DVB-T and also tune some channel with tzap before be

[TM6000] Request video grabber support for geniatech satbox

2012-08-28 Thread Olcay Korkmaz
Hi All I have geniatech satbox it's tm6000 device with dvbs and Analogue CVBS A/V grabber I know tm6000 module doesn't support dvb-s but can i use satbox for video grabber if I load tm6000 module it's recognized to generic and loaded with XC2028 firmware satbox doesn't have xc2028 tuner it comes w

Re: [PATCH 1/3] mt9v022: add v4l2 controls for blanking and other register settings

2012-08-28 Thread Anatolij Gustschin
Hi Guennadi, On Fri, 24 Aug 2012 23:23:37 +0200 (CEST) Guennadi Liakhovetski wrote: ... > > Every time the sensor is reset, it resets this register. Without setting > > the register after sensor reset to the needed value I only get garbage data > > from the sensor. Since the possibility to reset

Re: [PATCH] v2 Add support to Avermedia Twinstar double tuner in af9035

2012-08-28 Thread Jose Alberto Reguero
On Martes, 28 de agosto de 2012 04:19:07 Antti Palosaari escribió: > Hello > this is not final review, as there was more things to check I was first > thinking. I have to look it tomorrow too. But few comments still. > > On 08/27/2012 01:25 AM, Jose Alberto Reguero wrote: > > This patch add suppor

Re: [PATCH v2] [media] rc: ite-cir: Initialise ite_dev::rdev earlier

2012-08-28 Thread Luis Henriques
On Mon, Aug 20, 2012 at 12:32:27AM +0100, Ben Hutchings wrote: > ite_dev::rdev is currently initialised in ite_probe() after > rc_register_device() returns. If a newly registered device is opened > quickly enough, we may enable interrupts and try to use ite_dev::rdev > before it has been initialis

[PATCH v2 05/14] media: coda: ignore coda busy status in coda_job_ready

2012-08-28 Thread Philipp Zabel
job_ready is supposed to signal whether a context is ready to be added to the job queue, not whether the CODA is ready to run it immediately. Calling v4l2_m2m_job_finish at the end of coda_irq_handler already guarantees that the coda is ready when v4l2-mem2mem eventually tries to run the next queue

[PATCH v2 02/14] media: coda: add i.MX53 / CODA7541 platform support

2012-08-28 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- Changes since v1: - Removed JPEG from the coda7_formats. --- drivers/media/video/coda.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/media/video/coda.c b/drivers/media/video/coda.c index 86dae17..6ae5f0f 100644 --

[PATCH v2 04/14] media: coda: allocate internal framebuffers separately from v4l2 buffers

2012-08-28 Thread Philipp Zabel
Some codecs running on CODA need internal framebuffers for reference and reconstructed frames. Allocate them separately, and do not use the input vb2_buffers: those will be handed off to userspace regularly, and there is no way to signal to the CODA which of the registered framebuffers are off limi

[PATCH v2 06/14] media: coda: keep track of active instances

2012-08-28 Thread Philipp Zabel
Determining the next free instance just by incrementing and decrementing an instance counter does not work: if there are two instances opened, 0 and 1, and instance 0 is released, the next call to coda_open will create a new instance with index 1, but instance 1 is already in use. Instead, scan a

[PATCH v2 10/14] media: coda: fix sizeimage setting in try_fmt

2012-08-28 Thread Philipp Zabel
VIDIOC_TRY_FMT would incorrectly return bytesperline * height, instead of width * height * 3 / 2. Signed-off-by: Philipp Zabel --- drivers/media/video/coda.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/media/video/coda.c b/drivers/media/video/coda.c i

[PATCH v2 08/14] media: coda: enable user pointer support

2012-08-28 Thread Philipp Zabel
USERPTR buffer support is provided by the videobuf2 framework. Signed-off-by: Philipp Zabel --- drivers/media/video/coda.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/coda.c b/drivers/media/video/coda.c index a67a52a..3d47935 100644 --- a/driver

[PATCH v2 07/14] media: coda: stop all queues in case of lockup

2012-08-28 Thread Philipp Zabel
Add a 1 second timeout for each PIC_RUN command to the CODA. In case it locks up, stop all queues and dequeue remaining buffers. Signed-off-by: Philipp Zabel --- drivers/media/video/coda.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/media/video/coda.c b/d

[PATCH v2 14/14] ARM i.MX5: Add CODA7 to device tree for i.MX51 and i.MX53

2012-08-28 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- arch/arm/boot/dts/imx51.dtsi |6 ++ arch/arm/boot/dts/imx53.dtsi |6 ++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi index aba28dc..8f38d83 100644 --- a/arch/arm/boot/dts/imx51.dtsi +++

[PATCH v2 09/14] media: coda: wait for picture run completion in start/stop_streaming

2012-08-28 Thread Philipp Zabel
While the CODA is running a PIC_RUN command, its registers are not to be touched. Signed-off-by: Philipp Zabel --- drivers/media/video/coda.c | 34 +++--- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/drivers/media/video/coda.c b/drivers/media/video

[PATCH v2 01/14] media: coda: firmware loading for 64-bit AXI bus width

2012-08-28 Thread Philipp Zabel
Add support for loading a raw firmware with 16-bit chars ordered in little-endian 64-bit words, corresponding to the memory access pattern of CODA7 and above: When writing the boot code into the code download register, the chars have to be reordered back. Signed-off-by: Philipp Zabel --- drivers

[PATCH v2 11/14] media: coda: add horizontal / vertical flipping support

2012-08-28 Thread Philipp Zabel
The hardware can also rotate in 90° steps, but there is no corresponding V4L2_CID defined yet. Signed-off-by: Philipp Zabel --- drivers/media/video/coda.c | 19 ++- drivers/media/video/coda.h |9 + 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v2 12/14] media: coda: add byte size slice limit control

2012-08-28 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- drivers/media/video/coda.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/media/video/coda.c b/drivers/media/video/coda.c index 3123260..db11219 100644 --- a/drivers/media/video/coda.c +++ b/drivers/med

[PATCH v2 13/14] ARM i.MX5: Fix CODA7 clock lookup for device tree on i.MX51 and i.MX53

2012-08-28 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- arch/arm/mach-imx/clk-imx51-imx53.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53.c index 4bdcaa9..64f9ceb 100644 --- a/arch/arm/mach-imx/clk-imx51-imx53.c +++ b/

[PATCH v2 03/14] media: coda: fix IRAM/AXI handling for i.MX53

2012-08-28 Thread Philipp Zabel
This uses the ARCH_MXC specific iram_alloc API to allocate a work buffer in the SoC's on-chip SRAM and sets up the AXI_SRAM_USE register. In the future, the allocation will be converted to use the genalloc API. Signed-off-by: Philipp Zabel --- Changes since v1: - Use iram_alloc/iram_free instead

[PATCH v2 0/14] Initial i.MX5/CODA7 support for the CODA driver

2012-08-28 Thread Philipp Zabel
These patches contain initial firmware loading and encoding support for the CODA7 series VPU contained in i.MX51 and i.MX53 SoCs, and fix some multi-instance issues. The last two patches touching files in arch/arm/* are included for illustration purposes. Changes since v1: - Use iram_alloc/iram_

Re: [PATCH 0/12] Initial i.MX5/CODA7 support for the CODA driver

2012-08-28 Thread javier Martin
You have to apply the following operation to the binary fw file provided by Freescale. We agreed with Fabio that they were going to submit that file with the modification below to the linux-firmware repository soon. #include #include #include #include "vpu_codetable_mx27.h" int main() { FILE

Re: [PATCH] media: mx2_camera: Remove MX2_CAMERA_SWAP16 and MX2_CAMERA_PACK_DIR_MSB flags.

2012-08-28 Thread Sascha Hauer
On Mon, Aug 20, 2012 at 10:08:39AM +0200, javier Martin wrote: > Hi, > > On 30 July 2012 17:33, Guennadi Liakhovetski wrote: > > Hi Javier > > > > On Mon, 30 Jul 2012, javier Martin wrote: > > > >> Hi, > >> thank you for yor ACKs. > >> > >> On 20 July 2012 13:31, Guennadi Liakhovetski wrote: > >

Re: [PATCH 04/12] media: coda: allocate internal framebuffers separately from v4l2 buffers

2012-08-28 Thread javier Martin
On 28 August 2012 10:40, Philipp Zabel wrote: > Hi Javier, > > Am Dienstag, den 28.08.2012, 09:50 +0200 schrieb javier Martin: >> Hi Phillip, >> I see you are trying a cleaner approach for reference and reconstructed >> frames. >> > -#define CODA_OUTPUT_BUFS 4 >> > -#define CODA_CAPTURE_BUF

Re: [PATCH 03/12] coda: fix IRAM/AXI handling for i.MX53

2012-08-28 Thread javier Martin
On 28 August 2012 10:24, Philipp Zabel wrote: > Hi Javier, > > thank you for the comments, > > Am Montag, den 27.08.2012, 10:59 +0200 schrieb javier Martin: >> Hi Philipp, >> thank you for your patch. Please, find some comments below. >> >> On 24 August 2012 18:17, Philipp Zabel wrote: > [...] >>

Re: [PATCH 04/12] media: coda: allocate internal framebuffers separately from v4l2 buffers

2012-08-28 Thread Philipp Zabel
Hi Javier, Am Dienstag, den 28.08.2012, 09:50 +0200 schrieb javier Martin: > Hi Phillip, > I see you are trying a cleaner approach for reference and reconstructed > frames. > > -#define CODA_OUTPUT_BUFS 4 > > -#define CODA_CAPTURE_BUFS 2 > > +#define CODA_MAX_FRAMEBUFFERS 2 > > Accor

Re: [PATCH 03/12] coda: fix IRAM/AXI handling for i.MX53

2012-08-28 Thread Philipp Zabel
Hi Javier, thank you for the comments, Am Montag, den 27.08.2012, 10:59 +0200 schrieb javier Martin: > Hi Philipp, > thank you for your patch. Please, find some comments below. > > On 24 August 2012 18:17, Philipp Zabel wrote: [...] > > @@ -1854,6 +1886,25 @@ static int __devinit coda_probe(str

Re: [PATCH 0/12] Initial i.MX5/CODA7 support for the CODA driver

2012-08-28 Thread javier Martin
Hi Philipp, in order to give you my ACK I need that patch 3 gets fixed and patches 3-10 are resent so that they can apply cleanly. After that, we'll make some intensive testing for a week in i.MX27, if everything works as expected I'll ACK the patches. Regards. On 24 August 2012 18:17, Philipp Za

Re: [PATCH 04/12] media: coda: allocate internal framebuffers separately from v4l2 buffers

2012-08-28 Thread javier Martin
On 28 August 2012 09:50, javier Martin wrote: > Hi Phillip, > I see you are trying a cleaner approach for reference and reconstructed > frames. > > On 24 August 2012 18:17, Philipp Zabel wrote: >> Some codecs running on CODA need internal framebuffers for reference and >> reconstructed frames. A

Re: [PATCH 04/12] media: coda: allocate internal framebuffers separately from v4l2 buffers

2012-08-28 Thread javier Martin
Hi Phillip, I see you are trying a cleaner approach for reference and reconstructed frames. On 24 August 2012 18:17, Philipp Zabel wrote: > Some codecs running on CODA need internal framebuffers for reference and > reconstructed frames. Allocate them separately, and do not use the input > vb2_buf