Re: [PATCH 1/1] media: ov9740: Initial submission of OV9740 driver

2011-02-14 Thread Hans Verkuil
On Monday, February 14, 2011 23:26:15 ac...@nvidia.com wrote: > From: Andrew Chew > > This driver is for Omnivision's OV9740 sensor. This initial submission > provides support for YUV422 output at 1280x720 (the sensor's native > resolution), and 640x480 (cropping and scaling performed by the sen

There is a long delay when I use v4l2(uvc) with epoll (but select works well)

2011-02-14 Thread aeogiss
This is the strace result when use select 12:08:30 select(5, [4], NULL, NULL, {1, 684498}) = 1 (in [4], left {1, 648368}) <0.036166> 12:08:30 ioctl(4, VIDIOC_DQBUF, 0x7fffbe72ce50) = 0 <0.24> 12:08:30 ioctl(4, VIDIOC_QBUF or VT_SETACTIVATE, 0x7fffbe72ce50) = 0 <0.21> 12:08:30 select(5, [4]

tm6010 based tv tuner uses the correct firmware? or the audio part problem

2011-02-14 Thread hendry zhang
hi, My tm6010 based tv tuner is WINTV-HVR-900H, Model number is 66009, and USB id is 2040:6600. According to the guide, I use the firmware xc3028L-v36.fw from http://www.stefanringel.de/pub/xc3028L-v36.fw. I'm sure this firmware is for Xceive products and is also suitable for this product? I'm able

Re: No data from tuner over PCI bridge adapter (Cablestar HD 2 / mantis / PEX 8112)

2011-02-14 Thread Andy Walls
On Mon, 2011-02-14 at 13:35 +0200, Dennis Kurten wrote: > Hello, > > This card (technisat cablestar hd 2 dvb-c) works fine when plugged > into a native PCI slot. > When I try it with a PCI-adapter I intend to use in mITX-builds there > doesn't seem > to be any data coming in through the tuner. The

Re: [patch] [media] stv090x: handle allocation failures

2011-02-14 Thread Oliver Endriss
On Monday 07 February 2011 17:56:50 Dan Carpenter wrote: > kmalloc() can fail so check whether state->internal is NULL. > append_internal() can return NULL on allocation failures so check that. > Also if we hit the error condition later in the function then there is > a memory leak and we need to c

Re: Sony CXD2099AR decryption failing

2011-02-14 Thread Oliver Endriss
Hello, On Monday 14 February 2011 17:42:55 Issa Gorissen wrote: > Hi, > > I am having some trouble with the Sony CXD2099AR CI chip. > > With a SMIT Viaccess CAM, I am not able to decrypt channels from the french > package Bis.TV on Hotbird 13E. > > The CAM decrypts fine when inserted in a set t

Re: cx23885-input.c does in fact use a workqueue....

2011-02-14 Thread Andy Walls
On Mon, 2011-02-14 at 12:03 +0100, Tejun Heo wrote: > Hello, > > On Sun, Feb 13, 2011 at 08:33:55PM -0800, Dmitry Torokhov wrote: > > > The cx23885 driver does in fact schedule work for IR input handling: > > > > > > Here's where it is scheduled for CX23888 chips: > > > > > > http://git.linuxtv.

[PATCH 1/1] media: ov9740: Initial submission of OV9740 driver

2011-02-14 Thread achew
From: Andrew Chew This driver is for Omnivision's OV9740 sensor. This initial submission provides support for YUV422 output at 1280x720 (the sensor's native resolution), and 640x480 (cropping and scaling performed by the sensor's ISP). This driver is heavily based off of the existing OV9640 dri

[PATCH 01/14] [media] cx88: use unlocked_ioctl for cx88-video.

2011-02-14 Thread Mauro Carvalho Chehab
cx88-video has locks. don't use the locked ioctl version, as it is not needed. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 508dabb..e2fc455 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/

[PATCH 01/14] [media] cx88: use unlocked_ioctl for cx88-video

2011-02-14 Thread Mauro Carvalho Chehab
cx88-video has locks. don't use the locked ioctl version, as it is not needed. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 508dabb..e2fc455 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/

[PATCH 00/14] tuner-core cleanups

2011-02-14 Thread Mauro Carvalho Chehab
The entire subsystem internals have changed, but without enough care to clean up tuner-core internals. This patch series take care of tuner-core, removing some dead code there, and avoiding the risk of returning T_STANDBY to userspace. Those changes were motivated by this thread: http://w

[PATCH 13/14] [media] tuner-core: Fix a few comments on it

2011-02-14 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 2a0bea1..dcf03fa 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -128,7 +128,7 @@ struct tuner { * tuner attach/detach logic */

[PATCH 12/14] [media] tuner-core: dead code removal

2011-02-14 Thread Mauro Carvalho Chehab
Remove the now obsolete set_freq. Also merge set_addr and set_type_addr. In the past, it used to have two different setup calls, one to set just the tuner type to any tuner found, and another to set the type only if the address matches. Those two internal calls were grouped together, but the funct

[PATCH 14/14] [media] Remove the remaining usages for T_STANDBY

2011-02-14 Thread Mauro Carvalho Chehab
tda9887 used to use the T_STANDBY type internally, while tea5761 used it to put the device to sleep. Fix the code for it to work properly with the tuner core changes and remove this flag from tuner.h. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/common/tuners/tda9887.c b/driv

[PATCH 02/14] [media] cx88: Don't allow opening a device while it is not ready

2011-02-14 Thread Mauro Carvalho Chehab
After registering the cdev, it would be possible do have an open on it. In a matter of fact, some versions of udev do this. So, move registration to the end and protect it with a mutex. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video

[PATCH 11/14] [media] tuner-core: Don't use a static var for xc5000_cfg

2011-02-14 Thread Mauro Carvalho Chehab
A static var is evil, especially if a device has two boards with xc5000. Instead, just like the other drivers, use stack to store its config during setup. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 70ff416..16939ca

[PATCH 10/14] [media] tuner-core: CodingStyle cleanups

2011-02-14 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index e6b63e9..70ff416 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -32,7 +32,7 @@ #define UNSET (-1U) -#define PREFIX t->i2c->driv

[PATCH 09/14] [media] tuner-core: do the right thing for suspend/resume

2011-02-14 Thread Mauro Carvalho Chehab
Power down tuners at suspend. At resume, if the tuner is in standby, calls set_mode, that will turn it on and set the latest frequencies. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index e6855a4..e6b63e9 100644 --- a/driv

[PATCH 08/14] [media] tuner-core: Better implement standby mode

2011-02-14 Thread Mauro Carvalho Chehab
In the past, T_STANDBY were used on devices with a separate radio tuner to mark a tuner that were disabled. With the time, it got newer meanings. Also, due to a bug at the logic, the driver might incorrectly return T_STANDBY to userspace. So, instead of keeping the abuse, just use a boolean for s

[PATCH 07/14] [media] tuner-core: Some cleanups at check_mode/set_mode

2011-02-14 Thread Mauro Carvalho Chehab
Properly document those functions and do some cleanups around that. There's just one behavior change on this patchset: it will now restore TV frequency when changing from radio to TV mode. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tu

[PATCH 06/14] [media] tuner-core: Reorganize the functions internally

2011-02-14 Thread Mauro Carvalho Chehab
This is a big patch with no functional changes. It just rearranges everything inside the driver, and prepares to break TV and Radio into two separate fops groups. Currently, it has an heuristics logic to determine if the call came from radio or video. However, the caller driver knows for sure, so

[PATCH 05/14] [media] tuner-core: move some messages to the proper place

2011-02-14 Thread Mauro Carvalho Chehab
Move the frequency set debug printk's to the code that actually are changing it. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 912d8e8..f497f52 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tu

[PATCH 04/14] [media] tuner-core: remove the legacy is_stereo() call

2011-02-14 Thread Mauro Carvalho Chehab
Nobody is using this legacy call. Just remove it. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h index f9f19be..3b86050 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb/dvb-cor

[PATCH 03/14] [media] tuner-core: Remove V4L1/V4L2 API switch

2011-02-14 Thread Mauro Carvalho Chehab
V4L1 was removed. So, the code there is just dead code. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 1cec122..6041c7d 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -80,7 +80,6

[cron job] v4l-dvb daily build: WARNINGS

2011-02-14 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:Mon Feb 14 19:00:28 CET 2011 git master: 1b59be2a6cdcb5a12e18d8315c07c94a624de48f git media-master: gcc version: i6

Re: [PATCH] v4l-utils: Add the JPEG Lite decoding function

2011-02-14 Thread Hans de Goede
Hi, On 02/14/2011 01:36 PM, Jean-Francois Moine wrote: Hi Hans, JPEG Lite images are created by the DivIO nw80x chips. The gspca subdriver nw80x will be ready soon. Decoding to RGB24 and BGR24 are ok. Decoding to YUV420 and YVU420 are not tested. You're working on nw80x support? Cool! I've

[PATCH 1/1] Update stv0900 status when LOCK is missed

2011-02-14 Thread Abylay Ospan
Update stv0900 status when LOCK is missed Signed-off-by: Abylay Ospan --- drivers/media/dvb/frontends/stv0900_core.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c index 4f5e7d

Sony CXD2099AR decryption failing

2011-02-14 Thread Issa Gorissen
Hi, I am having some trouble with the Sony CXD2099AR CI chip. With a SMIT Viaccess CAM, I am not able to decrypt channels from the french package Bis.TV on Hotbird 13E. The CAM decrypts fine when inserted in a set top box. The drivers running are those from the branch of Oliver. System's runnin

Re: [PATCH v6 03/10] omap3: Add function to register omap3isp platform device structure

2011-02-14 Thread David Cohen
On Mon, Feb 14, 2011 at 3:18 PM, Felipe Balbi wrote: > Hi, Hi > > On Mon, Feb 14, 2011 at 02:07:08PM +0100, Laurent Pinchart wrote: >> > > diff --git a/arch/arm/mach-omap2/devices.h >> > > b/arch/arm/mach-omap2/devices.h new file mode 100644 >> > > index 000..12ddb8a >> > > --- /dev/null >>

Re: [PATCH v6 04/10] omap2: Fix camera resources for multiomap

2011-02-14 Thread David Cohen
On Mon, Feb 14, 2011 at 3:50 PM, Laurent Pinchart wrote: > Hi Felipe, Hello, > > On Monday 14 February 2011 14:41:16 Felipe Balbi wrote: >> On Mon, Feb 14, 2011 at 02:19:24PM +0100, Laurent Pinchart wrote: >> > On Monday 14 February 2011 13:35:59 Felipe Balbi wrote: >> > > On Mon, Feb 14, 2011 a

Re: [corrected get-bisect results]: DViCO FusionHDTV7 Dual Express I2C write failed

2011-02-14 Thread Devin Heitmueller
On Sun, Feb 13, 2011 at 7:16 PM, Andy Walls wrote: > Devin, > > I just checked.  The CX23885 driver *is* setting up to allow slaves to > stretch the clock. > > By analysis, I have confirmed that Jean's sugguested patch that I moved > forward was wrong for the hardware's behavior.  When the cx23885

Re: [PATCH v6 04/10] omap2: Fix camera resources for multiomap

2011-02-14 Thread Laurent Pinchart
Hi Felipe, On Monday 14 February 2011 14:41:16 Felipe Balbi wrote: > On Mon, Feb 14, 2011 at 02:19:24PM +0100, Laurent Pinchart wrote: > > On Monday 14 February 2011 13:35:59 Felipe Balbi wrote: > > > On Mon, Feb 14, 2011 at 01:21:31PM +0100, Laurent Pinchart wrote: > > > > diff --git a/arch/arm/m

Re: [PATCH v6 04/10] omap2: Fix camera resources for multiomap

2011-02-14 Thread Felipe Balbi
Hi, On Mon, Feb 14, 2011 at 02:19:24PM +0100, Laurent Pinchart wrote: > Thanks for the review. np. > On Monday 14 February 2011 13:35:59 Felipe Balbi wrote: > > On Mon, Feb 14, 2011 at 01:21:31PM +0100, Laurent Pinchart wrote: > > > diff --git a/arch/arm/mach-omap2/devices.c > > > b/arch/arm/mac

Re: [PATCH v6 07/10] omap3isp: CCP2/CSI2 receivers

2011-02-14 Thread Laurent Pinchart
Hi Felipe, On Monday 14 February 2011 13:37:39 Felipe Balbi wrote: > On Mon, Feb 14, 2011 at 01:21:34PM +0100, Laurent Pinchart wrote: > > The OMAP3 ISP CCP2 and CSI2 receivers provide an interface to connect > > serial MIPI sensors to the device. > > > > Signed-off-by: Laurent Pinchart > > Sign

Re: [PATCH v6 07/10] omap3isp: CCP2/CSI2 receivers

2011-02-14 Thread Laurent Pinchart
Hi Felipe, On Monday 14 February 2011 13:37:39 Felipe Balbi wrote: > On Mon, Feb 14, 2011 at 01:21:34PM +0100, Laurent Pinchart wrote: > > The OMAP3 ISP CCP2 and CSI2 receivers provide an interface to connect > > serial MIPI sensors to the device. > > > > Signed-off-by: Laurent Pinchart > > Sign

Re: [PATCH v6 04/10] omap2: Fix camera resources for multiomap

2011-02-14 Thread Laurent Pinchart
Hi Felipe, Thanks for the review. On Monday 14 February 2011 13:35:59 Felipe Balbi wrote: > On Mon, Feb 14, 2011 at 01:21:31PM +0100, Laurent Pinchart wrote: > > diff --git a/arch/arm/mach-omap2/devices.c > > b/arch/arm/mach-omap2/devices.c index 4cf48ea..5d844bd 100644 > > --- a/arch/arm/mach-om

Re: [PATCH v6 03/10] omap3: Add function to register omap3isp platform device structure

2011-02-14 Thread Felipe Balbi
Hi, On Mon, Feb 14, 2011 at 02:07:08PM +0100, Laurent Pinchart wrote: > > > diff --git a/arch/arm/mach-omap2/devices.h > > > b/arch/arm/mach-omap2/devices.h new file mode 100644 > > > index 000..12ddb8a > > > --- /dev/null > > > +++ b/arch/arm/mach-omap2/devices.h > > > @@ -0,0 +1,17 @@ > > >

Re: [PATCH v6 03/10] omap3: Add function to register omap3isp platform device structure

2011-02-14 Thread Laurent Pinchart
Hi Felipe, On Monday 14 February 2011 13:34:30 Felipe Balbi wrote: > On Mon, Feb 14, 2011 at 01:21:30PM +0100, Laurent Pinchart wrote: > > diff --git a/arch/arm/mach-omap2/devices.c > > b/arch/arm/mach-omap2/devices.c index d389756..4cf48ea 100644 > > --- a/arch/arm/mach-omap2/devices.c > > +++ b/

Re: [PATCH v6 02/10] omap3: Remove unusued ISP CBUFF resource

2011-02-14 Thread Laurent Pinchart
Hi Felipe, On Monday 14 February 2011 13:31:06 Felipe Balbi wrote: > On Mon, Feb 14, 2011 at 01:21:29PM +0100, Laurent Pinchart wrote: > > From: Sergio Aguirre > > > > The ISP CBUFF module isn't use, its resource isn't needed. > > > > Signed-off-by: Sergio Aguirre > > Acked-by: Laurent Pinchar

Re: [PATCH v6 00/10] OMAP3 ISP driver

2011-02-14 Thread Hans Verkuil
This patch series is Acked-by: Hans Verkuil Regards, Hans On Monday, February 14, 2011 13:21:27 Laurent Pinchart wrote: > Hi everybody, > > Here's the sixth version of the OMAP3 ISP driver patches, updated to > 2.6.38-rc4 and the latest changes in the media controller and sub-device

Re: [PATCH v7 3/6] v4l: subdev: Add device node support

2011-02-14 Thread Laurent Pinchart
Hi Hans, On Monday 14 February 2011 13:45:23 Hans Verkuil wrote: [snip] > > +int v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev) > > +{ > > + struct video_device *vdev; > > + struct v4l2_subdev *sd; > > + int err; > > + > > + /* Register a device node for every subdev mar

Re: [PATCH v2 0/6] Misc V4L2 patches for the OMAP3 ISP driver

2011-02-14 Thread Hans Verkuil
This patch series is: Acked-by: Hans Verkuil Regards, Hans On Monday, February 14, 2011 13:21:24 Laurent Pinchart wrote: > Hi everybody, > > Here are six miscellaneous patches to the V4L2 core that are required by the > OMAP3 ISP driver. They mostly add new format codes, as well as a

Re: [PATCH v7 00/11] Sub-device pad-level operations

2011-02-14 Thread Hans Verkuil
This patch series is: Acked-by: Hans Verkuil Regards, Hans On Monday, February 14, 2011 13:21:13 Laurent Pinchart wrote: > Hi everybody, > > Here's the seventh version of the sub-device pad-level operations patches. > The patches are just rebased on top of 2.6.38-rc4. > > Antti Koski

Re: [PATCH v9 00/12] Media controller (core and V4L2)

2011-02-14 Thread Hans Verkuil
Here is my Acked-by: Hans Verkuil for this patch series. Regards, Hans On Monday, February 14, 2011 13:20:55 Laurent Pinchart wrote: > Hi everybody, > > Here is the ninth version of the media controller core and V4L2 patches. > > Quick reminder for those who missed the previous vers

Re: [PATCH v7 3/6] v4l: subdev: Add device node support

2011-02-14 Thread Hans Verkuil
Hi Laurent! Just one one small thing: > Create a device node named subdevX for every registered subdev. > > As the device node is registered before the subdev core::s_config > function is called, return -EGAIN on open until initialization > completes. > > Signed-off-by: Laurent Pinchart > Signed

Re: [PATCH v6 07/10] omap3isp: CCP2/CSI2 receivers

2011-02-14 Thread Felipe Balbi
On Mon, Feb 14, 2011 at 01:21:34PM +0100, Laurent Pinchart wrote: > The OMAP3 ISP CCP2 and CSI2 receivers provide an interface to connect > serial MIPI sensors to the device. > > Signed-off-by: Laurent Pinchart > Signed-off-by: Sakari Ailus > Signed-off-by: David Cohen > Signed-off-by: Stanimir

Re: [PATCH v6 07/10] omap3isp: CCP2/CSI2 receivers

2011-02-14 Thread Felipe Balbi
On Mon, Feb 14, 2011 at 01:21:34PM +0100, Laurent Pinchart wrote: > The OMAP3 ISP CCP2 and CSI2 receivers provide an interface to connect > serial MIPI sensors to the device. > > Signed-off-by: Laurent Pinchart > Signed-off-by: Sakari Ailus > Signed-off-by: David Cohen > Signed-off-by: Stanimir

Re: [PATCH v6 04/10] omap2: Fix camera resources for multiomap

2011-02-14 Thread Felipe Balbi
Hi, On Mon, Feb 14, 2011 at 01:21:31PM +0100, Laurent Pinchart wrote: > diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c > index 4cf48ea..5d844bd 100644 > --- a/arch/arm/mach-omap2/devices.c > +++ b/arch/arm/mach-omap2/devices.c > @@ -38,7 +38,7 @@ > > #if defined(CONF

Re: [PATCH v6 03/10] omap3: Add function to register omap3isp platform device structure

2011-02-14 Thread Felipe Balbi
Hi, On Mon, Feb 14, 2011 at 01:21:30PM +0100, Laurent Pinchart wrote: > diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c > index d389756..4cf48ea 100644 > --- a/arch/arm/mach-omap2/devices.c > +++ b/arch/arm/mach-omap2/devices.c > @@ -34,6 +34,8 @@ > #include "mux.h" >

[PATCH] v4l-utils: Add the JPEG Lite decoding function

2011-02-14 Thread Jean-Francois Moine
Hi Hans, JPEG Lite images are created by the DivIO nw80x chips. The gspca subdriver nw80x will be ready soon. Decoding to RGB24 and BGR24 are ok. Decoding to YUV420 and YVU420 are not tested. Best regards. -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef |

Re: [PATCH v6 02/10] omap3: Remove unusued ISP CBUFF resource

2011-02-14 Thread Felipe Balbi
On Mon, Feb 14, 2011 at 01:21:29PM +0100, Laurent Pinchart wrote: > From: Sergio Aguirre > > The ISP CBUFF module isn't use, its resource isn't needed. > > Signed-off-by: Sergio Aguirre > Acked-by: Laurent Pinchart > Acked-by: Tony Lindgren it's unused but it's there right ? what's the probl

Re: [GIT PULL] TI WL 128x FM V4L2 driver

2011-02-14 Thread halli manjunatha
Hi Mauro, V4L2 FM driver depend upon an underlying TI_ST driver which is the core transport driver. Updates to TI-ST driver happen on linux-next tree on kernel.org and are planned to be released in 2.6.39. Since your tree @ [http://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6.git] la

[PATCH v9 02/12] media: Media device

2011-02-14 Thread Laurent Pinchart
The media_device structure abstracts functions common to all kind of media devices (v4l2, dvb, alsa, ...). It manages media entities and offers a userspace API to discover and configure the media device internal topology. Signed-off-by: Laurent Pinchart --- Documentation/ABI/testing/sysfs-bus-me

[PATCH v9 03/12] media: Entities, pads and links

2011-02-14 Thread Laurent Pinchart
As video hardware pipelines become increasingly complex and configurable, the current hardware description through v4l2 subdevices reaches its limits. In addition to enumerating and configuring subdevices, video camera drivers need a way to discover and modify at runtime how those subdevices are co

[PATCH v9 04/12] media: Entity graph traversal

2011-02-14 Thread Laurent Pinchart
From: Sakari Ailus Add media entity graph traversal. The traversal follows enabled links by depth first. Traversing graph backwards is prevented by comparing the next possible entity in the graph with the previous one. Multiply connected graphs are thus not supported. Signed-off-by: Sakari Ailus

[PATCH v9 05/12] media: Entity use count

2011-02-14 Thread Laurent Pinchart
Due to the wide differences between drivers regarding power management needs, the media controller does not implement power management. However, the media_entity structure includes a use_count field that media drivers can use to track the number of users of every entity for power management needs.

[PATCH v9 08/12] media: Links setup

2011-02-14 Thread Laurent Pinchart
Create the following ioctl and implement it at the media device level to setup links. - MEDIA_IOC_SETUP_LINK: Modify the properties of a given link The only property that can currently be modified is the ENABLED link flag to enable/disable a link. Links marked with the IMMUTABLE link flag can not

[PATCH v9 09/12] media: Pipelines and media streams

2011-02-14 Thread Laurent Pinchart
Drivers often need to associate pipeline objects to entities, and to take stream state into account when configuring entities and links. The pipeline API helps drivers manage that information. When starting streaming, drivers call media_entity_pipeline_start(). The function marks all entities conn

[PATCH v9 10/12] v4l: Add a media_device pointer to the v4l2_device structure

2011-02-14 Thread Laurent Pinchart
The pointer will later be used to register/unregister media entities when registering/unregistering a v4l2_subdev or a video_device. With the introduction of media devices, device drivers need to store a pointer to a driver-specific structure in the device's drvdata. v4l2_device can't claim owners

[PATCH v9 11/12] v4l: Make video_device inherit from media_entity

2011-02-14 Thread Laurent Pinchart
V4L2 devices are media entities. As such they need to inherit from (include) the media_entity structure. When registering/unregistering the device, the media entity is automatically registered/unregistered. The entity is acquired on device open and released on device close. Signed-off-by: Laurent

[PATCH v9 07/12] media: Entities, pads and links enumeration

2011-02-14 Thread Laurent Pinchart
Create the following two ioctls and implement them at the media device level to enumerate entities, pads and links. - MEDIA_IOC_ENUM_ENTITIES: Enumerate entities and their properties - MEDIA_IOC_ENUM_LINKS: Enumerate all pads and links for a given entity Entity IDs can be non-contiguous. Userspac

[PATCH v9 06/12] media: Media device information query

2011-02-14 Thread Laurent Pinchart
Create the following ioctl and implement it at the media device level to query device information. - MEDIA_IOC_DEVICE_INFO: Query media device information The ioctl and its data structure are defined in the new kernel header linux/media.h available to userspace applications. Signed-off-by: Laure

[PATCH v7 04/11] v4l: Group media bus pixel codes by types and sort them alphabetically

2011-02-14 Thread Laurent Pinchart
Adding new pixel codes at the end of the enumeration will soon create a mess, so group the pixel codes by type and sort them by bus_width, bits per component, samples per pixel and order of subsamples. As the codes are part of the kernel ABI their value can't change when a new code is inserted in

[PATCH v7 01/11] v4l: Move the media/v4l2-mediabus.h header to include/linux

2011-02-14 Thread Laurent Pinchart
The header defines the v4l2_mbus_framefmt structure which will be used by the V4L2 subdevs userspace API. Change the type of the v4l2_mbus_framefmt::code field to __u32, as enum sizes can differ between different ABIs on the same architectures. Signed-off-by: Laurent Pinchart --- include/linux/

[PATCH v7 07/11] v4l: v4l2_subdev pad-level operations

2011-02-14 Thread Laurent Pinchart
Add a v4l2_subdev_pad_ops structure for the operations that need to be performed at the pad level such as format-related operations. Pad format-related operations use v4l2_mbus_framefmt instead of v4l2_format. Signed-off-by: Laurent Pinchart --- include/media/v4l2-subdev.h |4 1 files

[PATCH v2 5/6] v4l: Add missing 12 bits bayer media bus formats

2011-02-14 Thread Laurent Pinchart
Add codes and documentation for the following media bus formats: - V4L2_MBUS_FMT_SGBRG12_1X12 - V4L2_MBUS_FMT_SGRBG12_1X12 - V4L2_MBUS_FMT_SRGGB12_1X12 Signed-off-by: Laurent Pinchart --- Documentation/DocBook/v4l/subdev-formats.xml | 51 ++ include/linux/v4l2-mediabus

[PATCH v7 10/11] v4l: v4l2_subdev userspace frame interval API

2011-02-14 Thread Laurent Pinchart
The three new ioctl VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL, VIDIOC_SUBDEV_G_FRAME_INTERVAL and VIDIOC_SUBDEV_S_FRAME_INTERVAL can be used to enumerate and configure a subdev's frame rate from userspace. Two new video::g/s_frame_interval subdev operations are introduced to support those ioctls. The exis

[PATCH v7 11/11] v4l: v4l2_subdev userspace crop API

2011-02-14 Thread Laurent Pinchart
From: Antti Koskipaa This patch adds the VIDIOC_SUBDEV_S_CROP and G_CROP ioctls to the userland API. CROPCAP is not implemented because it's redundant. Signed-off-by: Antti Koskipaa Signed-off-by: Laurent Pinchart --- Documentation/DocBook/media-entities.tmpl |4 + Documentation/

[PATCH v9 12/12] v4l: Make v4l2_subdev inherit from media_entity

2011-02-14 Thread Laurent Pinchart
V4L2 subdevices are media entities. As such they need to inherit from (include) the media_entity structure. When registering/unregistering the subdevice, the media entity is automatically registered/unregistered. The entity is acquired on device open and released on device close. Signed-off-by: L

[PATCH v6 03/10] omap3: Add function to register omap3isp platform device structure

2011-02-14 Thread Laurent Pinchart
The omap3isp platform device requires platform data. Instead of registering the device in omap2_init_devices(), export an omap3_init_camera() function to fill the device structure with the platform data pointer and register the device. Signed-off-by: Laurent Pinchart Acked-by: Tony Lindgren ---

[PATCH v2 1/6] v4l: subdev: Generic ioctl support

2011-02-14 Thread Laurent Pinchart
Instead of returning an error when receiving an ioctl call with an unsupported command, forward the call to the subdev core::ioctl handler. Signed-off-by: Laurent Pinchart --- Documentation/video4linux/v4l2-framework.txt |5 + drivers/media/video/v4l2-subdev.c|2 +- 2 fil

[PATCH v6 02/10] omap3: Remove unusued ISP CBUFF resource

2011-02-14 Thread Laurent Pinchart
From: Sergio Aguirre The ISP CBUFF module isn't use, its resource isn't needed. Signed-off-by: Sergio Aguirre Acked-by: Laurent Pinchart Acked-by: Tony Lindgren --- arch/arm/mach-omap2/devices.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/

[PATCH v6 01/10] ARM: OMAP3: Update Camera ISP definitions for OMAP3630

2011-02-14 Thread Laurent Pinchart
From: Tuukka Toivonen Add new/changed base address definitions and resources for OMAP3630 ISP. The OMAP3430 CSI2PHY block is same as the OMAP3630 CSIPHY2 block. But the later name is chosen as it gives more symmetry to the names. Signed-off-by: Tuukka Toivonen Signed-off-by: Vimarsh Zutshi Ac

[PATCH v2 0/6] Misc V4L2 patches for the OMAP3 ISP driver

2011-02-14 Thread Laurent Pinchart
Hi everybody, Here are six miscellaneous patches to the V4L2 core that are required by the OMAP3 ISP driver. They mostly add new format codes, as well as a new subdev sensor operation. The "v4l: Add subdev sensor g_skip_frames operation" patch has been discussed on the linux-media mailing list an

[PATCH v6 10/10] omap3isp: Kconfig and Makefile

2011-02-14 Thread Laurent Pinchart
Add the OMAP3 ISP driver to the kernel build system. Signed-off-by: Laurent Pinchart --- drivers/media/video/Kconfig| 13 + drivers/media/video/Makefile |2 ++ drivers/media/video/omap3-isp/Makefile | 13 + include/linux/Kbuild

[PATCH v6 00/10] OMAP3 ISP driver

2011-02-14 Thread Laurent Pinchart
Hi everybody, Here's the sixth version of the OMAP3 ISP driver patches, updated to 2.6.38-rc4 and the latest changes in the media controller and sub-device APIs. You can find the patches in http://git.linuxtv.org/pinchartl/media.git as usual (media-0005-omap3isp). David Cohen (1): omap3isp: St

[PATCH v2 4/6] v4l: Add remaining RAW10 patterns w DPCM pixel code variants

2011-02-14 Thread Laurent Pinchart
This adds following formats: - V4L2_MBUS_FMT_SRGGB10_1X10 - V4L2_MBUS_FMT_SGBRG10_1X10 - V4L2_MBUS_FMT_SRGGB10_DPCM8_1X8 - V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8 - V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8 Signed-off-by: Sergio Aguirre Signed-off-by: Laurent Pinchart --- include/linux/v4l2-mediabus.h |7 +++

[PATCH v6 04/10] omap2: Fix camera resources for multiomap

2011-02-14 Thread Laurent Pinchart
From: Sergio Aguirre Make sure the kernel can be compiled with both OMAP2 and OMAP3 camera support linked in, and give public symbols proper omap2/omap3 prefixes. Signed-off-by: Sergio Aguirre Acked-by: Laurent Pinchart Acked-by: Tony Lindgren --- arch/arm/mach-omap2/devices.c | 25 +++

[PATCH v2 6/6] v4l: Add 12 bits bayer pixel formats

2011-02-14 Thread Laurent Pinchart
Add FCCs for the following pixel formats: - V4L2_PIX_FMT_SBGGR12 - V4L2_PIX_FMT_SGBRG12 - V4L2_PIX_FMT_SGRBG12 - V4L2_PIX_FMT_SRGGB12 Signed-off-by: Laurent Pinchart --- include/linux/videodev2.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/videodev2

[PATCH v2 3/6] v4l: Add 8-bit YUYV on 16-bit bus and SGRBG10 media bus pixel codes

2011-02-14 Thread Laurent Pinchart
Add the following media bus format code definitions: - V4L2_MBUS_FMT_SGRBG10_1X10 for 10-bit GRBG Bayer - V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 for 10-bit DPCM compressed GRBG Bayer - V4L2_MBUS_FMT_YUYV16_1X16 for 8-bit YUYV on 16-bit bus - V4L2_MBUS_FMT_UYVY16_1X16 for 8-bit UYVY on 16-bit bus - V4L2_M

[PATCH v2 2/6] v4l: Add subdev sensor g_skip_frames operation

2011-02-14 Thread Laurent Pinchart
Some buggy sensors generate corrupt frames when the stream is started. This new operation return the number of corrupt frames to skip when starting the stream. Signed-off-by: Laurent Pinchart --- include/media/v4l2-subdev.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --gi

[PATCH v7 05/11] v4l: Create v4l2 subdev file handle structure

2011-02-14 Thread Laurent Pinchart
From: Stanimir Varbanov Used for storing subdev information per file handle and hold V4L2 file handle. Signed-off-by: Stanimir Varbanov Signed-off-by: Antti Koskipaa Signed-off-by: Laurent Pinchart --- drivers/media/Kconfig |9 drivers/media/video/v4l2-subdev.c | 85 ++

[PATCH v7 06/11] v4l: subdev: Add new file operations

2011-02-14 Thread Laurent Pinchart
V4L2 sub-devices store pad formats and crop settings in the file handle. To let drivers initialize those settings properly, add an open operation that is called when the subdev is opened as well as a corresponding close operation. Signed-off-by: Laurent Pinchart --- drivers/media/video/v4l2-subd

[PATCH v7 03/11] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8

2011-02-14 Thread Laurent Pinchart
For consistency with the V4L2_MBUS_FMT_Y10_1X10 format. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m001.c|2 +- drivers/media/video/mt9v022.c|4 ++-- drivers/media/video/ov6650.c | 10 +- drivers/media/video/sh_mobile_csi2.c |6 +++---

[PATCH v7 02/11] v4l: Replace enums with fixed-sized fields in public structure

2011-02-14 Thread Laurent Pinchart
The v4l2_mbus_framefmt structure will be part of the public userspace API and used (albeit indirectly) as an ioctl argument. As such, its size must be fixed across userspace ABIs. Replace the v4l2_field and v4l2_colorspace enums by __u32 fields and add padding for future enhancements. Signed-off-

[PATCH v7 00/11] Sub-device pad-level operations

2011-02-14 Thread Laurent Pinchart
Hi everybody, Here's the seventh version of the sub-device pad-level operations patches. The patches are just rebased on top of 2.6.38-rc4. Antti Koskipaa (1): v4l: v4l2_subdev userspace crop API Laurent Pinchart (9): v4l: Move the media/v4l2-mediabus.h header to include/linux v4l: Replace

[PATCH v9 01/12] media: Media device node support

2011-02-14 Thread Laurent Pinchart
The media_devnode structure provides support for registering and unregistering character devices using a dynamic major number. Reference counting is handled internally, making device drivers easier to write without having to solve the open/disconnect race condition issue over and over again. The c

[PATCH v9 00/12] Media controller (core and V4L2)

2011-02-14 Thread Laurent Pinchart
Hi everybody, Here is the ninth version of the media controller core and V4L2 patches. Quick reminder for those who missed the previous version. let me quote the documentation (Documentation/DocBook/v4l/media-controller.xml). "Discovering a [media] device internal topology, and configuring it at

[PATCH v7 1/6] v4l: Share code between video_usercopy and video_ioctl2

2011-02-14 Thread Laurent Pinchart
The two functions are mostly identical. They handle the copy_from_user and copy_to_user operations related with V4L2 ioctls and call the real ioctl handler. Create a __video_usercopy function that implements the core of video_usercopy and video_ioctl2, and call that function from both. Signed-off

[PATCH v7 3/6] v4l: subdev: Add device node support

2011-02-14 Thread Laurent Pinchart
Create a device node named subdevX for every registered subdev. As the device node is registered before the subdev core::s_config function is called, return -EGAIN on open until initialization completes. Signed-off-by: Laurent Pinchart Signed-off-by: Vimarsh Zutshi --- Documentation/video4linu

[PATCH v7 6/6] v4l: subdev: Events support

2011-02-14 Thread Laurent Pinchart
From: Sakari Ailus Provide v4l2_subdevs with v4l2_event support. Subdev drivers only need very little to support events. Signed-off-by: Sakari Ailus Signed-off-by: David Cohen Signed-off-by: Laurent Pinchart --- Documentation/video4linux/v4l2-framework.txt | 18 ++ drivers/media/video/

[PATCH v7 5/6] v4l: subdev: Control ioctls support

2011-02-14 Thread Laurent Pinchart
Pass the control-related ioctls to the subdev driver through the control framework. Signed-off-by: Laurent Pinchart --- Documentation/video4linux/v4l2-framework.txt | 16 drivers/media/video/v4l2-subdev.c| 25 + 2 files changed, 41 inserti

[PATCH v7 2/6] v4l: subdev: Don't require core operations

2011-02-14 Thread Laurent Pinchart
There's no reason to require subdevices to implement the core operations. Remove the check for non-NULL core operations when initializing the subdev. Signed-off-by: Laurent Pinchart --- include/media/v4l2-subdev.h |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/include

[PATCH v7 0/6] V4L2 subdev userspace API

2011-02-14 Thread Laurent Pinchart
Hi everybody, Here's the seventh version of the V4L2 subdev userspace API patches. The patches have been rebased on top of 2.6.38-rc4. You can find them as usual in http://git.linuxtv.org/pinchartl/media.git (media-0001-subdev-devnode branch). Laurent Pinchart (5): v4l: Share code between vid

[PATCH v7 4/6] v4l: subdev: Uninline the v4l2_subdev_init function

2011-02-14 Thread Laurent Pinchart
The function isn't small or performance sensitive enough to be inlined. Signed-off-by: Laurent Pinchart --- drivers/media/video/v4l2-subdev.c | 41 +--- include/media/v4l2-subdev.h | 15 +--- 2 files changed, 30 insertions(+), 26 deletions(-) di

Re: [PATCH v8 07/12] media: Entities, pads and links enumeration

2011-02-14 Thread Laurent Pinchart
Hi Sylwester, On Sunday 13 February 2011 22:59:44 Sylwester Nawrocki wrote: > On 2011-01-27 13:30, Laurent Pinchart wrote: > > Create the following two ioctls and implement them at the media device > > level to enumerate entities, pads and links. > > > > - MEDIA_IOC_ENUM_ENTITIES: Enumerate entit

Re: [GIT FIXES for 2.6.38] Fix cx23885 and cx25840 regressions

2011-02-14 Thread Andy Walls
Jean Delvare wrote: >> Andy Walls (2): >> cx23885: Revert "Check for slave nack on all transactions" > >Thanks for fixing my mistakes! > Jean, No problem. I was the one who actually asked for your patch to go in without checking the hardware behavior carefully. So I jointly own the

Re: [PATCH] Technisat AirStar TeleStick 2

2011-02-14 Thread Lukas Max Fisch
Hello list, this is a revised patch since &dib0700_usb_id_table[] must be 74 instead of 69! This patch works for me as you can see in the dmesg output: [ 104.667079] dvb-usb: found a 'TechniSat AirStar TeleStick 2' in cold state, will try to load a firmware [ 104.671587] dvb-usb: downloading fir

Support for beetel FUN tv tuner card

2011-02-14 Thread Sriram Chadalavada
Hi everyone,  I am trying to get beetel (Indian OEM) FUN USB tv tuner card to work on Ubuntu 10.04. The vendor is not listed on the supported hardware wikipage. I am curious if the there is any similar supported hardware. The Vendor/Product ID from lsusb is 1f71:3306. Do these look

No data from tuner over PCI bridge adapter (Cablestar HD 2 / mantis / PEX 8112)

2011-02-14 Thread Dennis Kurten
Hello, This card (technisat cablestar hd 2 dvb-c) works fine when plugged into a native PCI slot. When I try it with a PCI-adapter I intend to use in mITX-builds there doesn't seem to be any data coming in through the tuner. The adapter is a transparent bridge (with a PEX 8112 chip) that goes into

  1   2   >