Re: [PATCH] media: fix truncated entity specification

2011-11-15 Thread Clemens Ladisch
Laurent Pinchart wrote: > > > On Saturday 05 November 2011 22:42:01 Clemens Ladisch wrote: > > > > When enumerating an entity, assign the entire entity specification > > > > instead of only the first two words. (This requires giving the > > > > specification union a name.) > > Your patch looks go

Re: [PATCH 0/9] as3645a: set of fixes up

2011-11-15 Thread Sakari Ailus
On Tue, Nov 15, 2011 at 07:49:52PM +0200, Andy Shevchenko wrote: > This series incorporates Sakari's comments and couple of fixes from my version > of the driver. > > Andy Shevchenko (9): > as3645a: mention lm3555 as a clone of that chip > as3645a: print vendor and revision of the chip > as3

Re: [PATCH v4 0/2] as3645a flash driver

2011-11-15 Thread Sakari Ailus
On Tue, Nov 15, 2011 at 05:21:03PM +0100, Laurent Pinchart wrote: > Hi everybody, > > v3 was missing a small bug fix (setting ctrl->cur.val to 0 before adding bits > in the fault control read code). v4 fixes that (and also includes a cosmetic > fix). > > Laurent Pinchart (2): > v4l: Add over-cu

Re: AF9015 Dual tuner i2c write failures

2011-11-15 Thread Tim Draper
On 15 November 2011 22:35, Tim Draper wrote: > On 15 November 2011 21:48, Malcolm Priestley wrote: >> On Tue, 2011-11-15 at 18:53 +, Tim Draper wrote: >>> > Are you sure that your system hasn't rolled to 2.6.38-13-generic >>> > yesterday or today even? >>> > >>> still on 2.6.38-12-generic. i'

[PATCH 5/5] staging: lirc_serial: Do not assume error codes returned by request_irq()

2011-11-15 Thread Ben Hutchings
lirc_serial_probe() must fail if request_irq() returns an error, even if it isn't EBUSY or EINVAL, Signed-off-by: Ben Hutchings --- drivers/staging/media/lirc/lirc_serial.c | 21 + 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/staging/media/lirc/li

[PATCH 4/5] staging: lirc_serial: Fix bogus error codes

2011-11-15 Thread Ben Hutchings
Device not found? ENODEV, not EINVAL. Write to read-only device? EPERM, not EBADF. Invalid argument? EINVAL, not ENOSYS. Unsupported ioctl? ENOIOCTLCMD, not ENOSYS. Another function returned an error code? Use that, don't replace it. Signed-off-by: Ben Hutchings --- drivers/staging/media/li

[PATCH 3/5] staging: lirc_serial: Fix deadlock on resume failure

2011-11-15 Thread Ben Hutchings
A resume function cannot remove the device it is resuming! Signed-off-by: Ben Hutchings --- I haven't seen any report of this deadlock, but it seems pretty obvious. Ben. drivers/staging/media/lirc/lirc_serial.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 2/5] staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()

2011-11-15 Thread Ben Hutchings
Failure to allocate the I/O region leaves the IRQ allocated. A later failure leaves them both allocated. Reported-by: Torsten Crass References: http://bugs.debian.org/645811 Signed-off-by: Ben Hutchings --- drivers/staging/media/lirc/lirc_serial.c | 19 --- 1 files changed, 16

[PATCH 1/5] staging: lirc_serial: Fix init/exit order

2011-11-15 Thread Ben Hutchings
Currently the module init function registers a platform_device and only then allocates its IRQ and I/O region. This allows allocation to race with the device's suspend() function. Instead, allocate resources in the platform driver's probe() function and free them in the remove() function. The mo

IR disappearing while ATSC decoder in use

2011-11-15 Thread Kyle Strickland
Hi folks, I'm messing around trying to get my Kworld PC150-U ATSC hybrid tuner card (17de:a134) to work, and I think I'm almost done.  I've been able to get all of the functionality to work on its own: remote control, FM, NTSC, composite input, and ATSC, but for some reason, whenever I use the ATS

Re: Using MT9P031 digital sensor

2011-11-15 Thread Laurent Pinchart
Hi Gary, On Monday 14 November 2011 12:42:54 Gary Thomas wrote: > On 2011-11-11 07:26, Laurent Pinchart wrote: > > On Wednesday 09 November 2011 17:24:26 Gary Thomas wrote: > >> On 2011-11-09 09:18, Laurent Pinchart wrote: > >>> On Wednesday 09 November 2011 12:01:34 Gary Thomas wrote: > On 2

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Laurent Pinchart
Hi Andy, On Tuesday 15 November 2011 17:55:55 Andy Shevchenko wrote: > On Tue, 2011-11-15 at 14:12 +0100, Laurent Pinchart wrote: > > > > +struct as3645a { > > > > + struct v4l2_subdev subdev; > > > > + struct as3645a_platform_data *platform_data; > > > > + > > > > + struct mutex

Re: [PATCH] media: fix truncated entity specification

2011-11-15 Thread Laurent Pinchart
Hi Clemens, On Tuesday 15 November 2011 14:02:21 Clemens Ladisch wrote: > Laurent Pinchart wrote: > > On Saturday 05 November 2011 22:42:01 Clemens Ladisch wrote: > > > When enumerating an entity, assign the entire entity specification > > > instead of only the first two words. (This requires giv

Re: AF9015 Dual tuner i2c write failures

2011-11-15 Thread Tim Draper
On 15 November 2011 21:48, Malcolm Priestley wrote: > On Tue, 2011-11-15 at 18:53 +, Tim Draper wrote: >> > Are you sure that your system hasn't rolled to 2.6.38-13-generic >> > yesterday or today even? >> > >> still on 2.6.38-12-generic. i've ensured auto-updates are disabled so >> it should

Re: [RFCv1 PATCH 1/3] V4L2: Add per-device-node capabilities

2011-11-15 Thread Sylwester Nawrocki
Hello Hans, On 11/07/2011 11:37 AM, Hans Verkuil wrote: > From: Hans Verkuil > > If V4L2_CAP_DEVICE_CAPS is set, then the new device_caps field is filled with > the capabilities of the opened device node. > > The capabilities field traditionally contains the capabilities of the whole > device. E

Re: AF9015 Dual tuner i2c write failures

2011-11-15 Thread Tim Draper
> Are you sure that your system hasn't rolled to 2.6.38-13-generic > yesterday or today even? > still on 2.6.38-12-generic. i've ensured auto-updates are disabled so it should be in the same state as it when it was working. worth re-applying the update/patch? i presume i just need to make && make i

cron job: media_tree daily build: ERRORS

2011-11-15 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 Nov 15 19:00:14 CET 2011 git hash:e9eb0dadba932940f721f9d27544a7818b2fa1c5 gcc version: i686-linux-gcc (GCC

[PATCH 9/9] as3645a: use the same timeout for hw and sw strobes

2011-11-15 Thread Andy Shevchenko
It seems the timeout value couldn't be different for either external or software strobe (accordingly to as3645a datasheet, table 6). This patch doesn't prevent to use software watchdog, because it will use another mechanism to stop strobing (i.e. low "out" pin). Signed-off-by: Andy Shevchenko --

[PATCH 8/9] as3645a: use pr_err macro instead of printk KERN_ERR

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index 774f797..5f8fa68 100644 --- a/drivers/media/video/as3645a.c +++ b/drivers/media/video/as36

[PATCH 3/9] as3645a: remove unused code

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index 8882a14..5c7e42f 100644 --- a/drivers/media/video/as3645a.c +++ b/drivers/media/video/as

[PATCH 7/9] as3645a: use struct dev_pm_ops

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index 9aebaa2..774f797 100644 --- a/drivers/media/video/as3645a.c +++ b/drivers/med

[PATCH 6/9] as3645a: free resources in case of error properly

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index 541f8bc..9aebaa2 100644 --- a/drivers/media/video/as3645a.c +++ b/d

[PATCH 5/9] as3645a: move limits to the platform_data

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c | 12 ++-- include/media/as3645a.h | 32 +--- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index 108bc0f

[PATCH 4/9] as3645a: No error, no message.

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index 5c7e42f..108bc0f 100644 --- a/drivers/media/video/as3645a.c +++ b/drivers/media/video/as3

[PATCH 0/9] as3645a: set of fixes up

2011-11-15 Thread Andy Shevchenko
This series incorporates Sakari's comments and couple of fixes from my version of the driver. Andy Shevchenko (9): as3645a: mention lm3555 as a clone of that chip as3645a: print vendor and revision of the chip as3645a: remove unused code as3645a: No error, no message. as3645a: move limit

[PATCH 2/9] as3645a: print vendor and revision of the chip

2011-11-15 Thread Andy Shevchenko
The as3645a_registered() is used to detect connected chip. It would be nice to print the detected value every time we load the module. The "Vendor" is probably better word to use there. For example, lm3555 (NSC) is slightly different to as3645a. Signed-off-by: Andy Shevchenko --- drivers/media/v

[PATCH 1/9] as3645a: mention lm3555 as a clone of that chip

2011-11-15 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/media/video/as3645a.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c index a9f857f..ef1226d 100644 --- a/drivers/media/video/as3645a.c +++ b/drivers/media/video/as36

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Andy Shevchenko
On Tue, 2011-11-15 at 14:12 +0100, Laurent Pinchart wrote: > > > +struct as3645a { > > > + struct v4l2_subdev subdev; > > > + struct as3645a_platform_data *platform_data; > > > + > > > + struct mutex power_lock; > > > + int power_count; > > > + > > > + /* Static parameters */ > > > + u8 vref; > >

[PATCH v4 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Laurent Pinchart
This patch adds the driver for the as3645a LED flash controller. This controller supports a high power led in flash and torch modes and an indicator light, sometimes also called privacy light. Signed-off-by: Laurent Pinchart Signed-off-by: Nayden Kanchev Signed-off-by: Tuukka Toivonen Signed-of

[PATCH v4 0/2] as3645a flash driver

2011-11-15 Thread Laurent Pinchart
Hi everybody, v3 was missing a small bug fix (setting ctrl->cur.val to 0 before adding bits in the fault control read code). v4 fixes that (and also includes a cosmetic fix). Laurent Pinchart (2): v4l: Add over-current and indicator flash fault bits as3645a: Add driver for LED flash controlle

[PATCH v4 1/2] v4l: Add over-current and indicator flash fault bits

2011-11-15 Thread Laurent Pinchart
Flash controllers can report over-current and indicator fault conditions. Define flash fault control bits for them. Signed-off-by: Laurent Pinchart Acked-by: Andy Shevchenko --- Documentation/DocBook/media/v4l/controls.xml | 10 ++ include/linux/videodev2.h|2 +

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Heippa, > On Tuesday 15 November 2011 16:28:06 Sakari Ailus wrote: >> Laurent Pinchart wrote: >>> On Monday 14 November 2011 10:34:57 Sakari Ailus wrote: > > [snip] > > + if (rval & ~AS_FAULT_INFO_INDICATOR_LED) > + dev_dbg(&client->dev, "No

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Laurent Pinchart
Hi Sakari, On Tuesday 15 November 2011 16:28:06 Sakari Ailus wrote: > Laurent Pinchart wrote: > > On Monday 14 November 2011 10:34:57 Sakari Ailus wrote: [snip] > >>> + if (rval & ~AS_FAULT_INFO_INDICATOR_LED) > >>> + dev_dbg(&client->dev, "No faults, nice\n"); > >>> + > >>> + return rva

[PATCH v3 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Laurent Pinchart
This patch adds the driver for the as3645a LED flash controller. This controller supports a high power led in flash and torch modes and an indicator light, sometimes also called privacy light. Signed-off-by: Laurent Pinchart Signed-off-by: Nayden Kanchev Signed-off-by: Tuukka Toivonen Signed-of

[PATCH v3 1/2] v4l: Add over-current and indicator flash fault bits

2011-11-15 Thread Laurent Pinchart
Flash controllers can report over-current and indicator fault conditions. Define flash fault control bits for them. Signed-off-by: Laurent Pinchart Acked-by: Andy Shevchenko --- Documentation/DocBook/media/v4l/controls.xml | 10 ++ include/linux/videodev2.h|2 +

[PATCH v3 0/2] as3645a flash driver

2011-11-15 Thread Laurent Pinchart
Hi everybody, Here's the third version of the as3645a flash controller driver. Compared to v2, it addresses most of Sakari's comments. I've left an unneeded default case in a switch statement to avoid gcc complaining about uninitialized variables, and I haven't removed the control values cache fr

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Hi Laurent, > On Monday 14 November 2011 10:34:57 Sakari Ailus wrote: >> Hi Laurent, >> >> Thanks for the patch!! I have a few comments below. > > Thanks for the review. Thanks for the reply to my review. :-) ... >>> +struct as3645a { >>> + struct v4l2_s

RE: [PATCH v2 1/5] davinci: dm644x: remove the macros from the header to move to c file

2011-11-15 Thread Hadli, Manjunath
Sergei, On Tue, Nov 15, 2011 at 16:10:16, Sergei Shtylyov wrote: > Hello. > > On 14-11-2011 19:09, Manjunath Hadli wrote: > > > move the register base addresses and offsets used only by dm644x > > platform file from platform header dm644x.h to dm644x.c as they are > > used only in the c file.

RE: [PATCH v2 5/5] davinci: delete individual platform header files and use a common header

2011-11-15 Thread Hadli, Manjunath
Sergei, On Tue, Nov 15, 2011 at 16:24:49, Sergei Shtylyov wrote: > Hello. > > On 14-11-2011 19:09, Manjunath Hadli wrote: > > > include davinci_common.h file in files using the platform header file > > for dm355, dm365, dm644x and dm646x and delete the individual platform > > header files. >

RE: [PATCH v2 4/5] davinci: create new common platform header for davinci

2011-11-15 Thread Hadli, Manjunath
Sergei, On Tue, Nov 15, 2011 at 15:33:14, Sergei Shtylyov wrote: > Hello. > > On 14-11-2011 19:09, Manjunath Hadli wrote: > > > remove the code from individual platform header files for dm365, > > dm355, dm644x and dm646x and consolidate it into a single and common > > header file davinci_comm

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Laurent Pinchart
Hi Sakari, On Monday 14 November 2011 10:34:57 Sakari Ailus wrote: > Hi Laurent, > > Thanks for the patch!! I have a few comments below. Thanks for the review. > Laurent Pinchart wrote: > > This patch adds the driver for the as3645a LED flash controller. This > > controller supports a high powe

Re: [PATCH] media: fix truncated entity specification

2011-11-15 Thread Clemens Ladisch
Laurent Pinchart wrote: > On Saturday 05 November 2011 22:42:01 Clemens Ladisch wrote: > > When enumerating an entity, assign the entire entity specification > > instead of only the first two words. (This requires giving the > > specification union a name.) > > What about this (untested) simpler

Re: [PATCH v2 2/2] as3645a: Add driver for LED flash controller

2011-11-15 Thread Andy Shevchenko
On Mon, 2011-11-14 at 11:34 +0200, Sakari Ailus wrote: > Hi Laurent, > > Thanks for the patch!! I have a few comments below. Most of your comments is about to be addressed by my patches. Please, wait a bit, And I send my series as I promised. -- Andy Shevchenko Intel Finland Oy -- To unsubsc

Re: PCTV 290e and 520e

2011-11-15 Thread Antti Palosaari
On 11/15/2011 01:14 PM, Claus Olesen wrote: PCTV 290e usb stick - locking issue === The locking issue with the 290e is not resolved as of yesterdays auto update to kernel 3.1.1-1.fc16.i686.PAE on Fedora 16. The symptoms are that no usb stick is usable unless the em

PCTV 290e and 520e

2011-11-15 Thread Claus Olesen
PCTV 290e usb stick - locking issue === The locking issue with the 290e is not resolved as of yesterdays auto update to kernel 3.1.1-1.fc16.i686.PAE on Fedora 16. The symptoms are that no usb stick is usable unless the em28xx_dvb module is manually unloaded and the 2

Re: [PATCH v2 5/5] davinci: delete individual platform header files and use a common header

2011-11-15 Thread Sergei Shtylyov
Hello. On 14-11-2011 19:09, Manjunath Hadli wrote: include davinci_common.h file in files using the platform header file for dm355, dm365, dm644x and dm646x and delete the individual platform header files. Signed-off-by: Manjunath Hadli [...] diff --git a/drivers/media/video/davinci/vpif.

Re: [PATCH v2 1/5] davinci: dm644x: remove the macros from the header to move to c file

2011-11-15 Thread Sergei Shtylyov
Hello. On 14-11-2011 19:09, Manjunath Hadli wrote: move the register base addresses and offsets used only by dm644x platform file from platform header dm644x.h to dm644x.c as they are used only in the c file. Signed-off-by: Manjunath Hadli --- arch/arm/mach-davinci/dm644x.c |

Re: [PATCH v2 4/5] davinci: create new common platform header for davinci

2011-11-15 Thread Sergei Shtylyov
Hello. On 14-11-2011 19:09, Manjunath Hadli wrote: remove the code from individual platform header files for dm365, dm355, dm644x and dm646x and consolidate it into a single and common header file davinci_common.h. Include the new header file in individual platform header files as a pre-cursor