[PATCH 05/11] mt9m032: Enclose to_dev() macro argument in brackets

2012-02-25 Thread Laurent Pinchart
To make the macro safer to use, enclose its argument in brackets in the macro's body. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/mt9m032.c b/drivers/media/video/mt9m032.c index 8

[PATCH 03/11] mt9m032: Make get/set format/crop operations consistent across drivers

2012-02-25 Thread Laurent Pinchart
Modify the get/set format/crop operation handlers to match the existing pad-aware Aptina sensor drivers. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 128 ++--- 1 files changed, 57 insertions(+), 71 deletions(-) diff --git a/drivers/me

[PATCH 04/11] mt9m032: Use module_i2c_driver() macro

2012-02-25 Thread Laurent Pinchart
Replace the custom driver init and exit functions by module_i2c_driver(). Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 19 +-- 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/drivers/media/video/mt9m032.c b/drivers/media/video/mt9m032.c in

[PATCH 09/11] mt9m032: Remove unneeded register read

2012-02-25 Thread Laurent Pinchart
There's not need to read register MT9M032_READ_MODE1 when setting up the PLL. Remove the read call. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/mt9m032.c b/drivers/media/video/m

[PATCH 07/11] mt9m032: Put HFLIP and VFLIP controls in a cluster

2012-02-25 Thread Laurent Pinchart
HFLIP and VFLIP are often set together to rotate the image by 180°. Putting the controls in a cluster makes sure they will always be applied together, getting rid of a race condition that could result in one bad frame. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 43

[PATCH 08/11] mt9m032: Compute PLL parameters at runtime

2012-02-25 Thread Laurent Pinchart
Remove the PLL parameters from platform data and pass the external clock and desired internal clock frequencies instead. The PLL parameters are now computed at runtime. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 16 ++-- include/media/mt9m032.h |4

[PATCH 11/11] mt9m032: Use generic PLL setup code

2012-02-25 Thread Laurent Pinchart
Compute the PLL parameters at runtime using the generic Aptina PLL helper. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 57 - include/media/mt9m032.h |2 +- 2 files changed, 40 insertions(+), 19 deletions(-) diff --git a

[PATCH 10/11] v4l: Aptina-style sensor PLL support

2012-02-25 Thread Laurent Pinchart
Add a generic helper function to compute PLL parameters for PLL found in several Aptina sensors. Signed-off-by: Laurent Pinchart --- drivers/media/video/Kconfig |4 + drivers/media/video/Makefile |4 + drivers/media/video/aptina-pll.c | 120 +

[PATCH 06/11] mt9m032: Pass an i2c_client pointer to the register read/write functions

2012-02-25 Thread Laurent Pinchart
Replace the mt9m032 * argument to register read/write functions with an i2c_client *. As the register access functions are often called several times in a single location, this removes several casts at runtime. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 75

[PATCH 01/11] v4l: Add driver for Micron MT9M032 camera sensor

2012-02-25 Thread Laurent Pinchart
From: Martin Hostettler The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. The driver creates a V4L2 subdevice. It currently supports cropping, gain, exposure and v/h flipping controls in monochrome mode with an external pixel clock. Signed-off-by: Martin Hostettler ---

[PATCH 02/11] mt9m032: Reorder code into section and whitespace cleanups

2012-02-25 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9m032.c | 162 +--- 1 files changed, 85 insertions(+), 77 deletions(-) diff --git a/drivers/media/video/mt9m032.c b/drivers/media/video/mt9m032.c index eb701e7..31ba86b 100644 --- a/drivers/media/video

[PATCH 00/11] MT9M032 sensor driver

2012-02-25 Thread Laurent Pinchart
Hi everybody, Here's a new driver for the Aptina MT9M032 sensor, written by Martin Hostettler. I've reviewed the original version posted on the list a couple of weeks ago, and agreed with Martin that I would write the cleanup patches I deemed necessary and/or useful and post the result. Here it is

Re: [PATCH v3 30/33] omap3isp: Add resizer data rate configuration to resizer_set_stream

2012-02-25 Thread Sakari Ailus
Hi Laurent, Laurent Pinchart wrote: > Hi Sakari, > > Thanks for the patch. > > On Monday 20 February 2012 03:57:09 Sakari Ailus wrote: >> Signed-off-by: Sakari Ailus >> --- >> drivers/media/video/omap3isp/ispresizer.c |4 >> 1 files changed, 4 insertions(+), 0 deletions(-) >> >> diff

Re: [PATCH v3 25/33] omap3isp: Introduce omap3isp_get_external_info()

2012-02-25 Thread Sakari Ailus
Hi Laurent, Laurent Pinchart wrote: > Hi Sakari, > > Thanks for the patch. > > On Monday 20 February 2012 03:57:04 Sakari Ailus wrote: >> omap3isp_get_external_info() will retrieve external subdev's bits-per-pixel >> and pixel rate for the use of other ISP subdevs at streamon time. >> omap3isp_g

Re: [PATCH v3 22/33] omap3isp: Assume media_entity_pipeline_start may fail

2012-02-25 Thread Sakari Ailus
Hi Laurent, Laurent Pinchart wrote: > Thanks for the patch. Thanks for the comments. > On Monday 20 February 2012 03:57:01 Sakari Ailus wrote: >> Since media_entity_pipeline_start() now does link validation, it may >> actually fail. Perform the error handling. >> >> Signed-off-by: Sakari Ailus

Re: [question] v4l read() operation

2012-02-25 Thread Andy Walls
"Ezequiel García" wrote: >Hi, > >If I register a video device with this fops: > >static const struct v4l2_file_operations v4l2_fops = { >.owner = THIS_MODULE, >.open= xxx_open, >.unlocked_ioctl = xxx_unlocked_ioctl, >.poll = xxx_poll, >

Re: [PATCH 0/3] Support for AF9035/AF9033

2012-02-25 Thread Hans-Frieder Vogt
Am Freitag, 24. Februar 2012 schrieb Oliver Schinagl: > On 24-02-12 11:04, Oliver Schinagl wrote: > > On 23-02-12 23:02, Hans-Frieder Vogt wrote: > >> Am Donnerstag, 23. Februar 2012 schrieb Oliver Schinagl: > >>> Hi Hans, > >>> > >>> I also have an AF9035 based device, the Asus 3100 Mini Plus. It

Re: [question] v4l read() operation

2012-02-25 Thread Dave Hylands
Hi Ezequiel 2012/2/25 Ezequiel García : > Hi, > > If I register a video device with this fops: > > static const struct v4l2_file_operations v4l2_fops = { >        .owner      = THIS_MODULE, >        .open        = xxx_open, >        .unlocked_ioctl = xxx_unlocked_ioctl, >        .poll           =

Status of DVB-C cards with CI

2012-02-25 Thread David Liontooth
I'm trying to put together a box with DVB-C PCIe (or PCI) cards and CI support for recording in Denmark. Is there support for any such cards in Linuxtv or mainline? In Denmark, as I understand it, even the main national public station is encrypted, and as of January 2012 the transport stream

Re: [question] between probe() and open()

2012-02-25 Thread Greg KH
On Sat, Feb 25, 2012 at 07:09:49PM -0300, Ezequiel García wrote: > Hello, > > This is a question in general about usb drivers and > in particular about easycap driver. > > Is there any way a driver can be accesed > between after usb_probe() but before device open()? usb_remove() can always be ca

[question] v4l read() operation

2012-02-25 Thread Ezequiel García
Hi, If I register a video device with this fops: static const struct v4l2_file_operations v4l2_fops = { .owner = THIS_MODULE, .open= xxx_open, .unlocked_ioctl = xxx_unlocked_ioctl, .poll = xxx_poll, .mmap = xxx_mmap, }; then if

[question] between probe() and open()

2012-02-25 Thread Ezequiel García
Hello, This is a question in general about usb drivers and in particular about easycap driver. Is there any way a driver can be accesed between after usb_probe() but before device open()? I guess not, since any further operation on the device needs a struct file pointer, i.e. a file descriptor on

Re: [DVB Digital Devices Cine CT V6] status support

2012-02-25 Thread Martin Herrman
Op 10 januari 2012 09:12 schreef Martin Herrman het volgende: > > 2012/1/9 Thomas Kaiser : > > > Hello Martin > > > > I use the DD Cine CT V6 with DVB-C. It works without problems. > > I got the driver before Oliver integrated it in his tree. Therefor I did > > not > > compile Olivers tree, yet. >

cron job: media_tree daily build: WARNINGS

2012-02-25 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:Sat Feb 25 19:00:21 CET 2012 git hash:a3db60bcf7671cc011ab4f848cbc40ff7ab52c1e gcc version: i686-linux-gcc (GCC

Re: [PATCH][libv4l] Bytes per Line

2012-02-25 Thread Gregor Jasny
Hello Robert, On 2/20/12 8:42 PM, Robert Abel wrote: > Anyway, the patch for bayer => rgb as well as bayer => yuv is attached. > Basically, every time where width was assumed to be the offset to the > neighboring pixel below, now step is used. I reviewed your patch and it looks good to me. The on

Re: [PATCH 00/12] Part 2: check given MAC address, if invalid return -EADDRNOTAVAIL

2012-02-25 Thread Geert Uytterhoeven
2012/2/24 Michał Mirosław : > 2012/2/24 Danny Kukawka : >> Second Part of series patches to unifiy the return value of >> .ndo_set_mac_address if the given address isn't valid. >> >> These changes check if a given (MAC) address is valid in >> .ndo_set_mac_address, if invalid return -EADDRNOTAVAIL >

Re: [PATCH 3/3] wl128x: Add sysfs based support for FM features

2012-02-25 Thread Hans Verkuil
Hi Manjunatha! On Friday, February 24, 2012 21:14:31 manjunatha_ha...@ti.com wrote: > From: Manjunatha Halli > > This patch adds support for below features via sysfs file system > > 1) FM RX Band selection (US/Europe, Japan and Russian bands) > 2) FM RX RDS AF turn ON/OFF > 3) FM RX RSSI level