[PATCH] rtl28xxu: add [1b80:d3b0] Sveon STV21

2014-06-12 Thread Sebastian Kemper
Added Sveon STV21 device based on Realtek RTL2832U and FC0013 tuner Signed-off-by: Sebastian Kemper sebastian...@gmx.net --- diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h index 11d2bea..b518ada 100644 --- a/drivers/media/dvb-core/dvb-usb-ids.h +++

color box, display box, corrugated box, color card, blister card, color sleeve, hang tag, label

2014-06-12 Thread Jinghao Printing - CHINA
Hi, this is David Wu from Shanghai, China. We are a printing company, we can print color box, corrugated box, label, hang tag etc. Please let me know if you need these. I will send you the website then. Best regards, David Wu -- To unsubscribe from this list: send the line unsubscribe

[patch v2] [media] davinci: vpif: missing unlocks on error

2014-06-12 Thread Dan Carpenter
We recently changed some locking around so we need some new unlocks on the error paths. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: move the unlock so the list_for_each_entry_safe() loop is protected diff --git a/drivers/media/platform/davinci/vpif_capture.c

[PATCH] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready

2014-06-12 Thread James Harper
Patch originally written by Konrad. Rebased on current linux media tree. Under Xen, vmalloc_32() isn't guaranteed to return pages which are really under 4G in machine physical addresses (only in virtual pseudo-physical addresses). To work around this, implement a vmalloc variant which allocates

[PATCH] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready

2014-06-12 Thread James Harper
Patch originally written by Konrad. Rebased on current linux media tree. Under Xen, vmalloc_32() isn't guaranteed to return pages which are really under 4G in machine physical addresses (only in virtual pseudo-physical addresses). To work around this, implement a vmalloc variant which allocates

[PATCH] Add support for DViCO FusionHDTV DVB-T Dual Express2

2014-06-12 Thread James Harper
DViCO FusionHDTV DVB-T Dual Express2 is cx23885 + dib7070 Signed-off-by: James Harper james.har...@ejbdigital.com.au --- drivers/media/pci/cx23885/cx23885-cards.c | 15 +++- drivers/media/pci/cx23885/cx23885-dvb.c | 123 ++ drivers/media/pci/cx23885/cx23885.h

Re: [BUG PATCH] media/rc/ir-nec-decode : phantom keypress

2014-06-12 Thread David Härdeman
Hi, the problem with triggering a keypress as soon as 32 bits have been received (i.e. before the trailing silence is detected) is that it would cause phantom keypresses on some other protocols (I'm thinking of NEC48, which does exist in the wild). Now, the question is why the trailing

Re: [BUG PATCH] media/rc/ir-nec-decode : phantom keypress

2014-06-12 Thread Niels Laukens
On 2014-06-12 12:42, David Härdeman wrote: Hi, Hi, thanks for the response the problem with triggering a keypress as soon as 32 bits have been received (i.e. before the trailing silence is detected) Just for clarity: this patch does wait for the trailing silence. It does NOT wait for the

Re: [BUG PATCH] media/rc/ir-nec-decode : phantom keypress

2014-06-12 Thread David Härdeman
On 2014-06-12 13:22, Niels Laukens wrote: On 2014-06-12 12:42, David Härdeman wrote: Hi, Hi, thanks for the response the problem with triggering a keypress as soon as 32 bits have been received (i.e. before the trailing silence is detected) Just for clarity: this patch does wait for the

[REVIEWv4 PATCH 06/34] v4l2: integrate support for VIDIOC_QUERY_EXT_CTRL.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add the v4l2 core plumbing for the new VIDIOC_QUERY_EXT_CTRL ioctl. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Reviewed-by: Sylwester Nawrocki s.nawro...@samsung.com --- drivers/media/v4l2-core/v4l2-dev.c| 2 ++

[REVIEWv4 PATCH 24/34] DocBook media: document new u8 and u16 control types.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These types are needed for the upcoming Motion Detection matrix controls, so document them. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 14 +

[REVIEWv4 PATCH 14/34] v4l2-ctrls: add array support.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Finish the userspace-facing array support. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 109 --- 1 file changed, 63 insertions(+), 46 deletions(-) diff --git

[REVIEWv4 PATCH 10/34] v4l2-ctrls: use ptrs for all but the s32 type.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Rather than having two unions for all types just keep 'val' and 'cur.val' and use the p_cur and p_new unions to access all others. The only reason for keeping 'val' and 'cur.val' is that it is used all over, so converting this as well would be a huge

[REVIEWv4 PATCH 11/34] v4l2-ctrls: prepare for array support

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add dims, nr_of_dims and elems fields to the core control structures in preparation for N-dimensional array support. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 33 -

[REVIEWv4 PATCH 02/34] v4l2-ctrls: use pr_info/cont instead of printk.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Codingstyle fix. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Reviewed-by: Sylwester Nawrocki s.nawro...@samsung.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff

[REVIEWv4 PATCH 00/34] Add support for compound controls, use in solo/go7007

2014-06-12 Thread Hans Verkuil
This patch series adds support for compound controls and up to 8-dimensional arrays to the control framework and uses it in the solo6x10 and go7007 drivers for the motion detection implementation. This patch series supersedes http://www.spinics.net/lists/linux-media/msg73118.html. It

[REVIEWv4 PATCH 04/34] videodev2.h: add struct v4l2_query_ext_ctrl and VIDIOC_QUERY_EXT_CTRL.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add a new struct and ioctl to extend the amount of information you can get for a control. The range is now a s64 type, and array dimensions and element size can be reported through nr_of_dims/dims/elems/elem_size. Signed-off-by: Hans Verkuil

[REVIEWv4 PATCH 22/34] v4l2-controls.txt: update to the new way of accessing controls.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The way current and new values are accessed has changed. Update the document to bring it up to date with the code. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Reviewed-by: Sylwester Nawrocki s.nawro...@samsung.com ---

[REVIEWv4 PATCH 19/34] DocBook media: fix coding style in the control example code

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Use the proper kernel coding style in these examples. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/controls.xml | 81 ++-- 1 file changed, 40 insertions(+), 41 deletions(-) diff --git

[REVIEWv4 PATCH 18/34] DocBook media: update VIDIOC_G/S/TRY_EXT_CTRLS.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Document the support for the new compound type controls. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 37 +- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git

[REVIEWv4 PATCH 15/34] v4l2-ctrls: return elem_size instead of strlen

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com When getting a string and the size given by the application is too short return the max length the string can have (elem_size) instead of the string length + 1. That makes more sense. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Reviewed-by:

[REVIEWv4 PATCH 30/34] solo6x10: implement the new motion detection controls.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Replace the custom ioctls to set motion detection thresholds by standard matrix controls. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/staging/media/solo6x10/solo6x10-disp.c | 4 +-

[REVIEWv4 PATCH 09/34] v4l2-ctrls: compare values only once.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com When setting a control the control's new value is compared to the current value twice: once by new_to_cur(), 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 arrays. So

[REVIEWv4 PATCH 21/34] DocBook media: update control section.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Document the support for compound types in controls. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Reviewed-by: Sylwester Nawrocki s.nawro...@samsung.com --- Documentation/DocBook/media/v4l/controls.xml | 27 --- 1 file

[REVIEWv4 PATCH 13/34] v4l2-ctrls: type_ops can handle array elements.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Extend the control type operations to handle N-dimensional array elements. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 40 1 file changed, 22 insertions(+), 18

[REVIEWv4 PATCH 27/34] DocBook media: document new motion detection controls.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Document the 'Detect' control class and the new Motion Detection controls. Those controls will be used by the solo6x10 and go7007 drivers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/controls.xml | 96

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

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com 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. Because of these changes the msi3101 driver has been modified

[REVIEWv4 PATCH 17/34] DocBook media: document VIDIOC_QUERY_EXT_CTRL.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Document the new VIDIOC_QUERY_EXT_CTRL ioctl. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/vidioc-queryctrl.xml | 211 + 1 file changed, 175 insertions(+), 36 deletions(-) diff --git

[REVIEWv4 PATCH 07/34] v4l2-ctrls: create type_ops.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Since compound controls 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 -

[REVIEWv4 PATCH 26/34] v4l2-ctrls/v4l2-controls.h: add MD controls

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add the 'Detect' control class and the new motion detection controls. Those controls will be used by the solo6x10 and go7007 drivers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 27

[REVIEWv4 PATCH 16/34] v4l2-ctrl: fix error return of copy_to/from_user.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com copy_to/from_user returns the number of bytes not copied, it does not return a 'normal' linux error code. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 11 ++- 1 file changed, 6 insertions(+), 5

[REVIEWv4 PATCH 05/34] v4l2-ctrls: add support for compound types.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This patch implements initial support for compound types. 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. Note that this patch does not yet add

[REVIEWv4 PATCH 31/34] solo6x10: implement the motion detection event.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Use the new motion detection event. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c | 68 ++ drivers/staging/media/solo6x10/solo6x10.h | 7 +-- 2 files changed, 60

[REVIEWv4 PATCH 12/34] v4l2-ctrls: prepare for array support.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add core support for N-dimensional arrays. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 58 include/media/v4l2-ctrls.h | 8 +++-- 2 files changed, 44

[REVIEWv4 PATCH 32/34] solo6x10: fix 'dma from stack' warning.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/staging/media/solo6x10/solo6x10-disp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/solo6x10/solo6x10-disp.c

[REVIEWv4 PATCH 03/34] videodev2.h: add initial support for compound controls.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Compound controls are controls that can be used for compound and array types. This allows for more compound data structures to be used with the control framework. The existing V4L2_CTRL_FLAG_NEXT_CTRL flag will only enumerate non-compound controls, so a

[REVIEWv4 PATCH 29/34] DocBook: document new v4l motion detection event.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Document the new motion detection event. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/vidioc-dqevent.xml | 44 ++ .../DocBook/media/v4l/vidioc-subscribe-event.xml | 8 2 files

[REVIEWv4 PATCH 33/34] solo6x10: check dma_map_sg() return value

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The dma_map_sg() function can fail, so check for the return value. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[REVIEWv4 PATCH 20/34] DocBook media: improve control section.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Improve the control section: - Clarify the handling of private controls - Explain the V4L2_CTRL_FLAG_INACTIVE flag - Remove obsolete text regarding missing control event (we have them today) and the incorrect V4L2_CTRL_FLAG_DISABLED reference. - Add a

[REVIEWv4 PATCH 28/34] v4l2: add a motion detection event.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add a new MOTION_DET event to signal when motion is detected. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/uapi/linux/videodev2.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/uapi/linux/videodev2.h

[REVIEWv4 PATCH 23/34] v4l2-ctrls/videodev2.h: add u8 and u16 types.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These are needed by the upcoming patches for the motion detection matrices. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 45 include/media/v4l2-ctrls.h | 4

[REVIEWv4 PATCH 34/34] go7007: add motion detection support.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This patch adds motion detection support to the go7007 driver using the new motion detection controls, events. The global motion detection works fine, but the regional motion detection support probably needs more work. There seems to be some interaction

[REVIEWv4 PATCH 08/34] v4l2-ctrls: rewrite copy routines to operate on union v4l2_ctrl_ptr.

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com In order to implement array support and (for the future) configuration stores we need to have more generic copy routines that all operate on the v4l2_ctrl_ptr union. So instead of e.g. using ctrl-cur.string it uses ptr.p_char. This makes e.g. cur_to_user

[REVIEWv4 PATCH 25/34] v4l2-ctrls: fix comments

2014-06-12 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Various comments referred to videodev2.h, but the control definitions have been moved to v4l2-controls.h. Also add the same reminder message to each class of controls. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[ATTN] Please review/check the REVIEWv4 compound control patch series

2014-06-12 Thread Hans Verkuil
Mauro anyone else with an interest, I'd appreciate it if this patch series was reviewed, in particular with respect to the handling of multi-dimensional arrays: http://www.mail-archive.com/linux-media@vger.kernel.org/msg75929.html This patch series incorporates all comments from the REVIEWv3

Re: [BUG PATCH] media/rc/ir-nec-decode : phantom keypress

2014-06-12 Thread Niels Laukens
On 2014-06-12 13:51, David Härdeman wrote: On 2014-06-12 13:22, Niels Laukens wrote: In that case, the alternative would be to start a timer when the TRAILING_SPACE is entered, and trigger the key-event after, say 2 bit-times. Another alternative is fix the driver to implement a timeout so

Re: [REVIEWv4 PATCH 04/34] videodev2.h: add struct v4l2_query_ext_ctrl and VIDIOC_QUERY_EXT_CTRL.

2014-06-12 Thread Sakari Ailus
Hi Hans, On Thu, Jun 12, 2014 at 01:52:36PM +0200, Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Add a new struct and ioctl to extend the amount of information you can get for a control. The range is now a s64 type, and array dimensions and element size can be reported

Re: [BUG PATCH] media/rc/ir-nec-decode : phantom keypress

2014-06-12 Thread David Härdeman
On 2014-06-12 14:12, Niels Laukens wrote: On 2014-06-12 13:51, David Härdeman wrote: On 2014-06-12 13:22, Niels Laukens wrote: In that case, the alternative would be to start a timer when the TRAILING_SPACE is entered, and trigger the key-event after, say 2 bit-times. Another alternative is

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Arnd Bergmann
On Thursday 12 June 2014 16:12:17 Laurent Pinchart wrote: From 3a965f4fd5a6b3ef4a66aa4e7c916cfd34fd5706 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann a...@arndb.de Date: Tue, 21 Jan 2014 09:32:43 +0100 Subject: [PATCH] [media] staging: tighten omap4iss dependencies The OMAP4 camera

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Greg KH
On Thu, Jun 12, 2014 at 04:15:32PM +0200, Arnd Bergmann wrote: On Thursday 12 June 2014 16:12:17 Laurent Pinchart wrote: From 3a965f4fd5a6b3ef4a66aa4e7c916cfd34fd5706 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann a...@arndb.de Date: Tue, 21 Jan 2014 09:32:43 +0100 Subject: [PATCH]

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Arnd Bergmann
On Thursday 12 June 2014 07:25:15 Greg KH wrote: On Thu, Jun 12, 2014 at 04:15:32PM +0200, Arnd Bergmann wrote: On Thursday 12 June 2014 16:12:17 Laurent Pinchart wrote: From 3a965f4fd5a6b3ef4a66aa4e7c916cfd34fd5706 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann a...@arndb.de Date:

re: [media] dvb_usb_v2: use dev_* logging macros

2014-06-12 Thread Dan Carpenter
Hello Antti Palosaari, This is a semi-automatic email about new static checker warnings. The patch d10d1b9ac97b: [media] dvb_usb_v2: use dev_* logging macros from Jun 26, 2012, leads to the following Smatch complaint: drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c:31 dvb_usb_v2_generic_io()

Re: [media] dvb_usb_v2: use dev_* logging macros

2014-06-12 Thread Antti Palosaari
Moikka Dan, Thank for the report. I will check that later... I am now back from traveling and there is a lot of stuff on my queue waiting for action. regards Antti On 06/12/2014 05:30 PM, Dan Carpenter wrote: Hello Antti Palosaari, This is a semi-automatic email about new static checker

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Laurent Pinchart
Hi Tony, On Wednesday 11 June 2014 07:47:54 Tony Lindgren wrote: * Arnd Bergmann a...@arndb.de [140611 07:37]: The OMAP4 camera support depends on I2C and VIDEO_V4L2, both of which can be loadable modules. This causes build failures if we want the camera driver to be built-in. That's

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Laurent Pinchart
Hi Arnd, On Thursday 12 June 2014 16:28:39 Arnd Bergmann wrote: On Thursday 12 June 2014 07:25:15 Greg KH wrote: On Thu, Jun 12, 2014 at 04:15:32PM +0200, Arnd Bergmann wrote: On Thursday 12 June 2014 16:12:17 Laurent Pinchart wrote: From 3a965f4fd5a6b3ef4a66aa4e7c916cfd34fd5706 Mon

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Tony Lindgren
* Laurent Pinchart laurent.pinch...@ideasonboard.com [140612 07:52]: On Wednesday 11 June 2014 07:47:54 Tony Lindgren wrote: These should just use either pinctrl-single.c instead for muxing. Or if they are not mux registers, we do have the syscon mapping available in omap4.dtsi that

Re: [BUG PATCH] media/rc/ir-nec-decode : phantom keypress

2014-06-12 Thread Niels Laukens
On 2014-06-12 14:42, David Härdeman wrote: Could you paste the output from lsmod? At the end of this mail. Where did you get the driver? Is it this one? http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_v140425.zip Yes, inside the zip is `linux-tbs-drivers.tar.bz2`, where the

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Laurent Pinchart
Hi Tony, On Thursday 12 June 2014 08:15:35 Tony Lindgren wrote: * Laurent Pinchart laurent.pinch...@ideasonboard.com [140612 07:52]: On Wednesday 11 June 2014 07:47:54 Tony Lindgren wrote: These should just use either pinctrl-single.c instead for muxing. Or if they are not mux registers,

[PATCH] Add patch to allow compilation on versions 3.5 with CONFIG_OF

2014-06-12 Thread Devin Heitmueller
Support for Open Firmware was introduced in the V4L2 tree, but it depends on features only found in 3.5+. Add a patch to disable the support for earlier kernels. Tested on Ubuntu 10.04 with kernel 3.2.0-030200-generic (which has CONFIG_OF enabled by default). Signed-off-by: Devin Heitmueller

Re: [PATCH] [media] staging: allow omap4iss to be modular

2014-06-12 Thread Greg KH
On Thu, Jun 12, 2014 at 04:28:39PM +0200, Arnd Bergmann wrote: On Thursday 12 June 2014 07:25:15 Greg KH wrote: On Thu, Jun 12, 2014 at 04:15:32PM +0200, Arnd Bergmann wrote: On Thursday 12 June 2014 16:12:17 Laurent Pinchart wrote: From 3a965f4fd5a6b3ef4a66aa4e7c916cfd34fd5706 Mon Sep

[PATCH 4/5] v4l: ctrls: Unlocked variants of v4l2_ctrl_s_ctrl{,_int64}()

2014-06-12 Thread Sakari Ailus
From: Sakari Ailus sakari.ai...@linux.intel.com Implement unlocked variants of v4l2_ctrl_s_ctrl() and v4l2_ctrl_s_ctrl_int64(). As drivers need to set controls as they access driver internal state elsewhere than in the control framework unlocked variants of these functions become handy.

[PATCH 0/5] v4l: ctrls: Unlocked variants of (some) functions for driver's internal use

2014-06-12 Thread Sakari Ailus
Hi, This patchset adds unlocked variants of control framework functions to set controls and modify their range. As in many cases the driver internal data structures are protected using the same lock the control handler uses, thus either forcing to poke the control framework data structures

[PATCH 3/5] smiapp: Use unlocked __v4l2_ctrl_modify_range()

2014-06-12 Thread Sakari Ailus
From: Sakari Ailus sakari.ai...@linux.intel.com Instead of modifying the control ranges directly by manipulating struct v4l2_ctrl, use __v4l2_ctrl_modify_range() for the purpose. Signed-off-by: Sakari Ailus sakari.ai...@linux.intel.com --- drivers/media/i2c/smiapp/smiapp-core.c | 47

[PATCH 2/5] v4l: ctrls: Provide an unlocked variant of v4l2_ctrl_modify_range()

2014-06-12 Thread Sakari Ailus
From: Sakari Ailus sakari.ai...@linux.intel.com Drivers may use the v4l2_ctrl_modify_range() internally as part of other operations that need to be both serialised using a driver's lock which can also be used to serialise access to the control handler. Provide an unlocked version of the function,

[PATCH 1/5] v4l: ctrls: Move control lock/unlock above the control access functions

2014-06-12 Thread Sakari Ailus
From: Sakari Ailus sakari.ai...@linux.intel.com The v4l2_ctrl_{,un}lock will be needed elsewhere. Define them before the functions that perform operations on controls. Signed-off-by: Sakari Ailus sakari.ai...@linux.intel.com --- include/media/v4l2-ctrls.h | 36

[PATCH 5/5] smiapp: Set 64-bit integer control using v4l2_ctrl_s_ctrl_int64()

2014-06-12 Thread Sakari Ailus
From: Sakari Ailus sakari.ai...@linux.intel.com Don't manipulate struct v4l2_ctrl directly. Instead, use v4l2_ctrl_s_ctrl_int64() to change the values. Signed-off-by: Sakari Ailus sakari.ai...@linux.intel.com --- drivers/media/i2c/smiapp/smiapp-core.c |9 +++-- 1 file changed, 7

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-12 Thread Philipp Zabel
Hi Steve, [Added Russell to Cc: because of the question how to send IPU core patches to drm-next] Am Mittwoch, den 11.06.2014, 18:04 -0700 schrieb Steve Longerbeam: Hi Philipp and Sascha, First of all, thanks for the detailed review. You are welcome. I am tasked to prepare our own capture

[RFC PATCH 25/26] ARM: dts: Add IPU aliases on i.MX6

2014-06-12 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/boot/dts/imx6q.dtsi | 1 + arch/arm/boot/dts/imx6qdl.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index fb6185f..919a18a 100644 ---

[RFC PATCH 03/26] gpu: ipu-v3: Add function to setup CP channel as interlaced

2014-06-12 Thread Philipp Zabel
This patch adds a function to enable line interlaced buffer scanout and writing. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/gpu/ipu-v3/ipu-common.c | 19 +++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 20 insertions(+) diff --git

[RFC PATCH 16/26] [media] ipuv3-csi: Skip 3 lines for NTSC BT.656

2014-06-12 Thread Philipp Zabel
TVP5150 creates 480 visible lines, but synchronisation signals for 486 visible lines. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/imx/imx-ipuv3-csi.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[RFC PATCH 20/26] [media] imx-ipuv3-csi: Export sync lock event to userspace

2014-06-12 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/imx/imx-ipuv3-csi.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/platform/imx/imx-ipuv3-csi.c b/drivers/media/platform/imx/imx-ipuv3-csi.c index ab22cad..86fadd0 100644

[RFC PATCH 18/26] [media] ipuv3-csi: make subdev controls available on video device

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/media/platform/imx/imx-ipuv3-csi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/media/platform/imx/imx-ipuv3-csi.c b/drivers/media/platform/imx/imx-ipuv3-csi.c

[RFC PATCH 17/26] [media] ipuv3-csi: Pass ipucsi to v4l2_media_subdev_s_power

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de Makes it easier to access ipucsi from v4l2_media_subdev_s_power which is needed in subsequent patches. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/media/platform/imx/imx-ipuv3-csi.c | 7 --- 1 file changed, 4 insertions(+), 3

[RFC PATCH 04/26] gpu: ipu-v3: Add ipu_cpmem_get_buffer function

2014-06-12 Thread Philipp Zabel
This is needed for imx-ipu-vout to extract the buffer address from a saved CPMEM block. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- include/video/imx-ipu-v3.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index

[RFC PATCH 15/26] [media] imx-ipu: Add i.MX IPUv3 capture driver

2014-06-12 Thread Philipp Zabel
This driver uses the IDMA controller's double buffering feature to do the processing of finished frames in the new frame acknowledge (NFACK) interrupt handler while the next frame is already being captured. This avoids a race condition between the end of frame interrupt and NFACK for very short

[RFC PATCH 26/26] ARM: dts: imx6qdl: Add mipi_ipu1/2 multiplexers, mipi_csi, and their connections

2014-06-12 Thread Philipp Zabel
This patch adds the device tree graph connecting the input multiplexers to the IPU CSIs and the MIPI-CSI2 gasket on i.MX6. The MIPI_IPU multiplexers are added as children of the iomuxc-gpr syscon device node. On i.MX6Q/D two two-input multiplexers in front of IPU1 CSI0 and IPU2 CSI1 allow to

[RFC PATCH 14/26] [media] Add i.MX SoC wide media device driver

2014-06-12 Thread Philipp Zabel
This driver registers a single, SoC wide media device, which all entities in the media graph can be registered with via OF graph bindings. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/Kconfig | 2 + drivers/media/platform/imx/Kconfig | 13 +++

[RFC PATCH 21/26] [media] v4l2-subdev.h: Add lock status notification

2014-06-12 Thread Philipp Zabel
This notification type can be used by ADC converters with their own interrupt handler to notify the bridge or capture interface driver about the signal lock status. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- include/media/v4l2-subdev.h | 3 +++ 1 file changed, 3 insertions(+) diff

[RFC PATCH 02/26] gpu: ipu-v3: Register IC with IPUv3

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/gpu/ipu-v3/ipu-common.c | 35 +++ drivers/gpu/ipu-v3/ipu-prv.h| 6 ++ 2 files changed, 41

[RFC PATCH 22/26] [media] v4l2-subdev: Export v4l2_subdev_fops

2014-06-12 Thread Philipp Zabel
This is needed by the imx-ipuv3-csi driver when compiled as a module. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/v4l2-core/v4l2-subdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c

[RFC PATCH 08/26] [media] imx-ipu: add ipu media common code

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de Add video4linux API routines common to IPU scaler, overlay, and deinterlacer drivers. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Lucas Stach l.st...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de ---

[RFC PATCH 07/26] imx-drm: currently only IPUv3 is supported, make it mandatory

2014-06-12 Thread Philipp Zabel
As long as only IPUv3 is supported in imx-drm, hide the separate DRM_IMX_IPUV3 option and make DRM_IMX depend on IMX_IPUV3_CORE. Reported-by: Michael Olbrich m.olbr...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/staging/imx-drm/Kconfig | 7 --- 1 file

[RFC PATCH 11/26] [media] v4l2: subdev: Add v4l2_device_register_subdev_node function

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de We currently only have a function that registers all subdev device nodes for a v4l2 device at once. This assumes that there is a point when all subdevices are known and that all subdevices are needed to make a functional device. With the advent of

[RFC PATCH 13/26] [media] v4l2 async: remove from notifier list

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de In v4l2_async_notifier_register remove the notifier from the notifier list in case of an error. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/media/v4l2-core/v4l2-async.c | 1 + 1 file changed, 1 insertion(+) diff --git

[RFC PATCH 00/26] i.MX5/6 IPUv3 CSI/IC

2014-06-12 Thread Philipp Zabel
Hi, attached is a series of our work in progress i.MX6 capture drivers. I'm posting this now in reaction to Steve's i.MX6 Video capture series, as a reference for further discussion. Of the Image Converter (IC) we only use the postprocessor task, with tiling for larger frames, to implement v4l2

[RFC PATCH 23/26] mfd: syscon: add child device support

2014-06-12 Thread Philipp Zabel
For devices which have a complete register for themselves, it is possible to place them next to the syscon device with overlapping reg ranges. The same is not possible for devices which only occupy bitfields in registers shared with other users. For devices that are completely controlled by

[RFC PATCH 06/26] gpu: ipu-v3: Add support for planar YUV 4:2:2 (YUV422P) format

2014-06-12 Thread Philipp Zabel
From: Philipp Zabel philipp.za...@gmail.com Signed-off-by: Philipp Zabel philipp.za...@gmail.com --- drivers/gpu/ipu-v3/ipu-common.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c index

[RFC PATCH 24/26] [media] imx: Add video switch

2014-06-12 Thread Philipp Zabel
This driver can handle SoC internal and extern video bus multiplexers, controlled either by register bit fields or by GPIO. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/imx/Kconfig| 8 +

Re: [PATCH 32/43] ARM: dts: imx: sabrelite: add video capture ports and endpoints

2014-06-12 Thread Philipp Zabel
Am Mittwoch, den 11.06.2014, 13:38 +0200 schrieb Philipp Zabel: Am Samstag, den 07.06.2014, 14:56 -0700 schrieb Steve Longerbeam: [...] +ipu1 { + status = okay; + + v4l2-capture { + compatible = fsl,imx6-v4l2-capture; I'm not happy with adding the simple-bus compatible

[RFC PATCH 09/26] [media] imx-ipu: Add i.MX IPUv3 scaler driver

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de This patch adds support for hardware accelerated scaling and color space conversion between memory buffers using the IPUv3 IC. Since the maximum output size of the IC unit is 1024x1024 pixels, multiple IC tasks with overlapping tiles are used to scale and

[RFC PATCH 12/26] [media] v4l2: Fix V4L2_CID_PIXEL_RATE

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/media/v4l2-core/v4l2-ctrls.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index

[RFC PATCH 10/26] [media] imx-ipu: Add i.MX IPUv3 deinterlacer driver

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de This adds a video4linux mem2mem driver that deinterlaces input frames using the IPUv3 VDIC module. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/imx/Kconfig| 9

[RFC PATCH 01/26] gpu: ipu-v3: Add IC support

2014-06-12 Thread Philipp Zabel
From: Sascha Hauer s.ha...@pengutronix.de This patch adds support for the IC module used for scaling, rotation, and colorspace conversions. Scaling images larger than 1024x1024 is supported by tiling over multiple IC scaling tasks. Instead of scaling tiles separately, which causes an ugly seam at

[RFC PATCH 05/26] gpu: ipu-v3: Add support for partial interleaved YCbCr 4:2:0 (NV12) format

2014-06-12 Thread Philipp Zabel
From: Philipp Zabel philipp.za...@gmail.com The partial interleaved format consists of two planes, one with 8-bit luma (Y) values, and one with alternating 8-bit chroma (CbCr) values. This format can be produced by CODA960 VPU and VDOA. Signed-off-by: Philipp Zabel philipp.za...@gmail.com ---

046d:0896 [Acer Aspire 5630] Orbicam not working

2014-06-12 Thread Thierry Coton
Hi, I have been asked to post on this mailing list about an annoying integrated webcam issue, please find details below: I have installed latest version available 3.15-0-031500-generic for testing purpose as current distribution kernel did not work and result is not convincing. The main

Re: [Mjpeg-users] [patch] [media] zoran: remove duplicate ZR050_MO_COMP define

2014-06-12 Thread Bernhard Praschinger
Hallo More than 15 years have passed since the first working module for a zoran chipset based PCI card existed. Well not included into the Linux kernel at that time. According to my experience, the driver started to make problems when 64 Bit and more than 2GB Ram became popular. In May 2011

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-12 Thread Steve Longerbeam
On 06/12/2014 09:50 AM, Philipp Zabel wrote: Hi Steve, [Added Russell to Cc: because of the question how to send IPU core patches to drm-next] Am Mittwoch, den 11.06.2014, 18:04 -0700 schrieb Steve Longerbeam: Hi Philipp and Sascha, First of all, thanks for the detailed review. You

Re: AF9033 / IT913X: Avermedia A835B(1835) only works sporadically

2014-06-12 Thread Antti Palosaari
Moikka, The reason is that Avermedia has programmed wrong tuner ID to device eeprom. For one IT9135BX device I have it is set 0x38 (whilst Windows driver programs 0x60), no idea how others. That same issues was for AF9015 too, where I added USB ID based overrides for certain Avermedia

[GIT PULL for 3.16-rc1] OMAP3 updates

2014-06-12 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media topic/omap3isp For some driver improvements on OMAP3. This series depend on some iommu patches already merged. Thanks, Mauro The following changes since commit

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-12 Thread Troy Kisky
On 6/12/2014 2:05 PM, Steve Longerbeam wrote: On 06/12/2014 09:50 AM, Philipp Zabel wrote: Hi Steve, [Added Russell to Cc: because of the question how to send IPU core patches to drm-next] Am Mittwoch, den 11.06.2014, 18:04 -0700 schrieb Steve Longerbeam: Hi Philipp and Sascha, First

  1   2   >