[RFCv2 PATCH 1/5] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg()

2011-01-08 Thread Hans Verkuil
The core.s_config op was meant for legacy drivers that needed to work with old pre-2.6.26 kernels. This is no longer relevant. Unfortunately, this op was incorrectly called from several drivers. Replace those occurences with proper i2c_board_info structs and call v4l2_i2c_new_subdev_board. After

[RFCv2 PATCH 3/5] v4l2-ctrls: v4l2_ctrl_handler_setup must set is_new to 1

2011-01-08 Thread Hans Verkuil
Renamed has_new to is_new. Drivers can use the is_new field to determine if a new value was specified for a control. The v4l2_ctrl_handler_setup() must always set this to 1 since the setup has to force a full update of all controls. Signed-off-by: Hans Verkuil hverk...@xs4all.nl ---

[RFCv2 PATCH 4/5] ov7670: use the control framework

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/ov7670.c | 296 - 1 files changed, 116 insertions(+), 180 deletions(-) diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c index d4e7c11..4a980ba 100644 ---

[RFCv2 PATCH 5/5] cafe_ccic: implement the control framework.

2011-01-08 Thread Hans Verkuil
And also swapped the out_free and out_unreg labels as they were in the wrong order. Tested with the OLPC laptop. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/cafe_ccic.c | 59 +++--- 1 files changed, 11 insertions(+), 48 deletions(-)

Failure to build media_build

2011-01-08 Thread Daniel O'Connor
Hi, I am trying to build using media_build to see if head has resolved an issue with my dual tuner card (ie only one works) however I get the following.. [mythtv 20:48] ~/media_build ./build.sh *** * This script will download the latest

Re: [REGRESSION: wm8775, ivtv] Please revert commit fcb9757333df37cf4a7feccef7ef6f5300643864

2011-01-08 Thread Lawrence Rust
On Mon, 2011-01-03 at 17:34 -0500, Andy Walls wrote: On Sun, 2011-01-02 at 23:00 -0500, Eric Sharkey wrote: On Fri, Dec 31, 2010 at 7:55 PM, Andy Walls awa...@md.metrocast.net wrote: Mauro, Please revert at least the wm8775.c portion of commit

Re: JB Truck LLC

2011-01-08 Thread Hello James
Dear Sir/Madam, I am James Newell From MD United State, Finance Director of J B Trucks Company , My company had business with Bp in 2009 where i made $4.8usd out of my company knowlage which i legally place this fund in Escrow Account in Asia, because US financail position and

Re: Failure to build media_build

2011-01-08 Thread Daniel O'Connor
On 08/01/2011, at 22:53, Malcolm Priestley wrote: I don't need/want 1394 (I am testing a cx23885 FusionHDTV) but I don't know how to disable them :( I tried make config but I have no idea what the usual answers would be.. Is there a way to generate a file of the default options which I

Re: Unable to build media_build (mk II)

2011-01-08 Thread Hans Verkuil
On Saturday, January 08, 2011 13:38:25 Daniel O'Connor wrote: Hi again :) I am still having trouble building unfortunately, I get the following: CC [M] /home/myth/media_build/v4l/hdpvr-video.o CC [M] /home/myth/media_build/v4l/hdpvr-i2c.o /home/myth/media_build/v4l/hdpvr-i2c.c: In

Re: Unable to build media_build (mk II)

2011-01-08 Thread Daniel O'Connor
On 08/01/2011, at 23:14, Hans Verkuil wrote: Looking at some other consumers of that function it would appear the last argument (NULL in this case) is superfluous, however the file appears to be replaced each time I run build.sh so I can't update it. Only run build.sh once. After that you

[GIT PATCHES FOR 2.6.38] Fix incorrect error code if VIDIOC_DBG_G/S_REGISTER are unsupported

2011-01-08 Thread Hans Verkuil
A small and trivial fix, but it fixes a V4L2 API compliance issue. Regards, Hans The following changes since commit aeb13b434d0953050306435cd3134d65547dbcf4: Mauro Carvalho Chehab (1): cx25821: Fix compilation breakage due to BKL dependency are available in the git repository

Re: Unable to build media_build (mk II)

2011-01-08 Thread Hans Verkuil
On Saturday, January 08, 2011 13:56:27 Daniel O'Connor wrote: On 08/01/2011, at 23:14, Hans Verkuil wrote: Looking at some other consumers of that function it would appear the last argument (NULL in this case) is superfluous, however the file appears to be replaced each time I run

[RFCv3 PATCH 02/16] v4l2: add v4l2_prio_state to v4l2_device and video_device

2011-01-08 Thread Hans Verkuil
Integrate the v4l2_prio_state into the core, ready for use. One struct v4l2_prio_state is added to v4l2_device and a pointer to a prio state is added to video_device. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/v4l2-dev.c|6 ++

[RFCv3 PATCH 06/16] v4l2-fh: add v4l2_fh_is_singular

2011-01-08 Thread Hans Verkuil
Several drivers need to do something when the first filehandle is opened or the last filehandle is closed. Most implement some use count mechanism, but if they use v4l2_fh, then you can also just check if this is the only filehandle for the device node. A simple helper function can do this.

[RFCv3 PATCH 07/16] ivtv: convert to core priority handling.

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/ivtv/ivtv-driver.h |2 - drivers/media/video/ivtv/ivtv-fileops.c |2 - drivers/media/video/ivtv/ivtv-ioctl.c | 56 -- 3 files changed, 15 insertions(+), 45 deletions(-) diff --git

[RFCv3 PATCH 05/16] v4l2-ioctl: add priority handling support.

2011-01-08 Thread Hans Verkuil
Drivers that use v4l2_fh can now use the core framework support of g/s_priority. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-si4713.c |3 +- drivers/media/video/cx18/cx18-ioctl.c |3 +- drivers/media/video/davinci/vpfe_capture.c |2 +-

[RFCv3 PATCH 16/16] v4l2-framework.txt: improve v4l2_fh/priority documentation

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- Documentation/video4linux/v4l2-framework.txt | 120 +++--- 1 files changed, 87 insertions(+), 33 deletions(-) diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt index

[RFCv3 PATCH 15/16] radio-maxiradio: implement priority handling

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-maxiradio.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 1323a56..d38c60f 100644 ---

[RFCv3 PATCH 01/16] v4l2_prio: move from v4l2-common to v4l2-dev.

2011-01-08 Thread Hans Verkuil
We are going to move priority handling into the v4l2 core. As a consequence the v4l2_prio helper functions need to be moved into the core videodev module as well to prevent circular dependencies. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/v4l2-common.c | 63

[RFCv3 PATCH 14/16] radio-maxiradio: convert to core-assisted locking

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-maxiradio.c | 15 +++ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 6459a22..1323a56 100644 ---

[RFCv3 PATCH 13/16] radio-cadet: use v4l2_fh helper functions

2011-01-08 Thread Hans Verkuil
This will introduce priority handling. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-cadet.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index

[RFCv3 PATCH 12/16] radio-cadet: convert to core-assisted locking

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-cadet.c | 51 - 1 files changed, 11 insertions(+), 40 deletions(-) diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index bc9ad08..4a37b69 100644

[RFCv3 PATCH 10/16] radio-mr800: remove autopm support.

2011-01-08 Thread Hans Verkuil
autopm is a bad idea for radio usb sticks: it means that when the last user closes the file handle the radio stops working which is not what you want. Removing this simplifies the code as well. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-mr800.c | 67

[RFCv3 PATCH 08/16] ivtv: use core-assisted locking.

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/ivtv/ivtv-fileops.c | 15 +-- drivers/media/video/ivtv/ivtv-ioctl.c | 18 +- drivers/media/video/ivtv/ivtv-streams.c |1 + 3 files changed, 3 insertions(+), 31 deletions(-) diff --git

[RFCv3 PATCH 11/16] radio-mr800: Add priority support.

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-mr800.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index 3e2b3ae..b4879dd 100644 ---

[RFCv3 PATCH 09/16] radio_mr800: use video_drvdata instead of filp-private_data

2011-01-08 Thread Hans Verkuil
filp-private_data will be used to store v4l2_fh instead. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-mr800.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/media/radio/radio-mr800.c

[RFCv3 PATCH 04/16] v4l2-fh: add v4l2_fh_open and v4l2_fh_release helper functions

2011-01-08 Thread Hans Verkuil
Add two new functions: v4l2_fh_open allocates and initializes a struct v4l2_fh based on a struct file pointer and v4l2_fh_release releases and frees a struct v4l2_fh. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/v4l2-fh.c | 28

[RFCv3 PATCH 03/16] v4l2-fh: implement v4l2_priority support.

2011-01-08 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/video/v4l2-fh.c |4 include/media/v4l2-fh.h |1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/v4l2-fh.c b/drivers/media/video/v4l2-fh.c index d78f184..78a1608 100644 ---

Re: [REGRESSION: wm8775, ivtv] Please revert commit fcb9757333df37cf4a7feccef7ef6f5300643864

2011-01-08 Thread Andy Walls
On Sat, 2011-01-08 at 13:09 +0100, Lawrence Rust wrote: On Mon, 2011-01-03 at 17:34 -0500, Andy Walls wrote: On Sun, 2011-01-02 at 23:00 -0500, Eric Sharkey wrote: On Fri, Dec 31, 2010 at 7:55 PM, Andy Walls awa...@md.metrocast.net wrote: Mauro, Please revert at least the

Re: [RFCv3 PATCH 05/16] v4l2-ioctl: add priority handling support.

2011-01-08 Thread Hans Verkuil
On Saturday, January 08, 2011 14:36:30 Hans Verkuil wrote: Drivers that use v4l2_fh can now use the core framework support of g/s_priority. Signed-off-by: Hans Verkuil hverk...@xs4all.nl --- drivers/media/radio/radio-si4713.c |3 +- drivers/media/video/cx18/cx18-ioctl.c

Re: [PATCH 11/32] v4l/cx18: update workqueue usage

2011-01-08 Thread Andy Walls
On Mon, 2011-01-03 at 14:49 +0100, Tejun Heo wrote: With cmwq, there's no reason to use separate out_work_queue. Drop it and use system_wq instead. The in_work_queue needs to be ordered so can't use one of the system wqs; however, as it isn't used to reclaim memory, allocate the workqueue

[cron job] v4l-dvb daily build: WARNINGS

2011-01-08 Thread Hans Verkuil
This message is generated daily by a cron job that builds v4l-dvb for the kernels and architectures in the list below. Results of the daily build of v4l-dvb: date:Sat Jan 8 19:00:39 CET 2011 git master: 59365d136d205cc20fe666ca7f89b1c5001b0d5a git media-master: gcc version:

Re: [PATCH 1/1] Add plugin support to libv4l

2011-01-08 Thread Hans de Goede
Hi, First of all many thanks for working on this! I've several remarks which I would like to see addressed before merging this. Since most remarks are rather high level remarks I've opted to just make a bulleted list of them rather then inserting them inline. * The biggest problem with your

RE: zilog and IR

2011-01-08 Thread Jason Gauthier
On Sat, 2011-01-08 at 10:44 -0500, Jason Gauthier wrote: Andy, Firstly, I apologize for reaching out to you directly. The list could have answered this, so I adding the Cc:. At the time of my searches, and the results, it was not apparent to me there was any mailing list associated with

[PATCH] adv7175: support s_power

2011-01-08 Thread Christian Gmeiner
This patch adds s_power support to adv7175 driver. Power-down is done by power-down all four DACs. Signed-off-by: Christian Gmeiner christian.gmei...@gmail.com --- diff --git a/drivers/media/video/adv7175.c b/drivers/media/video/adv7175.c index f318b51..d2327db 100644 ---

[regression] DVB cards doesn't work with 2.6.37/ current git

2011-01-08 Thread Martin Dauskardt
I tried two things: 1.) compile media_build.git for my 2.6.32 Ubuntu Kernel. It compiles, driver loads without errors. [ 8.500109] DVB: registering adapter 0 frontend 0 (Philips TDA10023 DVB-C)... [ 8.981263] DVB: registering adapter 1 frontend 0 (Philips TDA10021 DVB-C)... But when I start vdr

Re: user accesses in ivtv-fileops.c:ivtv_v4l2_write ?

2011-01-08 Thread Dr. David Alan Gilbert
Hi Andy, It looks like we missed something in that copy from user patch from the end of last year: +void ivtv_write_vbi_from_user(struct ivtv *itv, + const struct v4l2_sliced_vbi_data __user *sliced, + size_t cnt) +{ + struct vbi_cc

Re: user accesses in ivtv-fileops.c:ivtv_v4l2_write ?

2011-01-08 Thread Andy Walls
On Sun, 2011-01-09 at 00:34 +, Dr. David Alan Gilbert wrote: Hi Andy, It looks like we missed something in that copy from user patch from the end of last year: +void ivtv_write_vbi_from_user(struct ivtv *itv, + const struct v4l2_sliced_vbi_data __user

Re: [PATCH v12 2/8] davinci vpbe: VPBE display driver

2011-01-08 Thread Bjørn Forsman
On 7 January 2011 14:39, Manjunath Hadli manjunath.ha...@ti.com wrote: This patch implements the core functionality of the dislay driver, mainly controlling the VENC and other encoders, and acting as the one point interface for the main V4L2 driver. This implements the core of each of the V4L2

[PATCH] ir-raw: fix sparse non-ANSI function warning

2011-01-08 Thread Randy Dunlap
From: Randy Dunlap randy.dun...@oracle.com Fix sparse warning for non-ANSI function declaration: drivers/media/rc/ir-raw.c:247:30: warning: non-ANSI function declaration of function 'ir_raw_get_allowed_protocols' Signed-off-by: Randy Dunlap randy.dun...@oracle.com Cc: Mauro Carvalho Chehab

Re: difference mchehab/new_build.git to media_build.git ?

2011-01-08 Thread Vincent McIntyre
There's no difference. It started out at mchehab/new_build.git, then got moved to media_build.git, but there's a symlink in place to keep from breaking things for people who originally checked it out at the old location. The move essentially promoted it from something Mauro's tinkering with