Re: [PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-07-13 Thread Hans Verkuil
On 07/09/2015 02:12 PM, Hans Verkuil wrote: On 07/09/2015 01:48 PM, Jan Kara wrote: Hello, Hans, did you have a chance to look at these patches? I have tested them with the vivid driver but it would be good if you could run them through your standard testing procedure as well. Andrew has

Re: [PATCH 1/5] [media] tc358743: register v4l2 asynchronous subdevice

2015-07-13 Thread Hans Verkuil
On 07/10/2015 03:11 PM, Philipp Zabel wrote: Add support for registering the sensor subdevice using the v4l2-async API. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 12 1 file changed, 12 insertions(+) diff --git

Re: [Patch v3 1/1] media: am437x-vpfe: Requested frame size and fmt overwritten by current sensor setting

2015-07-13 Thread Hans Verkuil
On 06/29/2015 11:19 PM, Benoit Parrot wrote: Upon a S_FMT the input/requested frame size and pixel format is overwritten by the current sub-device settings. Fix this so application can actually set the frame size and format. Fixes: 417d2e507edc ([media] media: platform: add VPFE capture

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

2015-07-13 Thread Hans Verkuil
Nothing spectacular here, just a bunch of fixes and enhancements. It's v2 because I managed to drop one chunk of Geert's patch in v1. Regards, Hans The following changes since commit 8783b9c50400c6279d7c3b716637b98e83d3c933: [media] SMI PCIe IR driver for DVBSky cards (2015-07-06

[PATCH] [media] bdisp: fix debug info memory access

2015-07-13 Thread Fabien Dessenne
bdisp_dev-dbg.copy_node shall be a copy of (and not point to) bdisp_ctx-node, since this resource is freed upon driver release. Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/bdisp-hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH 2/5] [media] tc358743: enable v4l2 subdevice devnode

2015-07-13 Thread Hans Verkuil
On 07/10/2015 03:11 PM, Philipp Zabel wrote: Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- 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 48d1575..0be6d9f 100644

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

2015-07-13 Thread Hans Verkuil
Nothing spectacular here, just a bunch of fixes and enhancements. Regards, Hans 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 PULL FOR v4.3] Add Toshiba TC358743 HDMI to CSI-2 bridge

2015-07-13 Thread Hans Verkuil
Add the new Toshiba TC358743 HDMI to CSI-2 bridge driver. Regards, Hans 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:

Re: [PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-07-13 Thread Lars-Peter Clausen
On 07/13/2015 11:02 AM, Hans Verkuil wrote: +static int adv76xx_subscribe_event(struct v4l2_subdev *sd, + struct v4l2_fh *fh, + struct v4l2_event_subscription *sub) +{ + switch (sub-type) { + case

Re: [PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-07-13 Thread Hans Verkuil
On 06/24/2015 06:50 PM, Lars-Peter Clausen wrote: Use the new v4l2_subdev_notify_event() helper function to deliver the resolution change event to userspace via the v4l2 subdev event queue as well as to the bridge driver using the callback notify mechanism. This allows userspace applications

Re: [Patch v3 1/1] media: am437x-vpfe: Fix a race condition during release

2015-07-13 Thread Hans Verkuil
On 06/29/2015 11:18 PM, Benoit Parrot wrote: There was a race condition where during cleanup/release operation on-going streaming would cause a kernel panic because the hardware module was disabled prematurely with IRQ still pending. Fixes: 417d2e507edc ([media] media: platform: add VPFE

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

2015-07-13 Thread 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 p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] [media] v4l2-subdev: return -EPIPE instead of -EINVAL in link validate default

2015-07-13 Thread Laurent Pinchart
Hello, On Monday 13 July 2015 11:03:43 Sakari Ailus wrote: Helen Fornazier wrote: On Tue, Jun 30, 2015 at 4:26 PM, Helen Fornazier wrote: On Tue, Jun 30, 2015 at 6:19 AM, Sakari Ailus wrote: Laurent Pinchart wrote: On Monday 29 June 2015 10:23:34 Sakari Ailus wrote: Helen Fornazier

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

2015-07-13 Thread Hans Verkuil
On 07/10/2015 03:11 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: dvb_usb_af9015: command failed=1 _ kernel = 4.1.x

2015-07-13 Thread poma
On 07.07.2015 10:48, poma wrote: On 06.07.2015 22:17, Jose Alberto Reguero wrote: I made the patch for the af9035. I have not a af9015 whith mxl5007 and dual channel. Revert it, if it cause regresions. Jose Alberto Thanks. From e19560ea038e54dc57be717db55f19d449df63f0 Mon Sep 17

Re: [RFC v04] Driver for Toshiba TC358743

2015-07-13 Thread Hans Verkuil
Hi Mats, Philipp, I'll merge this driver, but not yet the follow-ups from Philipp since those need some more work. Regards, Hans On 07/09/2015 10:45 AM, matra...@cisco.com wrote: From: Mats Randgaard matra...@cisco.com Improvements based on feedback from Hans Verkuil: - Use

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

2015-07-13 Thread Hans Verkuil
Laurent, Can you review/ack this since it touches on uvc? Thanks! Hans On 06/12/2015 06:46 PM, 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

cron job: media_tree daily build: OK

2015-07-13 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 Jul 14 04:00:16 CEST 2015 git branch: test git hash: 8783b9c50400c6279d7c3b716637b98e83d3c933 gcc

file permissions for a video device

2015-07-13 Thread karthik poduval
Hi All, I was working with a USB camera. As soon as I plug it into the host, it probes and video device node gets created with the following permission. # ll /dev/video0 crw--- root root 81, 0 2015-07-13 20:39 video0 However it grants permissions to only a root user. I need to be

Re: [PATCH] Doc: pps: Fix file name in pps.txt

2015-07-13 Thread Rodolfo Giometti
On Mon, Jul 13, 2015 at 07:21:50AM -0600, Jonathan Corbet wrote: On Mon, 13 Jul 2015 08:23:15 +0200 Rodolfo Giometti giome...@enneenne.com wrote: On Mon, Jul 13, 2015 at 12:29:11PM +0900, Masanari Iida wrote: This patch fix a file name of example code. Signed-off-by: Masanari Iida

[PATCH 3/9] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of hand made mapping of virtual address to physical address. Also the function leaked page reference from get_user_pages() so fix that by properly release the reference when omap_vout_buffer_release()

Re: [PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-07-13 Thread Jan Kara
On Mon 13-07-15 10:45:25, Hans Verkuil wrote: On 07/09/2015 02:12 PM, Hans Verkuil wrote: On 07/09/2015 01:48 PM, Jan Kara wrote: Hello, Hans, did you have a chance to look at these patches? I have tested them with the vivid driver but it would be good if you could run them through

Re: [PATCH] Doc: pps: Fix file name in pps.txt

2015-07-13 Thread Jonathan Corbet
On Mon, 13 Jul 2015 08:23:15 +0200 Rodolfo Giometti giome...@enneenne.com wrote: On Mon, Jul 13, 2015 at 12:29:11PM +0900, Masanari Iida wrote: This patch fix a file name of example code. Signed-off-by: Masanari Iida standby2...@gmail.com Signed-off-by: Rodolfo Giometti

[PATCH 7/9] media: vb2: Convert vb2_dc_get_userptr() to use frame vector

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Convert vb2_dc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com

[PATCH 8/9] media: vb2: Remove unused functions

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Conversion to the use of pinned pfns made some functions unused. Remove them. Also there's no need to lock mmap_sem in __buf_prepare() anymore. Acked-by: Marek Szyprowski m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan

[PATCH 4/9] vb2: Provide helpers for mapping virtual addresses

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Provide simple helper functions to map virtual address range into an array of pfns / pages. Acked-by: Marek Szyprowski m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara j...@suse.cz ---

[PATCH 6/9] media: vb2: Convert vb2_vmalloc_get_userptr() to use frame vector

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Convert vb2_vmalloc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski m.szyprow...@samsung.com Tested-by: Marek Szyprowski

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

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz 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 reference to each of the pages to pin

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

2015-07-13 Thread Hans Verkuil
On 07/13/2015 04:55 PM, Jan Kara wrote: From: Jan Kara j...@suse.cz 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 of

Re: [PATCH 0/5] i.MX5/6 mem2mem scaler

2015-07-13 Thread Fabio Estevam
Hi Philipp, On Fri, Apr 10, 2015 at 11:41 AM, Kamil Debski k.deb...@samsung.com wrote: Hi, From: linux-media-ow...@vger.kernel.org [mailto:linux-media- ow...@vger.kernel.org] On Behalf Of Philipp Zabel Sent: Tuesday, March 17, 2015 4:48 PM Hi, this series uses the IPU IC post-processing

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

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz 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 address without holding mmap_sem.

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

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz 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 of the email). After this patch set drivers have

[PATCH 5/9] media: vb2: Convert vb2_dma_sg_get_userptr() to use frame vector

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Acked-by: Marek Szyprowski m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara j...@suse.cz --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 95 +- 1 file changed, 15 insertions(+), 80

[PATCH 1/9] [media] vb2: Push mmap_sem down to memops

2015-07-13 Thread Jan Kara
From: Jan Kara j...@suse.cz Currently vb2 core acquires mmap_sem just around call to __qbuf_userptr(). However since commit f035eb4e976ef5 (videobuf2: fix lockdep warning) it isn't necessary to acquire it so early as we no longer have to drop queue mutex before acquiring mmap_sem. So push

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

2015-07-13 Thread David Härdeman
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 Härdeman da...@hardeman.nu escreveu: Maurowake up? I hope you're not

[PATCH] [media] DocBook: Fix typo in intro.xml

2015-07-13 Thread Masanari Iida
This patch fix spelling typos in intro.xml. This xml file is not created from comments within source, I fix the xml file. Signed-off-by: Masanari Iida standby2...@gmail.com --- Documentation/DocBook/media/dvb/intro.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Media Controller - graph_mutex

2015-07-13 Thread Shuah Khan
All, ALSA has to make media_entity_pipeline_start() call in irq path. I am seeing warnings that the graph_mutex is unsafe irq lock as expected. We have to update MC start/stop pipeline to be irq safe for ALSA. Maybe there are other MC interfaces that need to be irq safe, but I haven't seen any

Re: [PATCH] Doc: pps: Fix file name in pps.txt

2015-07-13 Thread Rodolfo Giometti
On Mon, Jul 13, 2015 at 12:29:11PM +0900, Masanari Iida wrote: This patch fix a file name of example code. Signed-off-by: Masanari Iida standby2...@gmail.com Signed-off-by: Rodolfo Giometti giome...@enneenne.com -- HCE Engineering e-mail: giome...@hce-engineering.com

rockchip v4l support ?

2015-07-13 Thread Christoph Fritz
Hi, is someone working on v4l (camera stack) support for rockchip SoCs? Currently, it lacks pretty much everything. So what is your guess in the amount of work at a rough estimate? Thanks -- chf -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a

Re: rockchip v4l support ?

2015-07-13 Thread Hans Verkuil
Hi Christoph, On 07/13/2015 09:20 AM, Christoph Fritz wrote: Hi, is someone working on v4l (camera stack) support for rockchip SoCs? I'm not aware of any activity, you're the first to ask about this on the linux-media mailinglist. However, a quick google turns up this:

Re: [PATCH] [media] v4l2-subdev: return -EPIPE instead of -EINVAL in link validate default

2015-07-13 Thread Sakari Ailus
Hi Helen, Helen Fornazier wrote: Hi, On Tue, Jun 30, 2015 at 4:26 PM, Helen Fornazier helen.fornaz...@gmail.com wrote: Hi Sakari and Laurent, Thanks for reviewing this On Tue, Jun 30, 2015 at 6:19 AM, Sakari Ailus sakari.ai...@linux.intel.com wrote: Hi Laurent, Laurent Pinchart

Re: rockchip v4l support ?

2015-07-13 Thread Christoph Fritz
Hi Alpha Lin, please see my question below. On Mon, 2015-07-13 at 09:54 +0200, Hans Verkuil wrote: Hi Christoph, On 07/13/2015 09:20 AM, Christoph Fritz wrote: Hi, is someone working on v4l (camera stack) support for rockchip SoCs? I'm not aware of any activity, you're the first

Re: [PATCH v2 1/6] v4l2-ctrls: Add new S8, S16 and S32 compound control types

2015-07-13 Thread Hans Verkuil
On 07/13/2015 12:18 AM, Laurent Pinchart wrote: Hi Sadegh, On Friday 10 July 2015 15:45:23 sadegh abbasi wrote: Hi Hans / Laurent, Just wondering what has happened to these patches. I used them in my driver and can not find them in 4.1 release. Have they been rejected? Not exactly. The