[linuxtv-media:master 360/499] undefined reference to `fb_dealloc_cmap'

2014-09-08 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git master head: 91f96e8b7255537da3a58805cf465003521d7c5f commit: e75420dd25bc9d7b6f4e3b4c4f6c778b610c8cda [360/499] [media] vivid: enable the vivid driver config: i386-randconfig-c1-09090935 (attached as .config) All error/warnings: drivers/built-in.o:

cron job: media_tree daily build: ERRORS

2014-09-08 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 Sep 9 04:00:24 CEST 2014 git branch: test git hash: 91f96e8b7255537da3a58805cf465003521d7c5f gcc versi

[PATCH] [media] mceusb: fix usbdev leak

2014-09-08 Thread Alexey Khoroshilov
mceusb_init_rc_dev() does usb_get_dev(), but there is no any usb_put_dev() in the driver. The patch tries to straighten logic. It moves usb_get_dev() directly to mceusb_dev_probe() and adds usb_put_dev() to an error path and to mceusb_dev_disconnect(). Found by Linux Driver Verification project (

RE:

2014-09-08 Thread Deborah Mayher
From: Deborah Mayher Sent: Monday, September 08, 2014 10:13 AM To: Deborah Mayher Subject: IT_Helpdesk is currently migrating from old outlook to the new Outlook Web access 2014 to strengthen our security. You need to update your account immediately for ac

Re: [PATCH v4 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner

2014-09-08 Thread Antti Palosaari
Moikka It looks technically correct for my eyes, no any big issue. Driver itself is quite stub as most of the chip logic is put inside bridge firmware, though. regards Antti On 09/08/2014 08:20 PM, tsk...@gmail.com wrote: From: Akihiro Tsukada This patch adds driver for mxl301rf OFDM tune

[PATCH v4 4/4] pt3: add support for Earthsoft PT3 ISDB-S/T receiver card

2014-09-08 Thread tskd08
From: Akihiro Tsukada This patch adds support for PT3 PCIe cards. PT3 has an FPGA PCIe bridge chip, a TC90522 demod chip and a VA4M6JC2103 tuner module which contains two QM1D1C0042 chips for ISDB-S and two MxL301RF's for ISDB-T. It can receive and deliver 4 (2x ISDB-S, 2x ISDB-T) streams simulta

[PATCH v4 2/4] qm1d1c0042: add driver for Sharp QM1D1C0042 ISDB-S tuner

2014-09-08 Thread tskd08
From: Akihiro Tsukada This patch adds driver for qm1d1c0042 tuner chips. It is used as an ISDB-S tuner in earthsoft pt3 cards. Signed-off-by: Akihiro Tsukada --- Changes in v4: - removed unnecessary .get_status() - removed initial frequency setting and moved to the bridge driver - added a comme

[PATCH v4 3/4] tc90522: add driver for Toshiba TC90522 quad demodulator

2014-09-08 Thread tskd08
From: Akihiro Tsukada This patch adds driver for tc90522 demodulator chips. The chip contains 4 demod modules that run in parallel and are independently controllable via separate I2C addresses. Two of the modules are for ISDB-T and the rest for ISDB-S. It is used in earthsoft pt3 cards. Note tha

[PATCH v4 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner

2014-09-08 Thread tskd08
From: Akihiro Tsukada This patch adds driver for mxl301rf OFDM tuner chips. It is used as an ISDB-T tuner in earthsoft pt3 cards. Note that this driver does not initilize the chip, because the initilization sequence / register setting is not disclosed. Thus, the driver assumes that the chips are

[PATCH v4 0/4] dvb: Add support for PT3 ISDB-S/T card

2014-09-08 Thread tskd08
From: Akihiro Tsukada This patch series adds support for "PT3" ISDB-S/T receiver cards. It contains a PCI bridge driver, a dvb-frontend driver and two tuner drivers. I know "Bud R" had already posted ones to this mailing list, (as in 1400629035-32487-1-git-send-email-knightri...@are.ma ), but it

Re: [PATCH v2] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 09:55:58AM -0500, Morgan Phillips wrote: > Change array initialization format to fix style error. > from: > u8 foo[] = > {1, 2, 3}; > to: checkpatch is giving a warning here , but looks like a false positive. thanks sudip >

[PATCH v2] [media]: sn9c20x: centralize repeated error/info messages with macros

2014-09-08 Thread Morgan Phillips
Create inline functions to print info/error messages: "sensor detected" and "sensor initialization failed" which are used identically in many places. This makes it easier to change the message formats en masse and frees up some memory by centralizing repeated strings. Signed-off-by: Morgan Philli

[PATCH v2] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Morgan Phillips
Change array initialization format to fix style error. from: u8 foo[] = {1, 2, 3}; to: u8 foo[] = { 1, 2, 3 }; Signed-off-by: Morgan Phillips --- Changes since v2: * adds a more ver

Re: [RFC PATCH 00/12] vb2: improve dma-sg, expbuf.

2014-09-08 Thread Hans Verkuil
On 09/08/2014 04:14 PM, Hans Verkuil wrote: > The patch series adds an allocation context to dma-sg and uses that to move > dma_(un)map_sg into the vb2 framework, which is where it belongs. > > Related to that is the addition of buf_prepare/finish _for_cpu variants, > where the _for_cpu ops are ca

unsbuscribe

2014-09-08 Thread Rodrigo Severo
unsbuscribe -- 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/majordomo-info.html

Re: [PATCH] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 08:51:18AM -0500, Morgan Reece wrote: > Hi Sudip, > > I searched through the logs for examples of messages where people had just > fixed checkpatch errors. I found lots like this, so went the format, ex: > > commit 588a12d789e1a9b8193465c09f32024c0d43a849 > Author: Filipe

[RFC PATCH 02/12] vb2-dma-sg: add allocation context to dma-sg

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Require that dma-sg also uses an allocation context. This is in preparation for adding prepare/finish memops to sync the memory between DMA and CPU. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-core.c| 18 +++--- drivers/media/pci/saa7134/saa

[RFC PATCH 03/12] vb2-dma-sg: add prepare/finish memops

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Now that vb2-dma-sg will sync the buffers for you in the prepare/finish memops we can drop that from the drivers that use dma-sg. For the solo6x10 driver that was a bit more involved because it needs to copy JPEG or MPEG headers to the buffer before returning it to userspace,

[RFC PATCH 12/12] vivid: enable vb2_expbuf support.

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Now that vb2 supports DMABUF export for dma-sg and vmalloc memory modes, we can enable the vb2_expbuf support in vivid. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

[RFC PATCH 04/12] vb2: memop prepare: return errors

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil For vb2-dma-sg the dma_map_sg function can return an error. This means that the prepare memop also needs to change so an error can be returned. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 5 +++-- drivers/media/v4l2-core/videobuf2-dma-sg.

[RFC PATCH 06/12] vb2-dma-sg: add dmabuf import support

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Add support for dmabuf to vb2-dma-sg. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 125 +++-- 1 file changed, 118 insertions(+), 7 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v

[RFC PATCH 05/12] vb2: call memop prepare before the buf_prepare op is called

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil The prepare memop now returns an error, so we need to be able to handle that. In addition, prepare has to be called before buf_prepare since in the dma-sg case buf_prepare expects that the dma memory is mapped and it can use the sg_table. So call the prepare memop before calli

[RFC PATCH 09/12] vb2: replace 'write' by 'dma_dir'

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil The 'write' argument is very ambiguous. I first assumed that if it is 1, then we're doing video output but instead it meant the reverse. Since it is used to setup the dma_dir value anyway it is now replaced by the correct dma_dir value which is unambiguous. Signed-off-by: Han

[RFC PATCH 11/12] saa7134: don't rebuild the page table unless new_cookies is set.

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Only if new_cookies is set do you need to build the page table, otherwise it will be unchanged. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-ts.c| 2 ++ drivers/media/pci/saa7134/saa7134-vbi.c | 2 ++ drivers/media/pci/saa7134/saa7134-video.c | 2 +

[RFC PATCH 07/12] vb2-dma-sg: add get_dmabuf

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Add DMABUF export support to vb2-dma-sg. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 170 + 1 file changed, 170 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-core/vide

[RFC PATCH 08/12] vb2-vmalloc: add get_dmabuf support

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil Add support for DMABUF exporting to the vb2-vmalloc implementation. All memory models now have support for both importing and exporting of DMABUFs. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-vmalloc.c | 174 1 file changed

[RFC PATCH 01/12] vb2: introduce buf_prepare/finish_for_cpu

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil This splits the buf_prepare and buf_finish actions into two: one called while the cpu can still access the buffer contents, and one where the memory has been prepared for DMA and the cpu no longer can access it. With this change the old buf_finish is really buf_finish_for_cpu

[RFC PATCH 10/12] vb2: add 'new_cookies' flag

2014-09-08 Thread Hans Verkuil
From: Hans Verkuil This flag helps drivers that need to reprogram their DMA engine whenever a plane cookie (== DMA address or DMA scatter-gather list) changes. Otherwise they would have to reprogram the DMA engine for every frame. Note that it is not possible to do this in buf_init() since dma_

[RFC PATCH 00/12] vb2: improve dma-sg, expbuf.

2014-09-08 Thread Hans Verkuil
The patch series adds an allocation context to dma-sg and uses that to move dma_(un)map_sg into the vb2 framework, which is where it belongs. Related to that is the addition of buf_prepare/finish _for_cpu variants, where the _for_cpu ops are called when the buffer is synced for the cpu, and the ot

Re: [PATCH v3 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner

2014-09-08 Thread Antti Palosaari
On 09/08/2014 04:18 PM, Akihiro TSUKADA wrote: Moi!, thanks for the review. +static int reg_read(struct mxl301rf_state *state, u8 reg, u8 *val) ... +ret = i2c_transfer(state->i2c->adapter, msgs, ARRAY_SIZE(msgs)); +if (ret >= 0 && ret < ARRAY_SIZE(msgs)) +ret = -EIO; +

Re: [PATCH] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 07:32:22AM -0500, Morgan Phillips wrote: > Signed-off-by: Morgan Phillips no commit message ? thanks sudip > --- > drivers/media/usb/gspca/sn9c20x.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/media/usb/gspca/sn9c20x.c >

[PATCH] [media]: sn9c20x: centralize repeated error/info messages with macros

2014-09-08 Thread Morgan Phillips
Create inline functions to print info/error messages: "sensor detected" and "sensor initialization failed" which are used identically in many places. This makes it easier to change the message formats en masse and frees up some memory by centralizing repeated strings. Signed-off-by: Morgan Phi

Re: [PATCH v3 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner

2014-09-08 Thread Akihiro TSUKADA
Moi!, thanks for the review. >> +static int reg_read(struct mxl301rf_state *state, u8 reg, u8 *val) ... >> +ret = i2c_transfer(state->i2c->adapter, msgs, ARRAY_SIZE(msgs)); >> +if (ret >= 0 && ret < ARRAY_SIZE(msgs)) >> +ret = -EIO; >> +return (ret == ARRAY_SIZE(msgs)) ? 0

[PATCH] [media]: sn9c20x: fix checkpatch warning: sizeof cmatrix should be sizeof(cmatrix)

2014-09-08 Thread Morgan Phillips
Signed-off-by: Morgan Phillips --- drivers/media/usb/gspca/sn9c20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/gspca/sn9c20x.c b/drivers/media/usb/gspca/sn9c20x.c index 41a9a89..dd120d4 100644 --- a/drivers/media/usb/gspca/sn9c20x.c +++ b/drivers/media

Re: [patch] [media] firewire: firedtv-avc: potential buffer overflow

2014-09-08 Thread Stefan Richter
On Sep 08 Stefan Richter wrote: > On Sep 08 Dan Carpenter wrote: > > "program_info_length" is user controlled and can go up to 4095. The > > operand[] array has 509 bytes so we need to add a limit here to prevent > > buffer overflows. > > > > Signed-off-by: Dan Carpenter > > Reviewed-by: Stefan

[PATCH] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Morgan Phillips
Signed-off-by: Morgan Phillips --- drivers/media/usb/gspca/sn9c20x.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/gspca/sn9c20x.c b/drivers/media/usb/gspca/sn9c20x.c index 41a9a89..95467f0 100644 --- a/drivers/media/usb/gspca/sn9c20x.c +++ b/dr

Re: [patch] [media] firewire: firedtv-avc: potential buffer overflow

2014-09-08 Thread Stefan Richter
On Sep 08 Dan Carpenter wrote: > "program_info_length" is user controlled and can go up to 4095. The > operand[] array has 509 bytes so we need to add a limit here to prevent > buffer overflows. > > Signed-off-by: Dan Carpenter Reviewed-by: Stefan Richter Thank you. > > diff --git a/drivers

Re: Corrupt images, when capturing images from multiple cameras using the V4L2 driver

2014-09-08 Thread Alaganraj
Hi Karel, On Friday 05 September 2014 06:09 PM, Mácha, Karel wrote: > Hello Alaganraj, > > thank you very much for your reply and your tips. I tried to improve my > code as you suggested and also implemented several other things, which > should improve the result. > > I set the cameras to 15fps usi

Re: [PATCH] [media] sn9c20x: refactor initialization functions and fix lint warnings/errors

2014-09-08 Thread Hans de Goede
Hi, On 09/08/2014 04:25 AM, Morgan Phillips wrote: > Centralize redundant print messages and references to sensor names via macros. > > Change msleep time from 10ms to 20ms in order to address checkpatch.pl > warning: > "msleep < 20ms can sleep for up to 20ms." > > Refactor redundant sensor ini

[patch] [media] firewire: firedtv-avc: potential buffer overflow

2014-09-08 Thread Dan Carpenter
"program_info_length" is user controlled and can go up to 4095. The operand[] array has 509 bytes so we need to add a limit here to prevent buffer overflows. Signed-off-by: Dan Carpenter diff --git a/drivers/media/firewire/firedtv-avc.c b/drivers/media/firewire/firedtv-avc.c index d1a1a13..ac1

[GIT PULL FOR v3.17] Two fixes for 3.17

2014-09-08 Thread Hans Verkuil
One missing header, one incorrect condition. The second one is CC-ed to stable for kernels 3.7 and up. Regards, Hans The following changes since commit 89fffac802c18caebdf4e91c0785b522c9f6399a: [media] drxk_hard: fix bad alignments (2014-09-03 19:19:18 -0300) are available in the git

[GIT PULL FOR v3.18] Various fixes

2014-09-08 Thread Hans Verkuil
Various fixes for 3.18. Regards, Hans The following changes since commit 89fffac802c18caebdf4e91c0785b522c9f6399a: [media] drxk_hard: fix bad alignments (2014-09-03 19:19:18 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v3.18b for yo

Re: [PATCH] drivers: media: radio: radio-miropcm20.c: include missing header file

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 10:07:45AM +0200, Hans Verkuil wrote: > On 09/06/2014 01:24 PM, Sudip Mukherjee wrote: > > On Fri, Aug 29, 2014 at 01:38:01PM +0530, Sudip Mukherjee wrote: > >> with -Werror=implicit-function-declaration build failed with error : > >> error: implicit declaration of function

Re: [PATCH] drivers: media: radio: radio-miropcm20.c: include missing header file

2014-09-08 Thread Hans Verkuil
On 09/06/2014 01:24 PM, Sudip Mukherjee wrote: > On Fri, Aug 29, 2014 at 01:38:01PM +0530, Sudip Mukherjee wrote: >> with -Werror=implicit-function-declaration build failed with error : >> error: implicit declaration of function 'inb' >> error: implicit declaration of function 'outb' >> >> Reported

Re: [PATCH 3/5] media: videobuf2-core.h: add a helper to get status of start_streaming()

2014-09-08 Thread Hans Verkuil
On 09/06/2014 05:26 PM, Lad, Prabhakar wrote: > this patch adds a helper to get the status if start_streaming() > was called successfully. Nice! I've had the same idea for quite some time now, but for some reason I never got around to actually adding it. Hans > > Signed-off-by: Lad, Pra

Re: [PATCH v3 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner

2014-09-08 Thread Antti Palosaari
On 09/07/2014 03:41 PM, tsk...@gmail.com wrote: From: Akihiro Tsukada This patch adds driver for mxl301rf OFDM tuner chips. It is used as an ISDB-T tuner in earthsoft pt3 cards. Note that this driver does not initilize the chip, because the initilization sequence / register setting is not di