Re: [patch] Fix AF9015 Dual tuner i2c write failures

2011-04-01 Thread adq
2011/3/18 Antti Palosaari : > On 03/08/2011 12:12 AM, adq wrote: >> >> Ah well, so its definitely /not/ conflicting i2c writes that cause the >> tuner problem as it has finally just died. The festats for a "crashed" >> tuner are: >>   Sig: 50933  SNR: 50  BER: 0  UBLK: 5370554  Stat: 0x01 [SIG ] >>

[PATCH] s2255drv: atomic submit urb in completion handler

2011-04-01 Thread Pete Eberlein
An usb_submit_urb should be atomic in a completion handler. This fixes "BUG: scheduling while atomic" messages. Signed-off-by: Pete Eberlein diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index f5a46c4..85c3158 100644 --- a/drivers/media/video/s2255drv.c +++ b/drive

Typo in dib0700_devices.c

2011-04-01 Thread Dr. David Alan Gilbert
Hi, sparse lead me to what looks like a typo in dib0700_devices.c: drivers/media/dvb/dvb-usb/dib0700_devices.c:2160:18: warning: Initializer entry defined twice drivers/media/dvb/dvb-usb/dib0700_devices.c:2165:18: also defined here 2160.agc1_pt1 = 0, .

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Andres Salomon
On Fri, 1 Apr 2011 17:58:44 -0600 Grant Likely wrote: > On Fri, Apr 1, 2011 at 5:52 PM, Samuel Ortiz > wrote: > > On Fri, Apr 01, 2011 at 11:56:35AM -0600, Grant Likely wrote: > >> On Fri, Apr 1, 2011 at 11:47 AM, Andres Salomon > >> wrote: > >> > On Fri, 1 Apr 2011 13:20:31 +0200 > >> > Samuel

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Grant Likely
On Fri, Apr 1, 2011 at 5:52 PM, Samuel Ortiz wrote: > On Fri, Apr 01, 2011 at 11:56:35AM -0600, Grant Likely wrote: >> On Fri, Apr 1, 2011 at 11:47 AM, Andres Salomon wrote: >> > On Fri, 1 Apr 2011 13:20:31 +0200 >> > Samuel Ortiz wrote: >> > >> >> Hi Grant, >> >> >> >> On Thu, Mar 31, 2011 at 0

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Samuel Ortiz
On Fri, Apr 01, 2011 at 11:56:35AM -0600, Grant Likely wrote: > On Fri, Apr 1, 2011 at 11:47 AM, Andres Salomon wrote: > > On Fri, 1 Apr 2011 13:20:31 +0200 > > Samuel Ortiz wrote: > > > >> Hi Grant, > >> > >> On Thu, Mar 31, 2011 at 05:05:22PM -0600, Grant Likely wrote: > > [...] > >> > Gah.  No

Update em28xx driver for the Gadmei USB 382 F tv tuner card?

2011-04-01 Thread Vishal Rao
On 2 April 2011 04:16, Vishal Rao wrote: > Hello, > > I just got a Gadmei 382 model tv tuner card and tried it with Ubuntu > 11.04 beta 1 with no luck. > > Grepping through the em28xx driver sources I see potential areas where > this device can be added: > > vishal@thunderbird:/media/data/SRC/linu

Updat em28xx driver for the Gadmei USB 382 F tv tuner card?

2011-04-01 Thread Vishal Rao
Hello, I just got a Gadmei 382 model tv tuner card and tried it with Ubuntu 11.04 beta 1 with no luck. Grepping through the em28xx driver sources I see potential areas where this device can be added: vishal@thunderbird:/media/data/SRC/linux-media-2011-04-01/drivers/media/video/em28xx$ grep -i ga

[cron job] v4l-dvb daily build: ERRORS

2011-04-01 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:Fri Apr 1 19:00:36 CEST 2011 git hash:28df73703e738d8ae7a958350f74b08b2e9fe9ed gcc version: i686-linux-gcc (GCC) 4.5

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Samuel Ortiz
On Fri, Apr 01, 2011 at 10:47:56AM -0700, Andres Salomon wrote: > On Fri, 1 Apr 2011 13:20:31 +0200 > Samuel Ortiz wrote: > > > Hi Grant, > > > > On Thu, Mar 31, 2011 at 05:05:22PM -0600, Grant Likely wrote: > [...] > > > Gah. Not all devices instantiated via mfd will be an mfd device, > > > wh

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Grant Likely
On Fri, Apr 1, 2011 at 11:56 AM, Grant Likely wrote: > On Fri, Apr 1, 2011 at 11:47 AM, Andres Salomon wrote: >> On Fri, 1 Apr 2011 13:20:31 +0200 >> Samuel Ortiz wrote: >> >>> Hi Grant, >>> >>> On Thu, Mar 31, 2011 at 05:05:22PM -0600, Grant Likely wrote: >> [...] >>> > Gah.  Not all devices in

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Grant Likely
On Fri, Apr 1, 2011 at 11:47 AM, Andres Salomon wrote: > On Fri, 1 Apr 2011 13:20:31 +0200 > Samuel Ortiz wrote: > >> Hi Grant, >> >> On Thu, Mar 31, 2011 at 05:05:22PM -0600, Grant Likely wrote: > [...] >> > Gah.  Not all devices instantiated via mfd will be an mfd device, >> > which means that

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Andres Salomon
On Fri, 1 Apr 2011 13:20:31 +0200 Samuel Ortiz wrote: > Hi Grant, > > On Thu, Mar 31, 2011 at 05:05:22PM -0600, Grant Likely wrote: [...] > > Gah. Not all devices instantiated via mfd will be an mfd device, > > which means that the driver may very well expect an *entirely > > different* platfor

[PATCH] v4l: make sure drivers supply a zeroed struct v4l2_subdev

2011-04-01 Thread Herton Ronaldo Krzesinski
Some v4l drivers currently don't initialize their struct v4l2_subdev with zeros, and this is a problem since some of the v4l2 code expects this. One example is the addition of internal_ops in commit 45f6f84, after that we are at risk of random oopses with these drivers when code in v4l2_device_regi

RE: [RFC] New controls for codec devices

2011-04-01 Thread Kamil Debski
> From: Laurent Pinchart [mailto:laurent.pinch...@ideasonboard.com] > > Hi Kamil, Hi Laurent, > > Thanks for the RC. Here are some comments (more might come later when I'll > get > a better understanding of some MPEG4 and H264 concepts :-)). Thank you for your comments. I have answered them be

Re: [PATCH] v4l: subdev: initialize sd->internal_ops in v4l2_subdev_init

2011-04-01 Thread Herton Ronaldo Krzesinski
On Fri, Apr 01, 2011 at 05:05:27PM +0200, Hans Verkuil wrote: > On Friday, April 01, 2011 16:24:17 Herton Ronaldo Krzesinski wrote: > > Many v4l drivers currently don't initialize their struct v4l2_subdev > > with zeros, so since the addition of internal_ops in commit 45f6f84, we > > are at risk of

Re: [PATCH] v4l: subdev: initialize sd->internal_ops in v4l2_subdev_init

2011-04-01 Thread Hans Verkuil
On Friday, April 01, 2011 16:24:17 Herton Ronaldo Krzesinski wrote: > Many v4l drivers currently don't initialize their struct v4l2_subdev > with zeros, so since the addition of internal_ops in commit 45f6f84, we > are at risk of random oopses when code in v4l2_device_register_subdev > tries to der

Re: Random crashes with v4l2_device_register_subdev

2011-04-01 Thread Andy Walls
Herton Ronaldo Krzesinski wrote: >Hi, > >Recently I received a report about crashes with mxb v4l driver >(https://bugs.launchpad.net/ubuntu/+source/linux/+bug/745213), there >are >two slightly different reported crashes which I paste here: > >1) BootDmesg.txt crash: > >[ 21.210232] general prot

[PATCH] v4l: subdev: initialize sd->internal_ops in v4l2_subdev_init

2011-04-01 Thread Herton Ronaldo Krzesinski
Many v4l drivers currently don't initialize their struct v4l2_subdev with zeros, so since the addition of internal_ops in commit 45f6f84, we are at risk of random oopses when code in v4l2_device_register_subdev tries to dereference sd->internal_ops->*, as can be shown by the report at http://bugs.l

Random crashes with v4l2_device_register_subdev

2011-04-01 Thread Herton Ronaldo Krzesinski
Hi, Recently I received a report about crashes with mxb v4l driver (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/745213), there are two slightly different reported crashes which I paste here: 1) BootDmesg.txt crash: [ 21.210232] general protection fault: [#1] SMP [ 21.210292] l

[PATCH/RFC 2/4 v2] V4L: add videobuf2 helper functions to support multi-size video-buffers

2011-04-01 Thread Guennadi Liakhovetski
This patch extends the videobuf2 framework with new helper functions and modifies existing ones to support multi-size video-buffers. Signed-off-by: Guennadi Liakhovetski --- v2: fix offset calculation in __setup_offsets() drivers/media/video/videobuf2-core.c | 195

Re: [PATCH 04/12] mm: alloc_contig_freed_pages() added

2011-04-01 Thread Dave Hansen
On Fri, 2011-04-01 at 00:51 +0200, Michal Nazarewicz wrote: > On Fri, 01 Apr 2011 00:26:51 +0200, Dave Hansen > wrote: > >> Bug in the above place does not mean that we could not allocate > >> memory. It means caller is broken. > > > > Could you explain that a bit? > > > > Is this a case wher

Re: [PATCH 07/19] timberdale: mfd_cell is now implicitly available to drivers

2011-04-01 Thread Samuel Ortiz
Hi Grant, On Thu, Mar 31, 2011 at 05:05:22PM -0600, Grant Likely wrote: > On Wed, Feb 02, 2011 at 08:08:12PM -0800, Andres Salomon wrote: > > > > No need to explicitly set the cell's platform_data/data_size. > > > > In this case, move the various platform_data pointers > > to driver_data. All o

Re: [RFC] New controls for codec devices

2011-04-01 Thread Laurent Pinchart
Hi Kamil, Thanks for the RC. Here are some comments (more might come later when I'll get a better understanding of some MPEG4 and H264 concepts :-)). On Tuesday 29 March 2011 11:48:03 Kamil Debski wrote: > Hi, > > I would like to propose a new set of controls for codec devices. By codec > devic

RE: [RFC/PATCH 0/2] FrameBuffer emulator for V4L2/VideoBuf2

2011-04-01 Thread Marek Szyprowski
Hello, On Friday, April 01, 2011 10:49 AM Jonghun Han wrote: > On Wednesday, March 30, 2011 4:01 PM Marek Szyprowski wrote: > > Hello, > > > > On V4L2 brainstorming meeting in Warsaw we discussed the need of a > > framebuffer userspace interface for video output devices. Such > > framebuffer inte

RE: [PATCH 1/2] media: vb2: add frame buffer emulator for video output devices

2011-04-01 Thread Marek Szyprowski
Hello, On Friday, April 01, 2011 10:36 AM Jonghun Han wrote: > On Wednesday, March 30, 2011 4:01 PM Marek Szyprowski wrote: > > > > This patch adds generic frame buffer emulator for any video output device > > that uses videobuf2 framework. This emulator assumes that the driver is > > capable of

RE: [RFC/PATCH 0/2] FrameBuffer emulator for V4L2/VideoBuf2

2011-04-01 Thread Jonghun Han
Hi Marek, On Wednesday, March 30, 2011 4:01 PM Marek Szyprowski wrote: > Hello, > > On V4L2 brainstorming meeting in Warsaw we discussed the need of a > framebuffer userspace interface for video output devices. Such > framebuffer interface is aimed mainly for legacy applications and/or > interop

RE: [PATCH 1/2] media: vb2: add frame buffer emulator for video output devices

2011-04-01 Thread Jonghun Han
Hi Marek, Here is my comments. On Wednesday, March 30, 2011 4:01 PM Marek Szyprowski wrote: > > This patch adds generic frame buffer emulator for any video output device > that uses videobuf2 framework. This emulator assumes that the driver is > capable of working in single-buffering mode and u

[PATCH/RFC 4/4] V4L: sh_mobile_ceu_camera: support multi-size video-buffers

2011-04-01 Thread Guennadi Liakhovetski
With this patch it is possible to prequeue buffers of different sizes in the driver and switch between them by just stopping streaming, setting a new format, queuing the suitable buffers and re-starting the streaming escaping the need to allocate buffers on this time-critical path. Signed-off-by:

[PATCH/RFC 3/4] V4L: soc-camera: add support for new multi-size video-buffer ioctl()s

2011-04-01 Thread Guennadi Liakhovetski
Signed-off-by: Guennadi Liakhovetski --- drivers/media/video/soc_camera.c | 46 - 1 files changed, 44 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 11f0f1e..6a41e89 100644 --- a/drivers/m

[PATCH/RFC 2/4] V4L: add videobuf2 helper functions to support multi-size video-buffers

2011-04-01 Thread Guennadi Liakhovetski
This patch extends the videobuf2 framework with new helper functions and modifies existing ones to support multi-size video-buffers. Signed-off-by: Guennadi Liakhovetski --- drivers/media/video/videobuf2-core.c | 184 ++ include/media/videobuf2-core.h | 1

[PATCH/RFC 1/4] V4L: add three new ioctl()s for multi-size videobuffer management

2011-04-01 Thread Guennadi Liakhovetski
A possibility to preallocate and initialise buffers of different sizes in V4L2 is required for an efficient implementation of asnapshot mode. This patch adds three new ioctl()s: VIDIOC_CREATE_BUFS, VIDIOC_DESTROY_BUFS, and VIDIOC_SUBMIT_BUF and defines respective data structures. Signed-off-by: Gu

[PATCH/RFC 0/4] V4L: new ioctl()s to support multi-sized video-buffers

2011-04-01 Thread Guennadi Liakhovetski
Hi all As discussed at the last V4L2 meeting in Warsaw, one of the prerequisites to support fast switching between different image formats is an ability to preallocate buffers of different sizes and handle them over to the driver in advance. This avoids the need to allocate buffers at the time