[RFC PATCH v9 3/6] media: videobuf2: Separate vb2_poll()

2015-11-03 Thread Junghak Sung
Separate vb2_poll() into core and v4l2 part. Signed-off-by: Junghak Sung Signed-off-by: Geunyoung Kim Acked-by: Seung-Woo Kim Acked-by: Inki Dae --- drivers/media/v4l2-core/videobuf2-v4l2.c | 80

[RFC PATCH v9 2/6] media: videobuf2: Add set_timestamp to struct vb2_queue

2015-11-03 Thread Junghak Sung
Add set_timestamp to struct vb2_queue as a flag set if vb2-core should set timestamps. Signed-off-by: Junghak Sung Signed-off-by: Geunyoung Kim Acked-by: Seung-Woo Kim Acked-by: Inki Dae ---

[RFC PATCH v9 6/6] media: videobuf2: Move vb2_fileio_data and vb2_thread to core part

2015-11-03 Thread Junghak Sung
Move things related with vb2 file I/O and vb2_thread without doing any functional changes. After that, videobuf2-internal.h is removed because it is not necessary any more. Signed-off-by: Junghak Sung Signed-off-by: Geunyoung Kim Acked-by:

[RFC PATCH v9] Refactoring Videobuf2 for common use

2015-11-03 Thread Junghak Sung
Hello everybody, This is the 9th round for refactoring Videobuf2(a.k.a VB2). The purpose of this patch series is to separate existing VB2 framework into core part and V4L2 specific part. So that not only V4L2 but also other frameworks can use them to manage buffer and utilize queue. Why do we

[RFC PATCH v9 1/6] media: videobuf2: Move timestamp to vb2_buffer

2015-11-03 Thread Junghak Sung
Move timestamp from struct vb2_v4l2_buffer to struct vb2_buffer for common use, and change its type to u64 in order to handling y2038 problem. This patch also includes all device drivers' changes related to this restructuring. Signed-off-by: Junghak Sung Signed-off-by:

[RFC PATCH v9 4/6] media: videobuf2: last_buffer_queued is set at fill_v4l2_buffer()

2015-11-03 Thread Junghak Sung
The location in which last_buffer_queued is set is moved to fill_v4l2_buffer(). So, __vb2_perform_fileio() can use vb2_core_dqbuf() instead of vb2_internal_dqbuf(). Signed-off-by: Junghak Sung Signed-off-by: Geunyoung Kim Acked-by: Seung-Woo Kim

[RFC PATCH v9 5/6] media: videobuf2: Refactor vb2_fileio_data and vb2_thread

2015-11-03 Thread Junghak Sung
Replace v4l2-stuffs with common things in struct vb2_fileio_data and vb2_thread(). Signed-off-by: Junghak Sung Signed-off-by: Geunyoung Kim Acked-by: Seung-Woo Kim Acked-by: Inki Dae ---

[GIT PULL for v4.4-rc1] media updates

2015-11-03 Thread Mauro Carvalho Chehab
Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.4-1 For the media updates, including: - Lots of improvements at the kABI documentation; - Split of Videobuf2 into a common part and a V4L2 specific one; - Split of the VB2 tracing events

Re: [PATCH v6 1/3] iommu: Implement common IOMMU ops for DMA mapping

2015-11-03 Thread Robin Murphy
Hi Tomasz, On 02/11/15 13:43, Tomasz Figa wrote: I'd like to know what is the boundary mask and what hardware imposes requirements like this. The cost here is not only over-allocating a little, but making many, many buffers contiguously mappable on the CPU, unmappable contiguously in IOMMU,

dvb_usb_cxusb triggers "DMA-API: device driver maps memory from stack" error

2015-11-03 Thread John Barberio
Attaching an August DVB-T210 usb stick to the system causes a "DMA-API: device driver maps memory from stack" error, and while the device registers and appears functional, no data is produced from the tuner. Bus 001 Device 007: ID 0572:c688 Conexant Systems (Rockwell), Inc. Geniatech T230

Re: [PATCH v6 1/3] iommu: Implement common IOMMU ops for DMA mapping

2015-11-03 Thread Russell King - ARM Linux
On Tue, Nov 03, 2015 at 05:41:24PM +, Robin Murphy wrote: > Hi Tomasz, > > On 02/11/15 13:43, Tomasz Figa wrote: > >Agreed. The dma_map_*() API is not guaranteed to return a single > >contiguous part of virtual address space for any given SG list. > >However it was understood to be able to

Geniatech / Mygica T230

2015-11-03 Thread Mike Parkins
Hi, I can't get this dvb-t2 USB device to work despite the linuxtv site claiming it is working since 3.19 kernel. I tried talking to the driver team on IRC a few months ago and they said they would look at it but I have recently pulled the linuxtv git tree and compiled it on my Linux Mint 4.09

Re: [PATCH 05/19] media: Move media graph state for streamon/off to the pipeline

2015-11-03 Thread Sakari Ailus
Hi Mauro, On Wed, Oct 28, 2015 at 09:38:47AM +0900, Mauro Carvalho Chehab wrote: > Em Tue, 27 Oct 2015 01:01:36 +0200 > Sakari Ailus escreveu: > > > The struct media_entity_graph was allocated in the stack, limiting the > > number of entities that could be reasonably

Re: [PATCH 14/19] v4l: omap3isp: Use media entity enumeration API

2015-11-03 Thread Sakari Ailus
Hi Mauro, On Wed, Oct 28, 2015 at 10:30:30AM +0900, Mauro Carvalho Chehab wrote: > Em Tue, 27 Oct 2015 01:01:45 +0200 > Sakari Ailus escreveu: > > > From: Sakari Ailus > > > > Signed-off-by: Sakari Ailus > > ---

Re: [PATCH 03/19] media: Add an API to manage entity enumerations

2015-11-03 Thread Sakari Ailus
Hi Mauro, Many thanks for the thorough review of the set! On Wed, Oct 28, 2015 at 11:09:31AM +0900, Mauro Carvalho Chehab wrote: > Em Tue, 27 Oct 2015 01:01:34 +0200 > Sakari Ailus escreveu: > > > From: Sakari Ailus > > > > This is useful in

Re: [PATCH 04/19] media: Move struct media_entity_graph definition up

2015-11-03 Thread Sakari Ailus
Hi Mauro, On Wed, Oct 28, 2015 at 09:36:50AM +0900, Mauro Carvalho Chehab wrote: > Em Tue, 27 Oct 2015 01:01:35 +0200 > Sakari Ailus escreveu: > > > It will be needed in struct media_pipeline shortly. > > > > Signed-off-by: Sakari Ailus > >

Re: [PATCH 07/19] media: Use the new media_entity_graph_walk_start()

2015-11-03 Thread Sakari Ailus
Hi Mauro, On Wed, Oct 28, 2015 at 09:43:43AM +0900, Mauro Carvalho Chehab wrote: > Em Tue, 27 Oct 2015 01:01:38 +0200 > Sakari Ailus escreveu: > > > Signed-off-by: Sakari Ailus > > Please add some documentation at the body for all patches. >

[v4l-utils 0/5] Misc build fixes

2015-11-03 Thread Thomas Petazzoni
Hello, Here is a small set of fixes against v4l-utils that we have accumulated in the Buildroot project to fix a number of build issues. Those build issues are related to linking with the musl C library, or do linking with the libintl library when the gettext functions are not provided by the C

[v4l-utils 5/5] dvb/keytable: fix missing libintl linking

2015-11-03 Thread Thomas Petazzoni
From: Peter Seiderer Signed-off-by: Peter Seiderer --- utils/dvb/Makefile.am | 8 utils/keytable/Makefile.am | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/dvb/Makefile.am b/utils/dvb/Makefile.am index

[v4l-utils 3/5] utils/v4l2-compliance: Include instead of

2015-11-03 Thread Thomas Petazzoni
Code should not be including header, but instead it should include the public header. On glibc and uClibc, simply includes , but with the musl C library, it spits out a warning telling you that you're not doing the right thing: In file included from ./v4l-helpers.h:12:0, from

[v4l-utils 2/5] utils: Properly use ENABLE_NLS for locale related code

2015-11-03 Thread Thomas Petazzoni
Various tools in utils/ use ENABLE_NLS to decide whether locale support is available or not, and only include if ENABLE_NLS is defined. However, they unconditionally use functions defined in such as setlocale(), bindtextdomain() or textdomain(), which causes build failures when the prototypes of

[v4l-utils 1/5] libv4lsyscall-priv.h: Use off_t instead of __off_t

2015-11-03 Thread Thomas Petazzoni
__off_t is a kernel internal symbol, which happens to be user-visible with glibc, but not necessarily with other C libraries such as musl. In v4l-utils code, it's mainly used for the mmap() prototype, but the mmap() manpage really uses off_t, not __off_t. Switching from __off_t to off_t allows

[v4l-utils 4/5] libv4lsyscall-priv.h: Only define SYS_mmap2 if needed

2015-11-03 Thread Thomas Petazzoni
The logic in libv4lsyscall-priv.h unconditionally defines SYS_mmap2 on Linux systems, but with current versions of C libraries, SYS_mmap2 is already defined, and therefore this additional definition causes some build warnings: In file included from processing/libv4lprocessing.h:24:0,

[PATCH] v4l2-ctrls: remove unclaimed v4l2_ctrl_add_ctrl() interface

2015-11-03 Thread Vladimir Zapolskiy
v4l2_ctrl_add_ctrl() interface has no users since its introduction in commit 0996517cf8ea ("V4L/DVB: v4l2: Add new control handling framework") and its functionality is covered by v4l2_ctrl_new() and derivative interfaces, so it is safe to remove the interface from the kernel. Signed-off-by:

[PATCH] libdvbv5: fix the count of partial receptions

2015-11-03 Thread Felipe Eduardo Concha Avello
Currently the number of elements are counted wrong, its divided by the size of a pointer and not the size of the struct isdb_desc_partial_reception (uint16_t). I noticed this when using "dvbv5-scan -v" in order to debug an ISDB-T table. Signed-off-by: Felipe Concha Avello

Re: [PATCH v6 1/3] iommu: Implement common IOMMU ops for DMA mapping

2015-11-03 Thread Tomasz Figa
On Wed, Nov 4, 2015 at 2:41 AM, Robin Murphy wrote: > Hi Tomasz, > > On 02/11/15 13:43, Tomasz Figa wrote: >> >> I'd like to know what is the boundary mask and what hardware imposes >> requirements like this. The cost here is not only over-allocating a >> little, but making

cron job: media_tree daily build: ERRORS

2015-11-03 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: Wed Nov 4 04:00:20 CET 2015 git branch: test git hash: 79f5b6ae960d380c829fb67d5dadcd1d025d2775 gcc

Re: [PATCH v6 1/3] iommu: Implement common IOMMU ops for DMA mapping

2015-11-03 Thread Tomasz Figa
On Wed, Nov 4, 2015 at 3:40 AM, Russell King - ARM Linux wrote: > On Tue, Nov 03, 2015 at 05:41:24PM +, Robin Murphy wrote: >> Hi Tomasz, >> >> On 02/11/15 13:43, Tomasz Figa wrote: >> >Agreed. The dma_map_*() API is not guaranteed to return a single >> >contiguous

Re: [PATCH MC Next Gen v2 2/3] sound/usb: Create media mixer function and control interface entities

2015-11-03 Thread Shuah Khan
On 10/25/2015 03:37 PM, Shuah Khan wrote: > On 10/22/2015 01:16 AM, Takashi Iwai wrote: >> On Wed, 21 Oct 2015 01:25:15 +0200, >> Shuah Khan wrote: >>> >>> Add support for creating MEDIA_ENT_F_AUDIO_MIXER entity for >>> each mixer and a MEDIA_INTF_T_ALSA_CONTROL control interface >>> entity that

Re: [PATCH MC Next Gen v2 2/3] sound/usb: Create media mixer function and control interface entities

2015-11-03 Thread Takashi Iwai
On Tue, 03 Nov 2015 17:06:45 +0100, Shuah Khan wrote: > > On 10/25/2015 03:37 PM, Shuah Khan wrote: > > On 10/22/2015 01:16 AM, Takashi Iwai wrote: > >> On Wed, 21 Oct 2015 01:25:15 +0200, > >> Shuah Khan wrote: > >>> > >>> Add support for creating MEDIA_ENT_F_AUDIO_MIXER entity for > >>> each

Re: [PATCH MC Next Gen v2 2/3] sound/usb: Create media mixer function and control interface entities

2015-11-03 Thread Shuah Khan
On 11/03/2015 09:23 AM, Takashi Iwai wrote: > On Tue, 03 Nov 2015 17:06:45 +0100, > Shuah Khan wrote: >> >> On 10/25/2015 03:37 PM, Shuah Khan wrote: >>> On 10/22/2015 01:16 AM, Takashi Iwai wrote: On Wed, 21 Oct 2015 01:25:15 +0200, Shuah Khan wrote: > > Add support for creating