[PATCH] staging: lirc: sasem: fix whitespace style issue

2015-07-17 Thread Adi Ratiu
Signed-off-by: Adi Ratiu --- drivers/staging/media/lirc/lirc_sasem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc/lirc_sasem.c b/drivers/staging/media/lirc/lirc_sasem.c index 8ebee96..c14ca7e 100644 --- a/drivers/staging/media/lirc/lirc_sasem.c ++

[patch] fix failure when applying backports/debug.patch

2015-07-17 Thread Vincent McIntyre
Hi, backports/debug.patch has gotten out of sync with the main tree. The last patch hunk fails: ... Applying patches for kernel 3.13.0-57-generic patch -s -f -N -p1 -i ../backports/api_version.patch patch -s -f -N -p1 -i ../backports/pr_fmt.patch patch -s -f -N -p1 -i ../backports/debug.patch 1 ou

Re: [PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-07-17 Thread Inki Dae
On 2015년 07월 17일 19:31, Hans Verkuil wrote: > On 07/17/2015 12:29 PM, Inki Dae wrote: >> On 2015년 07월 17일 19:20, Hans Verkuil wrote: >>> On 07/13/2015 04:55 PM, Jan Kara wrote: From: Jan Kara Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). This removes

cron job: media_tree daily build: ERRORS

2015-07-17 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 Jul 18 04:00:17 CEST 2015 git branch: test git hash: 6727d4fce95586e60922bdaf57b8a0eb99482557 gcc versi

[RESEND PATCH v2 0/2] x86/mm/pat: modify nopat requirement warning

2015-07-17 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Ingo, Boris is on vacation so sending this through you. This is just a resend of the v2 series. The issue here was the WARN() splat on built-in kernels due to ivtv's funky probe which will trigger even if you don't have any ivtv hardware. I've moved this to only trigger

[RESEND PATCH v2 1/2] x86/mm/pat, drivers/infiniband/ipath: replace WARN() with pr_warn()

2015-07-17 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" WARN() may confuse users, fix that. ipath_init_one() is part the device's probe so this would only be triggered if a corresponding device was found. Signed-off-by: Luis R. Rodriguez --- drivers/infiniband/hw/ipath/ipath_driver.c | 6 -- 1 file changed, 4 insertion

[RESEND PATCH v2 2/2] x86/mm/pat, drivers/media/ivtv: move pat warn and replace WARN() with pr_warn()

2015-07-17 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" On built-in kernels this warning will always splat as this is part of the module init. Fix that by shifting the PAT requirement check out under the code that does the "quasi-probe" for the device. This device driver relies on an existing driver to find its own devices, i

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-07-17 Thread Andrew Morton
On Fri, 17 Jul 2015 12:23:40 +0200 Hans Verkuil wrote: > On 07/13/2015 04:55 PM, Jan Kara wrote: > > From: Jan Kara > > > > Provide new function get_vaddr_frames(). This function maps virtual > > addresses from given start and fills given array with page frame numbers of > > the corresponding

Re: [PATCH v2] [media] tc358743: allow event subscription

2015-07-17 Thread Hans Verkuil
On 07/17/2015 05:18 PM, Philipp Zabel wrote: > Am Freitag, den 17.07.2015, 17:12 +0200 schrieb Hans Verkuil: >> On 07/17/2015 05:06 PM, Philipp Zabel wrote: >>> This is useful to subscribe to HDMI hotplug events via the >>> V4L2_CID_DV_RX_POWER_PRESENT control. >> >> Very quick, but it doesn't appl

[GIT PULL v2 FOR v4.3] tc358743: add DT support

2015-07-17 Thread Hans Verkuil
Changes since v1: add the "allow event subscription" patch. Regards, Hans The following changes since commit 6727d4fce95586e60922bdaf57b8a0eb99482557: [media] coda: make NV12 format default (2015-07-17 11:29:39 -0300) are available in the git repository at: git://linuxtv.org/hverk

[PATCH v3] [media] tc358743: allow event subscription

2015-07-17 Thread Philipp Zabel
This is useful to subscribe to HDMI hotplug events via the V4L2_CID_DV_RX_POWER_PRESENT control. Signed-off-by: Philipp Zabel --- Changes since v1: - Make use of v4l2_subdev_notify_event, v4l2_src_change_event_subdev_subscribe, and v4l2_ctrl_subdev_subscribe_event. Changes since v2: - Actual

Re: [PATCH v2] [media] tc358743: allow event subscription

2015-07-17 Thread Philipp Zabel
Am Freitag, den 17.07.2015, 17:12 +0200 schrieb Hans Verkuil: > On 07/17/2015 05:06 PM, Philipp Zabel wrote: > > This is useful to subscribe to HDMI hotplug events via the > > V4L2_CID_DV_RX_POWER_PRESENT control. > > Very quick, but it doesn't apply. You need to combine the original > "[PATCH 5/5

Re: [PATCH v2] [media] tc358743: allow event subscription

2015-07-17 Thread Hans Verkuil
On 07/17/2015 05:06 PM, Philipp Zabel wrote: > This is useful to subscribe to HDMI hotplug events via the > V4L2_CID_DV_RX_POWER_PRESENT control. Very quick, but it doesn't apply. You need to combine the original "[PATCH 5/5] [media] tc358743: allow event subscription" together with this patch. R

[PATCH v2] [media] tc358743: allow event subscription

2015-07-17 Thread Philipp Zabel
This is useful to subscribe to HDMI hotplug events via the V4L2_CID_DV_RX_POWER_PRESENT control. Signed-off-by: Philipp Zabel --- Changes since v1: - Make use of v4l2_subdev_notify_event, v4l2_src_change_event_subdev_subscribe, and v4l2_ctrl_subdev_subscribe_event. --- drivers/media/i2c/tc35

[GIT PULL FOR v4.3] tc358743: add DT support

2015-07-17 Thread Hans Verkuil
The following changes since commit 6727d4fce95586e60922bdaf57b8a0eb99482557: [media] coda: make NV12 format default (2015-07-17 11:29:39 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v4.3c for you to fetch changes up to df9d259dcf8c000878e04ffd

Re: [PATCH 5/5] [media] tc358743: allow event subscription

2015-07-17 Thread Hans Verkuil
On 07/14/2015 12:10 PM, Philipp Zabel wrote: > Am Montag, den 13.07.2015, 13:07 +0200 schrieb Hans Verkuil: >> On 07/10/2015 03:11 PM, Philipp Zabel wrote: >>> This is useful to subscribe to HDMI hotplug events via the >>> V4L2_CID_DV_RX_POWER_PRESENT control. >>> >>> Signed-off-by: Philipp Zabel

Re: [PATCHv2 0/9] SDR transmitter API

2015-07-17 Thread Hans Verkuil
On 07/16/2015 09:04 AM, Antti Palosaari wrote: > v2: > * Allow device open even another device node is active. This means you > could use transmitter device even receiver is active and other way > around, just streaming is blocked to single node. > > * Removed V4L2_CID_RF_TUNER_RF_GAIN_AUTO contro

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-17 Thread Hans Verkuil
On 07/16/2015 09:04 AM, Antti Palosaari wrote: > HackRF SDR device has both receiver and transmitter. There is limitation > that receiver and transmitter cannot be used at the same time > (half-duplex operation). That patch implements transmitter support to > existing receiver only driver. > > Cc:

Re: [PATCHv2 1/9] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR

2015-07-17 Thread Hans Verkuil
On 07/16/2015 09:04 AM, Antti Palosaari wrote: > SDR receiver has ADC (Analog-to-Digital Converter) and SDR transmitter > has DAC (Digital-to-Analog Converter) . Originally I though it could > be good idea to have own type for receiver and transmitter, but now I > feel one common type for SDR is en

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-17 Thread Hans Verkuil
On 07/16/2015 09:04 AM, Antti Palosaari wrote: > HackRF SDR device has both receiver and transmitter. There is limitation > that receiver and transmitter cannot be used at the same time > (half-duplex operation). That patch implements transmitter support to > existing receiver only driver. > > Cc:

Re: [PATCH v2 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Hi Hans, Am Freitag, den 17.07.2015, 14:23 +0200 schrieb Hans Verkuil: [...] > > + endpoint = v4l2_of_alloc_parse_endpoint(ep); > > + if (IS_ERR(endpoint)) { > > + dev_err(dev, "failed to parse endpoint\n"); > > + return PTR_ERR(endpoint); > > + } > > + > > + if (endpoi

[PATCH v3 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Add support for probing the TC358743 subdevice from device tree. The reference clock must be supplied using the common clock bindings. MIPI CSI-2 specific properties are parsed from the OF graph endpoint node and support for a non-continuous MIPI CSI-2 clock is added. Signed-off-by: Philipp Zabel

[PATCH v3 2/4] [media] tc358743: enable v4l2 subdevice devnode

2015-07-17 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 8d9906b..a7542e5 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -166

[PATCH v3 4/4] [media] tc358743: add direct interrupt handling

2015-07-17 Thread Philipp Zabel
When probed from device tree, the i2c client driver can handle the interrupt on its own. Signed-off-by: Philipp Zabel --- drivers/media/i2c/tc358743.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index f9b

[PATCH v3 1/4] [media] tc358743: register v4l2 asynchronous subdevice

2015-07-17 Thread Philipp Zabel
Add support for registering the sensor subdevice using the v4l2-async API. Signed-off-by: Philipp Zabel --- drivers/media/i2c/tc358743.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 34d4f32..8d9906b 100644 --

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-07-17 Thread Mauro Carvalho Chehab
Em Mon, 13 Jul 2015 19:47:50 +0200 David Härdeman escreveu: > On Mon, Jun 29, 2015 at 09:05:24PM +0200, David Härdeman wrote: > >On Tue, Jun 23, 2015 at 10:45:42PM +0200, David Härdeman wrote: > >>On 2015-06-18 23:23, Mauro Carvalho Chehab wrote: > >>>Em Sun, 14 Jun 2015 01:44:54 +0200 > >>>David

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-17 Thread Hans Verkuil
On 07/16/2015 09:04 AM, Antti Palosaari wrote: > HackRF SDR device has both receiver and transmitter. There is limitation > that receiver and transmitter cannot be used at the same time > (half-duplex operation). That patch implements transmitter support to > existing receiver only driver. > > Cc:

[GIT PULL FOR v4.3] Various fixes/enhancements

2015-07-17 Thread Hans Verkuil
The following changes since commit 8783b9c50400c6279d7c3b716637b98e83d3c933: [media] SMI PCIe IR driver for DVBSky cards (2015-07-06 08:26:16 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v4.3b for you to fetch changes up to fdc2ba95f935e6bae2d

Re: [PATCH v2 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Hans Verkuil
On 07/17/2015 12:58 PM, Philipp Zabel wrote: > Add support for probing the TC358743 subdevice from device tree. > The reference clock must be supplied using the common clock bindings. > MIPI CSI-2 specific properties are parsed from the OF graph endpoint > node and support for a non-continuous MIPI

Re: [PATCH 0/9 v7] Helper to abstract vma handling in media layer

2015-07-17 Thread Hans Verkuil
Hi Jan, On 07/13/2015 04:55 PM, Jan Kara wrote: > From: Jan Kara > > Hello, > > I'm sending the seventh version of my patch series to abstract vma handling > from the various media drivers. Since the previous version there are just > minor cleanups and fixes (see detailed changelog at the end

[PATCH] cobalt: allow fewer than 8 PCIe lanes

2015-07-17 Thread Hans Verkuil
Currently the cobalt driver refuses to load if fewer than 8 PCIe lanes are assigned. This patch changes this and just issues a warning. The only time it will refuse to load is if the number of assigned lanes is less than what the PCIe host is capable of since this suggests that the card isn't seate

[PATCH] cobalt: accept unchanged timings when vb2_is_busy().

2015-07-17 Thread Hans Verkuil
When vb2_is_busy() it should still be possible to call S_DV_TIMINGS provided the new timings are the same as the current timings. For input 1 (test generator) the size is always 1080p, so just return that. Fixes a v4l2-compliance issue. Signed-off-by: Hans Verkuil --- drivers/media/pci/cobalt/

Re: [PATCH 3/5] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Am Dienstag, den 14.07.2015, 12:15 +0200 schrieb Hans Verkuil: [...] > As you said, it's not public and without the formulas there is nothing you > can do but hardcode it. > > If I understand this correctly these values depend on the link frequency, > so the DT should contain the link frequency an

[PATCH v2 4/4] [media] tc358743: add direct interrupt handling

2015-07-17 Thread Philipp Zabel
When probed from device tree, the i2c client driver can handle the interrupt on its own. Signed-off-by: Philipp Zabel --- drivers/media/i2c/tc358743.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 822

[PATCH v2 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Add support for probing the TC358743 subdevice from device tree. The reference clock must be supplied using the common clock bindings. MIPI CSI-2 specific properties are parsed from the OF graph endpoint node and support for a non-continuous MIPI CSI-2 clock is added. Signed-off-by: Philipp Zabel

[PATCH v2 1/4] [media] tc358743: register v4l2 asynchronous subdevice

2015-07-17 Thread Philipp Zabel
Add support for registering the sensor subdevice using the v4l2-async API. Signed-off-by: Philipp Zabel --- Changes since v1: - Added missing media_entity_cleanup --- drivers/media/i2c/tc358743.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/d

[PATCH v2 2/4] [media] tc358743: enable v4l2 subdevice devnode

2015-07-17 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 8d9906b..a7542e5 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -166

Re: [PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-07-17 Thread Hans Verkuil
On 07/17/2015 12:29 PM, Inki Dae wrote: > On 2015년 07월 17일 19:20, Hans Verkuil wrote: >> On 07/13/2015 04:55 PM, Jan Kara wrote: >>> From: Jan Kara >>> >>> Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). >>> This removes the knowledge about vmas and mmap_sem locking from

Re: [PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-07-17 Thread Inki Dae
On 2015년 07월 17일 19:20, Hans Verkuil wrote: > On 07/13/2015 04:55 PM, Jan Kara wrote: >> From: Jan Kara >> >> Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). >> This removes the knowledge about vmas and mmap_sem locking from exynos >> driver. Also it fixes a problem that

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-07-17 Thread Hans Verkuil
On 07/13/2015 04:55 PM, Jan Kara wrote: > From: Jan Kara > > Provide new function get_vaddr_frames(). This function maps virtual > addresses from given start and fills given array with page frame numbers of > the corresponding pages. If given start belongs to a normal vma, the function > grabs r

Re: [PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-07-17 Thread Hans Verkuil
On 07/13/2015 04:55 PM, Jan Kara wrote: > From: Jan Kara > > Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). > This removes the knowledge about vmas and mmap_sem locking from exynos > driver. Also it fixes a problem that the function has been mapping user > provided addr

[GIT PULL FOR v4.3] coda driver fixes/enhancements

2015-07-17 Thread Hans Verkuil
The following changes since commit 8783b9c50400c6279d7c3b716637b98e83d3c933: [media] SMI PCIe IR driver for DVBSky cards (2015-07-06 08:26:16 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git coda for you to fetch changes up to 841847fa5b355add85a0d925

[PATCH/RFC 06/51] media: flash: use led_set_brightness_sync for torch brightness

2015-07-17 Thread Jacek Anaszewski
LED subsystem shifted responsibility for choosing between SYNC or ASYNC way of setting brightness from drivers to the caller. Adapt the wrapper to those changes. Signed-off-by: Jacek Anaszewski Cc: Sakari Ailus Cc: Pavel Machek Cc: linux-media@vger.kernel.org --- drivers/media/v4l2-core/v4l2-f

Re: [PATCH v4 1/1] V4L2: platform: Add Renesas R-Car JPEG codec driver.

2015-07-17 Thread Hans Verkuil
Hi Mikhail, On 06/26/2015 01:37 PM, Mikhail Ulyanov wrote: > Here's the driver for the Renesas R-Car JPEG processing unit. > > The driver is implemented within the V4L2 framework as a memory-to-memory > device. It presents two video nodes to userspace, one for the encoding part, > and one for th

Re: [RFC v3 02/19] media/v4l2-core: add new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-07-17 Thread Ricardo Ribalda Delgado
Hi Sakari Thanks for your review! On Fri, Jul 17, 2015 at 9:13 AM, Sakari Ailus wrote: >> #define VIDIOC_QUERY_EXT_CTRL_IOWR('V', 103, struct >> v4l2_query_ext_ctrl) >> +#define VIDIOC_G_DEF_EXT_CTRLS _IOWR('V', 104, struct >> v4l2_ext_controls) > > I assume that if an applicat

Re: [RFC v3 02/19] media/v4l2-core: add new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-07-17 Thread Hans Verkuil
On 07/17/2015 09:13 AM, Sakari Ailus wrote: > Hi Ricardo, > > Thanks for the set, and my apologies for the late review! > > On Fri, Jun 12, 2015 at 06:46:21PM +0200, Ricardo Ribalda Delgado wrote: >> This ioctl returns the default value of one or more extended controls. >> It has the same interfa

Re: [RFC v4 04/19] media/usb/uvc: Implement vivioc_g_def_ext_ctrls

2015-07-17 Thread Laurent Pinchart
Hi Ricardo, Thank you for the patch. On Thursday 16 July 2015 10:56:43 Ricardo Ribalda Delgado wrote: > Callback needed by ioctl VIDIOC_G_DEF_EXT_CTRLS as this driver does not > use the controller framework. > > Signed-off-by: Ricardo Ribalda Delgado Acked-by: Laurent Pinchart However, I sha

Re: [RFC v3 02/19] media/v4l2-core: add new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-07-17 Thread Sakari Ailus
Hi Ricardo, Thanks for the set, and my apologies for the late review! On Fri, Jun 12, 2015 at 06:46:21PM +0200, Ricardo Ribalda Delgado wrote: > This ioctl returns the default value of one or more extended controls. > It has the same interface as VIDIOC_EXT_CTRLS. > > It is needed due to the fac