[PATCH] [media] saa6752hs: Convert to devm_kzalloc()

2014-08-10 Thread Axel Lin
Using the managed function the kfree() calls can be removed from the probe error path and the remove handler. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/saa6752hs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa6752hs.c

[PATCH] [media] mt9v032: Remove duplicate test for I2C_FUNC_SMBUS_WORD_DATA functionality

2014-08-10 Thread Axel Lin
Since commit b42261078a91 (regmap: i2c: fallback to SMBus if the adapter does not support standard I2C), regmap-i2c will check the I2C_FUNC_SMBUS_[BYTE|WORD]_DATA functionality based on the regmap_config setting if the adapter does not support standard I2C. So remove the I2C_FUNC_SMBUS_WORD_DATA

Re: [PATCH] [media] saa6752hs: Convert to devm_kzalloc()

2014-08-10 Thread Prabhakar Lad
On Sun, Aug 10, 2014 at 10:41 AM, Axel Lin axel@ingics.com wrote: Using the managed function the kfree() calls can be removed from the probe error path and the remove handler. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Lad, Prabhakar prabhakar.cse...@gmail.com Thanks,

[PATCH 2/2] MAINTAINERS: add tw68 entry

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4cdf24c..2b06a8e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,14 @@ T: git

[PATCH 0/2] Add driver for tw68xx PCI grabber boards

2014-08-10 Thread Hans Verkuil
Add support for the tw68 driver. The driver has been out-of-tree for many years on gitorious: https://gitorious.org/tw68/tw68-v2 I have refactored and ported that driver to the latest V4L2 core frameworks. Tested with my Techwell tw6805a and tw6816 grabber boards. Note that there is no audio

[PATCH 1/2] tw68: add support for Techwell tw68xx PCI grabber boards

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for the tw68 driver. The driver has been out-of-tree for many years on gitorious: https://gitorious.org/tw68/tw68-v2 I have refactored and ported that driver to the latest V4L2 core frameworks. Tested with my Techwell tw6805a and tw6816

[PATCH 01/19] cx23885: fix querycap

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Set device_caps to fix the v4l2-compliance QUERYCAP complaints. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git

[PATCH 00/19] cx23885: convert to the V4L2 core frameworks

2014-08-10 Thread Hans Verkuil
This patch series converts the cx23885 driver to the latest V4L2 core frameworks, removing about 1000 lines in the process. It now passes the v4l2-compliance tests and, frankly, feels much more robust. I have tested this with my HVR-1800 board with video (compressed and uncompressed), vbi, dvb

[PATCH 04/19] cx23885: use core locking, switch to unlocked_ioctl.

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Enable core locking which allows us to safely switch to unlocked_ioctl. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 5 ++-- drivers/media/pci/cx23885/cx23885-video.c | 43

[PATCH 02/19] cx23885: fix audio input handling

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Fix a bunch of v4l2-compliance errors relating to audio input handling. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 31 --- 1 file changed, 20 insertions(+), 11

[PATCH 15/19] cx23885: convert to vb2

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com As usual, this patch is very large due to the fact that half a vb2 conversion isn't possible. And since this affects 417, alsa, core, dvb, vbi and video the changes are all over. What made this more difficult was the peculiar way the risc program was

[PATCH 07/19] cx23885: fix format colorspace compliance error

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Fix v4l2-compliance failure relating to formatting. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-video.c

[PATCH 08/19] cx23885: map invalid fields to a valid field.

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c

[PATCH 11/19] cx23885: drop unused clip fields from struct cx23885_fh

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com There is no overlay support, so drop these unused fields. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/media/pci/cx23885/cx23885.h

[PATCH 05/19] cx23885: convert to the control framework

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is part 1, converting the uncompressed video/vbi nodes to use the control framework. The next patch converts the compressed video node as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 20

[PATCH 19/19] cx23885: remove btcx-risc dependency

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com It's just as easy to do it in the driver. This dependency only uses a fraction of the btcx-risc module and doing it directly in the driver adds only a few lines. The btcx-risc module is really meant for the bttv driver, not for other drivers.

[PATCH 18/19] cx23885: remove FSF address as per checkpatch

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These addresses are usually out-of-date and the top-level license will always have the right address. So drop it from these sources. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/altera-ci.c | 4

[PATCH 17/19] cx23885: fix weird sizes.

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These values make no sense. All SDTV standards have the same width. This seems to be copied from the cx88 driver. Just drop these weird values. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885.h | 6 +++--- 1 file

[PATCH 09/19] cx23885: drop radio-related dead code

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Currently no radio device nodes are ever created, so remove the dead radio code. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 15 +++ drivers/media/pci/cx23885/cx23885.h | 3 --- 2

[PATCH 16/19] cx23885: fix field handling

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add missing SEQ_BT/TB support, bottom field is first for all 60 Hz formats, not just NTSC, restore an overwritten field value and initialize dev-field correctly. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCH 06/19] cx23885: convert 417 to the control framework

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Convert the -417 source to the control framework as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 133 +- drivers/media/pci/cx23885/cx23885-video.c | 6 --

[PATCH 12/19] cx23885: fmt, width and height are global, not per-fh.

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Move these fields from cx23885_fh to cx23885_dev. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 125 +++--- drivers/media/pci/cx23885/cx23885.h | 8 +- 2 files changed,

[PATCH 14/19] cx23885: use video_drvdata to get cx23885_dev pointer

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Use video_drvdata(file) instead of fh-dev to get the cx23885_dev pointer. This prepares for the vb2 conversion where fh-dev (renamed to fh-q_dev in this patch) will be removed completely. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCH 13/19] cx23885: drop videobuf abuse in cx23885-alsa

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The alsa driver uses videobuf low-level functions that are not available in vb2, so replace them by driver-specific functions. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-alsa.c | 96

[PATCH 03/19] cx23885: support v4l2_fh and g/s_priority

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for struct v4l2_fh and priority handling. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 5 + drivers/media/pci/cx23885/cx23885-video.c | 6 +- drivers/media/pci/cx23885/cx23885.h

[PATCH 10/19] cx23885: drop type field from struct cx23885_fh

2014-08-10 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This information is available elsewhere as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 89 ++- drivers/media/pci/cx23885/cx23885.h | 1 - 2 files changed, 40

Re: [PATCH 0/3] Another series of PM fixes for au0828

2014-08-10 Thread Hans Verkuil
Hi Mauro, The following are just some general remarks regarding PM and au0828, it's not specific to this patch series. I'm just brainstorming here... It's unfortunate that the au0828 isn't using vb2 yet. I would be interested in seeing what can be done in vb2 to help implement suspend/resume.

Re: [PATCH 0/3] Another series of PM fixes for au0828

2014-08-10 Thread Mauro Carvalho Chehab
Hi Hans, Em Sun, 10 Aug 2014 17:16:17 +0200 Hans Verkuil hverk...@xs4all.nl escreveu: Hi Mauro, The following are just some general remarks regarding PM and au0828, it's not specific to this patch series. I'm just brainstorming here... It's unfortunate that the au0828 isn't using vb2

Re: [PATCH 0/3] Another series of PM fixes for au0828

2014-08-10 Thread Hans Verkuil
On 08/10/2014 07:05 PM, Mauro Carvalho Chehab wrote: Hi Hans, Em Sun, 10 Aug 2014 17:16:17 +0200 Hans Verkuil hverk...@xs4all.nl escreveu: Hi Mauro, The following are just some general remarks regarding PM and au0828, it's not specific to this patch series. I'm just brainstorming

Re: [PATCH 0/3] Another series of PM fixes for au0828

2014-08-10 Thread Mauro Carvalho Chehab
Em Sun, 10 Aug 2014 19:30:59 +0200 Hans Verkuil hverk...@xs4all.nl escreveu: On 08/10/2014 07:05 PM, Mauro Carvalho Chehab wrote: Hi Hans, Em Sun, 10 Aug 2014 17:16:17 +0200 Hans Verkuil hverk...@xs4all.nl escreveu: Hi Mauro, The following are just some general remarks

Re: [PATCH 0/3] Another series of PM fixes for au0828

2014-08-10 Thread Hans Verkuil
On 08/10/2014 08:09 PM, Mauro Carvalho Chehab wrote: Em Sun, 10 Aug 2014 19:30:59 +0200 Hans Verkuil hverk...@xs4all.nl escreveu: On 08/10/2014 07:05 PM, Mauro Carvalho Chehab wrote: Hi Hans, Em Sun, 10 Aug 2014 17:16:17 +0200 Hans Verkuil hverk...@xs4all.nl escreveu: Hi Mauro, The

[PATCH] drivers: media: pci: Makefile: Remove duplicate subdirectory from obj-y

2014-08-10 Thread Andreas Ruprecht
In the list of subdirectories compiled, b2c2/ appears twice. This patch removes one of the appearances. Signed-off-by: Andreas Ruprecht rup...@einserver.de --- drivers/media/pci/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/pci/Makefile b/drivers/media/pci/Makefile

[PATCH] staging: soc_camera.c: Fixed a Missing blank line coding style issue

2014-08-10 Thread Suman Kumar
Fixes a coding style issue of 'Missing a blank line after declarations' reported by checkpatch.pl Signed-off-by: Suman Kumar su...@inforcecomputing.com --- drivers/media/platform/soc_camera/soc_camera.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH] staging: soc_camera.c: fixed coding style: lines over 80 char

2014-08-10 Thread Suman Kumar
Fixes a coding style issue of 'lines over 80 char' reported by checkpatch.pl Signed-off-by: Suman Kumar su...@inforcecomputing.com --- drivers/media/platform/soc_camera/soc_camera.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git

CX23885 error during boot

2014-08-10 Thread Bob Lightfoot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Media Community: Since switching to CentOS7 and the 3.10.0-123 kernel as listed below: Linux mythbox.lightfoot.us 3.10.0-123.6.3.el7.x86_64 #1 SMP Wed Aug 6 21:12:36 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux I keep getting the

Re: [PATCH] staging: soc_camera.c: fixed coding style: lines over 80 char

2014-08-10 Thread Joe Perches
On Mon, 2014-08-11 at 02:11 +0530, Suman Kumar wrote: Fixes a coding style issue of 'lines over 80 char' reported by checkpatch.pl [] diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c [] @@ -1430,7 +1434,7 @@ static int

Fwd: Re: CX23885 error during boot

2014-08-10 Thread Andy Walls
Dear Media Community: Since switching to CentOS7 and the 3.10.0-123 kernel as listed below: Linux mythbox.lightfoot.us 3.10.0-123.6.3.el7.x86_64 #1 SMP Wed Aug 6 21:12:36 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux I keep getting the following in dmesg related to my Hauppage Video Card

cron job: media_tree daily build: WARNINGS

2014-08-10 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: Mon Aug 11 04:00:24 CEST 2014 git branch: test git hash: 0f3bf3dc1ca394a8385079a5653088672b65c5c4 gcc

[PATCH 1/4 v3] support for DVBSky dvb-s2 usb: Add ts clock and clock polarity, lnb set voltage and lnb ctrl pin for m88ds3103

2014-08-10 Thread nibble.max
Add ts clock and clock polarity, lnb set voltage and lnb control pin. Signed-off-by: Nibble Max nibble@gmail.com --- drivers/media/dvb-frontends/m88ds3103.c | 72 - drivers/media/dvb-frontends/m88ds3103.h | 35 +--- 2 files changed, 75

[PATCH 3/4 v4] support for DVBSky dvb-s2 usb: add dvb-usb-v2 driver for DVBSky dvb-s2 box, no ci support.

2014-08-10 Thread nibble.max
remove ci support part in v1 patch. hook demod read status and set voltage operations. add m88ts2022 select in Kconfig. move usb buffer into state for usb ctrl. make checkpatch.pl happy. Signed-off-by: Nibble Max nibble@gmail.com --- drivers/media/usb/dvb-usb-v2/Kconfig | 7 +