media: i2c: add new dual LED Flash driver, lm3646.

2014-01-06 Thread Daniel Jeong
This patch adds the driver for the LM3646, dual LED Flash driver. The LM3646 has two 1.5A sync. boost converter with dual white current source. It is controlled via an I2C compatible interface. Each flash brightness, torch brightness and enable/disable can be controlled. UVLO, IVFM and NTC threshh

Initial scan table for au-Melbourne-Selby

2014-01-06 Thread Philip Yarra
Hi, please find attached a scan table for au-Melbourne-Selby. This file is very similar to the scan table file for au-Melbourne-Upwey (which I was able to use until quite recently). However the fec_hi value of "2/3" for SBS no longer works for me, and I need to use "AUTO" instead. I don't know

Re: [PATCH 3/3] au8522, au0828: Added demodulator reset

2014-01-06 Thread Devin Heitmueller
> I suspect this is actually a different problem which out of dumb luck > gets "fixed" by resetting the chip. Without more details on the > specific behavior you are seeing though I cannot really advise on what > the correct change is. Tim, It might be worth trying out the following patch series

Re: [PATCH 3/3] au8522, au0828: Added demodulator reset

2014-01-06 Thread Devin Heitmueller
On Mon, Jan 6, 2014 at 11:29 PM, Tim Mester wrote: > The demodulator can get in a state in ATSC mode where just > restarting the feed alone does not correct the corrupted stream. The > demodulator reset in addition to the feed restart seems to correct > the condition. > > The au8522 driver has be

[PATCH 2/3] au0828: Add option to preallocate digital transfer buffers

2014-01-06 Thread Tim Mester
Added command line parameter preallocate_big_buffers so that the digital transfer buffers can be allocated when the driver is registered. They do not have to be allocated every time a feed is started. Signed-off-by: Tim Mester --- linux/drivers/media/usb/au0828/au0828-core.c | 13 +--- linux

[PATCH 3/3] au8522, au0828: Added demodulator reset

2014-01-06 Thread Tim Mester
The demodulator can get in a state in ATSC mode where just restarting the feed alone does not correct the corrupted stream. The demodulator reset in addition to the feed restart seems to correct the condition. The au8522 driver has been modified so that when set_frontend() is called with the same

[PATCH 1/3] au8028: Fix cleanup on kzalloc fail

2014-01-06 Thread Tim Mester
Free what was allocated if there is a failure allocating transfer buffers. Stop the feed on a start feed error. The stop feed is not always called if start feed fails. If the feed is not stopped on error, then the driver will be stuck so that it can never start feeding again. Signed-off-by: Tim

Re: [PATCH v4 2/4] [media] exynos-scaler: Add core functionality for the SCALER driver

2014-01-06 Thread Shaik Ameer Basha
Hi Mauro, Thanks for the reveiw. On Fri, Jan 3, 2014 at 1:55 AM, Mauro Carvalho Chehab wrote: > Em Fri, 4 Oct 2013 17:56:32 +0530 > Shaik Ameer Basha escreveu: > >> This patch adds the core functionality for the SCALER driver. >> >> Signed-off-by: Shaik Ameer Basha >> --- >> drivers/media/pl

Re: [PATCH v4 1/4] [media] exynos-scaler: Add new driver for Exynos5 SCALER

2014-01-06 Thread Shaik Ameer Basha
Hi Mauro, Thanks for the review comments. On Fri, Jan 3, 2014 at 1:48 AM, Mauro Carvalho Chehab wrote: > Em Fri, 4 Oct 2013 17:56:31 +0530 > Shaik Ameer Basha escreveu: > >> This patch adds support for SCALER device which is a new device >> for scaling, blending, color fill and color space co

cron job: media_tree daily build: ERRORS

2014-01-06 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 Jan 7 04:00:27 CET 2014 git branch: test git hash: 54a2a84ea9e8640b4f1df4e222e305d03bb64065 gcc versio

FOSDEM14: Graphics DevRoom: Deadline approaching fast.

2014-01-06 Thread Luc Verhaegen
Hi, There are still 5 slots open for the FOSDEM graphics DevRoom, and the deadline is this friday, the 10th. Get a move on. If you have requested an account reset with me before, but if you then haven't bothered filing a talk, you do NOT have a slot. Please file a talk ASAP to still secure a p

Re: How to enable "CONFIG_V4L2_MEM2MEM_DEV"

2014-01-06 Thread Fabio Estevam
On Mon, Jan 6, 2014 at 9:42 PM, m silverstri wrote: > Thanks. I try the latest (I clone linux from > https://github.com/torvalds/linux) and do 'make ARCH=arm > CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- imx_v6_v7_defconfig' again, > I see > > " CONFIG_V4L2_MEM2MEM_DEV=y" in the generated .config.

Re: How to enable "CONFIG_V4L2_MEM2MEM_DEV"

2014-01-06 Thread m silverstri
Thanks. I try the latest (I clone linux from https://github.com/torvalds/linux) and do 'make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- imx_v6_v7_defconfig' again, I see " CONFIG_V4L2_MEM2MEM_DEV=y" in the generated .config. But when I try to add 'CONFIG_VIDEO_SAMSUNG_S5P_JPEG=y' to imx_

Re: [PATCH v4 04/22] [media] em28xx: make em28xx-video to be a separate module

2014-01-06 Thread Frank Schäfer
Am 05.01.2014 16:18, schrieb Mauro Carvalho Chehab: > Em Sun, 05 Jan 2014 10:56:33 -0200 > Mauro Carvalho Chehab escreveu: > >> Em Sun, 05 Jan 2014 11:47:00 +0100 >> Frank Schäfer escreveu: >> >>> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: Now that all analog-specific code are at em

Re: How to enable "CONFIG_V4L2_MEM2MEM_DEV"

2014-01-06 Thread Fabio Estevam
On Mon, Jan 6, 2014 at 7:22 PM, m silverstri wrote: > I have added 'CONFIG_V4L2_MEM2MEM_DEV=y' to my 'imx_v6_v7_defconfig' > and do a "make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > imx_v6_v7_defconfig", I don't see CONFIG_V4L2_MEM2MEM_DEV being set to > 'y' in .config that was automat

Re: [PATCH v4 03/22] [media] em28xx: move analog-specific init to em28xx-video

2014-01-06 Thread Frank Schäfer
Am 05.01.2014 15:40, schrieb Mauro Carvalho Chehab: > Em Sun, 05 Jan 2014 11:26:14 +0100 > Frank Schäfer escreveu: > >> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: >>> There are several init code inside em28xx-cards that are actually >>> part of analog initialization. Move the code to em28

How to enable "CONFIG_V4L2_MEM2MEM_DEV"

2014-01-06 Thread m silverstri
I have added 'CONFIG_V4L2_MEM2MEM_DEV=y' to my 'imx_v6_v7_defconfig' and do a "make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- imx_v6_v7_defconfig", I don't see CONFIG_V4L2_MEM2MEM_DEV being set to 'y' in .config that was automatically generated. I think I am making changes to the right '

Re: [PATCH v4 07/22] [media] em28xx: improve extension information messages

2014-01-06 Thread Mauro Carvalho Chehab
Em Mon, 06 Jan 2014 18:44:02 +0100 Frank Schäfer escreveu: > Am 05.01.2014 14:08, schrieb Mauro Carvalho Chehab: > > Em Sun, 05 Jan 2014 11:55:34 +0100 > > Frank Schäfer escreveu: > > > >> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: > >>> Add a message with consistent prints before and a

Re: [PATCH v4 08/22] [media] em28xx: convert i2c wait completion logic to use jiffies

2014-01-06 Thread Frank Schäfer
Am 05.01.2014 14:10, schrieb Mauro Carvalho Chehab: > Em Sun, 05 Jan 2014 12:03:51 +0100 > Frank Schäfer escreveu: > >> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: >>> The I2C wait completion/timeout logic currently assumes that >>> msleep(5) will wait exaclty 5 ms. This is not true at all

Re: [PATCH v4 07/22] [media] em28xx: improve extension information messages

2014-01-06 Thread Frank Schäfer
Am 05.01.2014 14:08, schrieb Mauro Carvalho Chehab: > Em Sun, 05 Jan 2014 11:55:34 +0100 > Frank Schäfer escreveu: > >> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: >>> Add a message with consistent prints before and after each >>> extension initialization, and provide a better text for mod

Re: [PATCH v4 04/22] [media] em28xx: make em28xx-video to be a separate module

2014-01-06 Thread Frank Schäfer
Am 05.01.2014 13:56, schrieb Mauro Carvalho Chehab: > Em Sun, 05 Jan 2014 11:47:00 +0100 > Frank Schäfer escreveu: > >> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: >>> Now that all analog-specific code are at em28xx-video, convert >>> it into an em28xx extension and load it as a separate m

[PATCH 1/6] [media] em28xx: convert i2c wait completion logic to use jiffies

2014-01-06 Thread Mauro Carvalho Chehab
The I2C wait completion/timeout logic currently assumes that msleep(5) will wait exaclty 5 ms. This is not true at all, as it depends on CONFIG_HZ. Convert it to use jiffies, in order to not wait for more time than needed. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx

[PATCH 4/6] em28xx-i2c: Fix error code for I2C error transfers

2014-01-06 Thread Mauro Carvalho Chehab
Follow the error codes for I2C as described at Documentation/i2c/fault-codes. In the case of the I2C status register (0x05), this is mapped into: - ETIMEDOUT - when reg 05 returns 0x10 - ENXIO - when the device is not temporarily not responding (e. g. reg 05 retu

[PATCH 3/6] [media] em28xx: use a better value for I2C timeouts

2014-01-06 Thread Mauro Carvalho Chehab
In the lack of a better spec, let's assume the timeout values compatible with SMBus spec: http://smbus.org/specs/smbus110.pdf at chapter 8 - Electrical Characteristics of SMBus devices Ok, SMBus is a subset of I2C, and not all devices will be following it, but the timeout value before thi

[PATCH 2/6] [media] em28xx: rename I2C timeout to EM28XX_I2C_XFER_TIMEOUT

2014-01-06 Thread Mauro Carvalho Chehab
This macro is used by all em28xx devices, and not just em2800. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-i2c.c b/drivers/media/usb/em28xx/em28xx-i2c.c i

[PATCH 6/6] em28xx: add timeout debug information if i2c_debug enabled

2014-01-06 Thread Mauro Carvalho Chehab
If i2c_debug is enabled, we splicitly want to know when a device fails with timeout. If i2c_debug==2, this is already provided, for each I2C transfer that fails. However, most of the time, we don't need to go that far. We just want to know that I2C transfers fail. So, add such errors for normal

[PATCH 0/6] em28xx: improve I2C code

2014-01-06 Thread Mauro Carvalho Chehab
This is a series of cleanup patches for em28xx I2C. It was originally part of a series of patches meant to split em28xx V4L2 module, but it makes sense to submit as a separate patch set. This series basically does: - make em28xx compilant with standard I2C errors, as defined at

[PATCH 5/6] [media] em28xx: cleanup I2C debug messages

2014-01-06 Thread Mauro Carvalho Chehab
The I2C output messages is too polluted. Clean it a little bit, by: - use the proper core support for memory dumps; - hide most stuff under the i2c_debug umbrella; - add the missing KERN_CONT where needed; - use 2 levels or verbosity. Only the second one wi

Re: [PATCH v4 21/22] [media] em28xx-audio: allocate URBs at device driver init

2014-01-06 Thread Mauro Carvalho Chehab
Em Sun, 05 Jan 2014 19:25:57 -0200 Mauro Carvalho Chehab escreveu: > Em Sun, 05 Jan 2014 22:02:40 +0100 > Frank Schäfer escreveu: > > > Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: > > > From: Mauro Carvalho Chehab > > Is this line still correct ? ;) > > > > > Instead of allocating/dea

Re: [PATCH 0/2] tuner-xc2028: Fix xc3028 timeouts

2014-01-06 Thread Mauro Carvalho Chehab
Em Mon, 06 Jan 2014 08:01:31 -0200 Mauro Carvalho Chehab escreveu: > When xc2028/3028 is powered down, it won't response to any command, until > a firmware is loaded. That means that reading frontend status will fail > with a timeout. > > Also, any trial to put the device to sleep twice will fai

Re: Add private controls to ctrl_handler

2014-01-06 Thread Hans Verkuil
On 01/06/2014 03:30 PM, Tom wrote: > Hello, > > I want to add some driver specific ctrls to my ctrl-handler which are not > defined in the "/include/uapi/linux/v4l2-controls.h". > I read that I would need the "V4L2_CID_PRIVATE_BASE" to define the new IDs, > but I don't get how I can add them to my

Re: Add private controls to ctrl_handler

2014-01-06 Thread Tom
Tom gmx.net> writes: sorry I forgot to tell that I am using linux version 3.10. Best Regards, Tom -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Add private controls to ctrl_handler

2014-01-06 Thread Tom
Hello, I want to add some driver specific ctrls to my ctrl-handler which are not defined in the "/include/uapi/linux/v4l2-controls.h". I read that I would need the "V4L2_CID_PRIVATE_BASE" to define the new IDs, but I don't get how I can add them to my ctrl-handler so that they are accessible by ca

Re: [RFCv1 PATCH 00/27] Add property & configuration store support

2014-01-06 Thread Hans Verkuil
Oops, forgot to mention that the git tree containing these patches can be found here: http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/propapi6 Regards, Hans On 01/06/2014 03:20 PM, Hans Verkuil wrote: > This patch series adds support for properties, matrices and confi

[RFCv1 PATCH 05/27] videodev2.h: add struct v4l2_query_ext_ctrl and VIDIOC_QUERY_EXT_CTRL.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Add a new struct and ioctl to extend the amount of information you can get for a control/property. It allows you to query controls in a specific configuration store, it gives back a unit string, the range is now a s64 type, and the matrix and element size can be reported throu

[RFCv1 PATCH 11/27] v4l2-ctrls: rewrite copy routines to operate on union v4l2_ctrl_ptr.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil In order to implement stores we need to have more generic copy routines. The v4l2_ctrl_ptr union was designed for this. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 129 +++ 1 file changed, 56 insertions(+), 73 deleti

[RFCv1 PATCH 07/27] v4l2: integrate support for VIDIOC_QUERY_EXT_CTRL.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1 + drivers/media/v4l2-core/v4l2-dev.c| 2 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 31 +++ drivers/media/v4l2-core/v4l2-subdev.c | 3 +++

[RFCv1 PATCH 02/27] v4l2-ctrls: add unit string.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil The upcoming VIDIOC_QUERY_EXT_CTRL adds support for a unit string. This allows userspace to show the unit belonging to a particular control. This patch adds support for the unit string to the control framework. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-co

[RFCv1 PATCH 04/27] videodev2.h: add initial support for properties.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Properties are controls that are not shown in GUIs and can be used for compound and array types. This allows for more complex datastructures to be used with the control framework. Properties will have the V4L2_CTRL_FLAG_PROPERTY flag set. The existing V4L2_CTRL_FLAG_NEXT_CTRL

[RFCv1 PATCH 08/27] videodev2.h: add V4L2_CTRL_FLAG_CAN_STORE

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Controls/properties that have a configuration store will set this flag. Signed-off-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 2dda52d..0803da9 1

[RFCv1 PATCH 23/27] videodev2.h: add new property types.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Add support for a selection property and for u8 and u16 matrices. Signed-off-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index afa335d..

[RFCv1 PATCH 18/27] v4l2-ctrls: prepare for matrix support.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Add core support for matrices. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 57 +++- include/media/v4l2-ctrls.h | 8 +++-- 2 files changed, 41 insertions(+), 24 deletions(-) diff --git a/drivers/media/v4l2

[RFCv1 PATCH 26/27] v4l2-common.h: add new target

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil This target can be used to set the frame size for devices that do not support S_STD or S_DV_TIMINGS. Signed-off-by: Hans Verkuil --- include/uapi/linux/v4l2-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/v4l2-common.h b/include/uapi/linux/v

[RFCv1 PATCH 24/27] v4l2-controls.h: add new property class and new properties.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Add a class for properties (for demonstration purposes only, will need to be renamed) and capture/output crop/compose and motion detection matrix properties. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 3 +++ include/uapi/linux/v4l2-controls.h |

[RFCv1 PATCH 16/27] v4l2-ctrls: replace cur by a union v4l2_ctrl_ptr.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Instead of having to maintain the 'cur' union this patch replaces it by a v4l2_ctrl_ptr union to be consistent with configuration stores, which also use that union. The number of drivers that use 'cur' is fairly small, so it is easy enough to convert them all. Unfortunately, t

[RFCv1 PATCH 25/27] v4l2-ctrls: add support for u8, u16 and prop_selection types.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 30 ++ include/media/v4l2-ctrls.h | 3 +++ 2 files changed, 33 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.

[RFCv1 PATCH 27/27] vivi: add matrix and selection test code.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/platform/vivi.c | 312 ++ 1 file changed, 286 insertions(+), 26 deletions(-) diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index 2ec8511..0532d2b 100644 --- a/d

[RFCv1 PATCH 21/27] videodev2.h: rename reserved2 to config_store in v4l2_buffer.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil When queuing buffers allow for passing the configuration store ID that should be associated with this buffer. Use the 'reserved2' field for this. Signed-off-by: Hans Verkuil --- drivers/media/usb/cpia2/cpia2_v4l.c | 2 +- drivers/media/v4l2-core/v4l2-compat-ioctl32

[RFCv1 PATCH 13/27] v4l2-ctrls: add function to apply a configuration store.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Drivers need to be able to select a specific store. Add a new function that can be used to apply a given store. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 67 include/media/v4l2-ctrls.h | 2 ++ 2 fil

[RFCv1 PATCH 03/27] v4l2-ctrls: use pr_info/cont instead of printk.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Codingstyle fix. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index bb63d2a..

[RFCv1 PATCH 00/27] Add property & configuration store support

2014-01-06 Thread Hans Verkuil
This patch series adds support for properties, matrices and configuration stores to the control framework. See this RFCv2 for a more detailed discussion: http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/71822 Changes since that RFCv2 are: - I dropped the 'property' bit

[RFCv1 PATCH 20/27] v4l2-ctrls: add matrix support.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Finish the userspace-facing matrix support. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 106 --- 1 file changed, 61 insertions(+), 45 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v

[RFCv1 PATCH 01/27] v4l2-ctrls: increase internal min/max/step/def to 64 bit

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil While VIDIOC_QUERYCTRL is limited to 32 bit min/max/step/def values for controls, the upcoming VIDIOC_QUERY_EXT_CTRL isn't. So increase the internal representation to 64 bits in preparation. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-common.c | 6 ++-

[RFCv1 PATCH 15/27] v4l2-ctrls: prepare for matrix support: add cols & rows fields.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Add cols and rows fields to the core control structures in preparation for matrix support. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 24 include/media/v4l2-ctrls.h | 6 ++ 2 files changed, 22 insertions(+),

[RFCv1 PATCH 09/27] videodev2.h: add config_store to v4l2_ext_controls

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil The ctrl_class is fairly pointless when used with drivers that use the control framework: you can just fill in 0 and it will just work fine. There are still some old unconverted drivers that do not support 0 and instead want the control class there. The idea being that all cont

[RFCv1 PATCH 19/27] v4l2-ctrls: type_ops can handle matrix elements.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Extend the control type operations to handle matrix elements. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 40 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c

[RFCv1 PATCH 10/27] v4l2-ctrls: create type_ops.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Since properties can have non-standard types we need to be able to do type-specific checks etc. In order to make that easy type operations are added. There are four operations: - equal: check if two values are equal - init: initialize a value - log: log the value - validate:

[RFCv1 PATCH 14/27] v4l2-ctrls: compare values only once.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil When setting a control the control's new value is compared to the current value twice: once by new_to_store(), once by cluster_changed(). Not a big deal when dealing with simple values, but it can be a problem when dealing with compound types or matrices. So fix this: cluster_c

[RFCv1 PATCH 12/27] v4l2-ctrls: add initial support for configuration stores.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Add support for multiple configuration stores. Three new fields are added to v4l2_ctrl: nstores: the number of stores for this control store: the current store: for use by the control ops cur_store: the store associated with the current value. Normally 0, but it can be

[RFCv1 PATCH 06/27] v4l2-ctrls: add support for properties.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil This patch implements initial support for simple properties. For the most part the changes are fairly obvious (basic support for is_ptr types, the type_is_int function is replaced by a is_int bitfield, and v4l2_query_ext_ctrl is added), but one change needs more explanation:

[RFCv1 PATCH 17/27] v4l2-ctrls: new strings and props must be accessed through the new field.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil Require that 'new' string and pointer values are accessed through the 'new' field instead of through the union. This reduces the union to just val and val64. Signed-off-by: Hans Verkuil --- drivers/media/radio/si4713/si4713.c| 4 ++-- drivers/media/v4l2-core/

[RFCv1 PATCH 22/27] v4l2-ctrls: add ctrl64 event.

2014-01-06 Thread Hans Verkuil
From: Hans Verkuil The current control event is not able to handle the 64-bit ranges or the config_store. Add a new extended event that is able to handle this. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 61 ++-- include/uapi/linux/vid

[PATCH 1/2] tuner-xc2028: Don't try to sleep twice

2014-01-06 Thread Mauro Carvalho Chehab
Only send a power down command for the device if it is not already in power down state. That prevents a timeout when trying to talk with the device. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/tuners/tuner-xc2028.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-

[PATCH 0/2] tuner-xc2028: Fix xc3028 timeouts

2014-01-06 Thread Mauro Carvalho Chehab
When xc2028/3028 is powered down, it won't response to any command, until a firmware is loaded. That means that reading frontend status will fail with a timeout. Also, any trial to put the device to sleep twice will fail. This small series fix those two bugs. Mauro Carvalho Chehab (2): tuner-x

[PATCH 2/2] tuner-xc2028: Don't read status if device is powered down

2014-01-06 Thread Mauro Carvalho Chehab
That removes those timeout errors: [ 3675.930940] xc2028 19-0061: Device is Xceive 3028 version 1.0, firmware version 2.7 [ 3676.060487] xc2028 19-0061: divisor= 00 00 8d d0 (freq=567.250) [ 3676.349449] xc2028 19-0061: Putting xc2028/3028 into poweroff mode. [ 3698.247645] xc2028 19-0061: xc2028

Re: [PATCH] xc2028: disable device power-down because power state handling is broken

2014-01-06 Thread Mauro Carvalho Chehab
Em Mon, 30 Dec 2013 14:37:58 +0100 Frank Schäfer escreveu: > xc2028 power state handling is broken. > I2C read/write operations fail when the device is powered down at that moment, > which causes the get_rf_strength and get_rf_strength callbacks (and probably > others, too) to fail. > I don't kno

[PATCH 1/2] em28xx: prevent registering wrong interfaces for audio-only

2014-01-06 Thread Mauro Carvalho Chehab
A few devices (em2860) use a separate interface for audio only Audio Vendor Class USB. That interface should not be used by Remote Controller, Analog TV or Digital TV. Prevents initializing all non-audio extensions for the audio only interface. Signed-off-by: Mauro Carvalho Chehab --- drivers/m

[PATCH 2/2] em28xx: only initialize extensions on the main interface

2014-01-06 Thread Mauro Carvalho Chehab
For devices with a separated audio-only interface (em2860), call em28xx_init_extension() only once. That fixes a bug with Kworld 305U: [ 658.730715] em2860 #0: V4L2 video device registered as video1 [ 658.730728] em2860 #0: V4L2 VBI device registered as vbi0 [ 658.736907] em2860 #0

[PATCH 0/2] em28xx: Fix support for audio-only interface on em2860

2014-01-06 Thread Mauro Carvalho Chehab
Driver probing for em2860 is broken, causing an oops and making the audio module to be probed forever. Fixes it. Tested with a KWorld 305U (USB ID: eb1a:e305). Note: the board silkscreen of this device says that it is a PVR-310U-Dongle ver. A. Mauro Carvalho Chehab (2): em28xx: prevent registe

Re: [PATCH 1/3] [media] s5k5baf: Fix build warning

2014-01-06 Thread Sachin Kamat
On 24 December 2013 17:12, Sachin Kamat wrote: > Fixes the following warnings: > drivers/media/i2c/s5k5baf.c: In function 's5k5baf_fw_parse': > drivers/media/i2c/s5k5baf.c:362:3: warning: > format '%d' expects argument of type 'int', but argument 3 has type 'size_t' > [-Wformat=] > drivers/media/

Re: [PATCH v4 18/22] [media] em28xx: don't return -ENODEV for I2C xfer errors

2014-01-06 Thread Mauro Carvalho Chehab
Em Sun, 05 Jan 2014 21:49:57 +0100 Frank Schäfer escreveu: > Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: > > -ENODEV reports a permanent condition where a device is not found, > > and used only during device probing or device removal, as stated > > at the V4L2 spec: > > http://linuxt

Re: omap3isp device tree support

2014-01-06 Thread Julien BERAUD
Le 03/01/2014 12:30, Enrico a écrit : On Wed, Dec 18, 2013 at 11:09 AM, Enrico wrote: On Tue, Dec 17, 2013 at 2:11 PM, Florian Vaussard wrote: So I converted the iommu to DT (patches just sent), used pdata quirks for the isp / mtv9032 data, added a few patches from other people (mainly clk t

Re: [PATCH v4 17/22] [media] em28xx-i2c: Fix error code for I2C error transfers

2014-01-06 Thread Mauro Carvalho Chehab
Em Sun, 05 Jan 2014 21:40:38 +0100 Frank Schäfer escreveu: > Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: > > The proper error code for I2C errors are EREMOTEIO. The em28xx driver > > is using EIO instead. > > > > Replace all occurrences of EIO at em28xx-i2c, in order to fix it. > > > > Si