[PATCH 2/3] [media] s5p-mfc: remove unnecessary check in try_fmt

2016-05-06 Thread ayaka
We don't need to request the sizeimage or num_planes in try_fmt. Signed-off-by: ayaka --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c

[PATCH 3/3] [media] s5p-mfc: fix a typo in s5p_mfc_dec

2016-05-06 Thread ayaka
It is a cosmetic commit. Signed-off-by: ayaka --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index

[RESEND PATCH] [PATCH 0/3] A few patches make s5p-mfc work with Gstreamer

2016-05-06 Thread ayaka
A user-space application will follow the V4l2 document, but I meet a problem when I test it with Gstreamer. I look at the V4l2 document, the driver check the external setting which the document not cover, so that is what the second patch do. The first patch comes from chromium project, but I

[PATCH 1/3] [media] s5p-mfc: Add handling of buffer freeing reqbufs request

2016-05-06 Thread ayaka
The encoder forget the work to call hardware to release its buffers. This patch came from chromium project. I just change its code style and make the API match with new kernel. Signed-off-by: ayaka --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 3 +++ 1 file changed, 3

Re: [RESEND PATCH] [media] s5p-mfc: don't close instance after free OUTPUT buffers

2016-05-06 Thread ayaka
Please also notice those patches (A few patches make s5p-mfc work with Gstreamer) I resent to mail recently. Without them, the encoder won't work with Gstreamer either. I hope it will be merged as soon as possible. 在 2016年05月07日 06:11, Javier Martinez Canillas 写道: From: ayaka

Hello Dear

2016-05-06 Thread Miss Zara
My name is Miss Zara did you receive the mail i send to you last time? please get back to me ok my email zar...@live.com to enable me to resend it back to you Zara -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org

Re: [RESEND PATCH] [media] s5p-mfc: don't close instance after free OUTPUT buffers

2016-05-06 Thread Nicolas Dufresne
Thanks for re-submitting. See inline two typos to fix in teh comment. cheers, Nicolas Le vendredi 06 mai 2016 à 18:11 -0400, Javier Martinez Canillas a écrit : > From: ayaka > > User-space applications can use the VIDIOC_REQBUFS ioctl to determine if a > memory mapped, user

[RESEND PATCH] [media] s5p-mfc: don't close instance after free OUTPUT buffers

2016-05-06 Thread Javier Martinez Canillas
From: ayaka User-space applications can use the VIDIOC_REQBUFS ioctl to determine if a memory mapped, user pointer or DMABUF based I/O is supported by the driver. So a set of VIDIOC_REQBUFS ioctl calls will be made with count 0 and then the real VIDIOC_REQBUFS call with count

Re: [RFC 08/22] videodev2.h: Add request field to v4l2_pix_format_mplane

2016-05-06 Thread Sakari Ailus
Hi Nicolas, On Fri, May 06, 2016 at 12:33:11PM -0400, Nicolas Dufresne wrote: > Le vendredi 06 mai 2016 à 13:53 +0300, Sakari Ailus a écrit : > > From: Laurent Pinchart > > > > Let userspace specify a request ID when getting or setting formats. > > The

Re: [PATCH v4] media: vb2-dma-contig: configure DMA max segment size properly

2016-05-06 Thread Mauro Carvalho Chehab
Em Wed, 04 May 2016 11:00:03 +0200 Marek Szyprowski escreveu: > This patch lets vb2-dma-contig memory allocator to configure DMA max > segment size properly for the client device. Setting it is needed to let > DMA-mapping subsystem to create a single, contiguous mapping

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Mauro Carvalho Chehab
Em Fri, 6 May 2016 18:26:10 +0200 Markus Heiser escreveu: > Hi Mauro, > > Am 06.05.2016 um 13:03 schrieb Mauro Carvalho Chehab > : > > Yeah, it looks better, however table truncation seem to be > > happening also on other parts, like the

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Markus Heiser
Hi Mauro, Am 06.05.2016 um 13:03 schrieb Mauro Carvalho Chehab : > Yeah, it looks better, however table truncation seem to be > happening also on other parts, like the tables on this page: > > >

Re: [RFC 08/22] videodev2.h: Add request field to v4l2_pix_format_mplane

2016-05-06 Thread Nicolas Dufresne
Le vendredi 06 mai 2016 à 13:53 +0300, Sakari Ailus a écrit : > From: Laurent Pinchart > > Let userspace specify a request ID when getting or setting formats. > The > support is limited to the multi-planar API at the moment, extending > it > to the

[GIT PULL 4.7] af9035

2016-05-06 Thread Antti Palosaari
The following changes since commit 45c175c4ae9695d6d2f30a45ab7f3866cfac184b: [media] tw686x: avoid going past array (2016-04-26 06:38:53 -0300) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git af9035 for you to fetch changes up to

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Jani Nikula
On Fri, 06 May 2016, Markus Heiser wrote: > Am 06.05.2016 um 17:06 schrieb Jani Nikula : > >> On Fri, 06 May 2016, Markus Heiser wrote: >>> @Jonathan: what do you think? Should I prepare a patch >>> with a basic reST

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Markus Heiser
Am 06.05.2016 um 17:06 schrieb Jani Nikula : > On Fri, 06 May 2016, Markus Heiser wrote: >> @Jonathan: what do you think? Should I prepare a patch >> with a basic reST (sphinx) build infrastructure, including >> >> * a folder for sphinx docs:

Re: [RFC 00/22] Media request API

2016-05-06 Thread Sakari Ailus
On Fri, May 06, 2016 at 01:53:09PM +0300, Sakari Ailus wrote: > My open questions and to-do items I'm aware of: > > - Global ID space vs. file handles. Should requests be referred to by > global IDs or file handles specific to a process? V4L2 uses IDs but V4L2 > devices (other than m2m) can

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Mauro Carvalho Chehab
Em Fri, 6 May 2016 18:06:49 +0300 Jani Nikula escreveu: > On Fri, 06 May 2016, Markus Heiser wrote: > > @Jonathan: what do you think? Should I prepare a patch > > with a basic reST (sphinx) build infrastructure, including > > > > * a folder for

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Mauro Carvalho Chehab
Em Fri, 6 May 2016 16:27:21 +0200 Markus Heiser escreveu: > Hi all, hi Jonathan, > > Am 06.05.2016 um 15:42 schrieb Mauro Carvalho Chehab > : > > > Em Fri, 6 May 2016 15:32:35 +0200 > > Markus Heiser escreveu: > >

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Jani Nikula
On Fri, 06 May 2016, Markus Heiser wrote: > @Jonathan: what do you think? Should I prepare a patch > with a basic reST (sphinx) build infrastructure, including > > * a folder for sphinx docs: > > ./Documentation/sphinx/ I'm already working on a patch series taking a

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Markus Heiser
Hi all, hi Jonathan, Am 06.05.2016 um 15:42 schrieb Mauro Carvalho Chehab : > Em Fri, 6 May 2016 15:32:35 +0200 > Markus Heiser escreveu: > >> Hi Mauro, >> >> Am 06.05.2016 um 13:35 schrieb Mauro Carvalho Chehab >>

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Markus Heiser
Hi Jani, I forget to mentioning, with a local copy of my kernel-doc script: https://github.com/return42/sphkerneldoc/blob/master/scripts/kernel-doc You could do reST markup in the source code comments and extract them. This might be a interim workaround which helps you not to edit source code

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Markus Heiser
Hy Jani, Am 04.05.2016 um 18:13 schrieb Jani Nikula : >> Am 04.05.2016 um 17:09 schrieb Jonathan Corbet : >> >>> I think all of this makes sense. It would be really nice to have the >>> directives in the native sphinx language like that. I *don't* think

Re: [RFC 15/22] media: Make events on request completion optional, disabled by default

2016-05-06 Thread Sakari Ailus
On Fri, May 06, 2016 at 01:53:24PM +0300, Sakari Ailus wrote: > Add flags to requests. The first defined flag, MEDIA_REQ_FL_COMPLETE_EVENT > is used to tell whether to queue an event on request completion. Unless > the flag is set, no event is generated when a request completes. > >

[RFC 07/22] videodev2.h: Add request field to v4l2_buffer

2016-05-06 Thread Sakari Ailus
From: Hans Verkuil When queuing buffers allow for passing the request ID that should be associated with this buffer. Split the u32 reserved2 field into two u16 fields, one for request, one with the old reserved2 name. Signed-off-by: Hans Verkuil

[RFC 15/22] media: Make events on request completion optional, disabled by default

2016-05-06 Thread Sakari Ailus
Add flags to requests. The first defined flag, MEDIA_REQ_FL_COMPLETE_EVENT is used to tell whether to queue an event on request completion. Unless the flag is set, no event is generated when a request completes. Signed-off-by: Sakari Ailus ---

[RFC 16/22] media: Add poll support

2016-05-06 Thread Sakari Ailus
Implement poll for events. POLLPRI is used to notify users on incoming events. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/media/media-device.c

[RFC 19/22] DocBook: media: Document the subdev selection API

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart Now that the subdev crop API is considered obsolete, the selection API that replaces it deserves a full documentation instead of referring to the crop API documentation. Signed-off-by: Laurent Pinchart

[RFC 08/22] videodev2.h: Add request field to v4l2_pix_format_mplane

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart Let userspace specify a request ID when getting or setting formats. The support is limited to the multi-planar API at the moment, extending it to the single-planar API is possible if needed. >From a userspace point of view the

[RFC 22/22] DocBook: media: Document request flags

2016-05-06 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- .../DocBook/media/v4l/media-ioc-request-cmd.xml| 24 ++ 1 file changed, 24 insertions(+) diff --git a/Documentation/DocBook/media/v4l/media-ioc-request-cmd.xml

[RFC 05/22] media: Add media_device_request_complete() to mark requests complete

2016-05-06 Thread Sakari Ailus
Once the request has been queued and later on completed, a driver will mark the request complete by calling media_device_request_complete(). Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 7 +++ include/media/media-device.h | 3 +++ 2 files

[RFC 21/22] DocBook: media: Document media events (MEDIA_IOC_DQEVENT IOCTL)

2016-05-06 Thread Sakari Ailus
Add DocBook documentation for media events. Signed-off-by: Sakari Ailus --- .../DocBook/media/v4l/media-controller.xml | 1 + .../DocBook/media/v4l/media-ioc-dqevent.xml| 155 + 2 files changed, 156 insertions(+) create mode

[RFC 06/22] media: Add per-entity request data support

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart Allow subsystems to associate data with entities in each request. This will be used by the V4L2 subdev core to store pad formats in requests. Signed-off-by: Laurent Pinchart ---

[RFC 12/22] vb2: Add allow_requests flag

2016-05-06 Thread Sakari Ailus
From: Hans Verkuil The driver has to set allow_requests explicitly in order to allow queuing or preparing buffers for a specific request ID. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-v4l2.c | 5 +

[RFC 09/22] v4l2-subdev.h: Add request field to format and selection structures

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart Let userspace specify a request ID when getting or setting formats or selection rectangles. >From a userspace point of view the API change is minimized and doesn't require any new ioctl. Signed-off-by: Laurent Pinchart

[RFC 18/22] DocBook: media: Document the V4L2 request API

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart The V4L2 request API consists in extensions to existing V4L2 ioctls. Document it. Signed-off-by: Laurent Pinchart --- Documentation/DocBook/media/v4l/common.xml | 2 +

[RFC 03/22] media: Prevent queueing queued requests

2016-05-06 Thread Sakari Ailus
Verify that the request state is IDLE before queueing it. Also mark requests queued when they're queued, and return the request to IDLE if queueing it failed. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 43

[RFC 20/22] DocBook: media: Document the V4L2 subdev request API

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart The V4L2 subdev request API consists in extensions to existing V4L2 subdev ioctls. Document it. Signed-off-by: Laurent Pinchart --- .../DocBook/media/v4l/vidioc-subdev-g-fmt.xml |

[RFC 17/22] DocBook: media: Document the media request API

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart The media request API is made of a new ioctl to implement request management. Document it. Signed-off-by: Laurent Pinchart Strip off the reserved fields. Signed-off-by: Sakari Ailus

[RFC 11/22] v4l: subdev: Support the request API in format and selection operations

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart Store the formats and selection rectangles in per-entity request data. This minimizes changes to drivers by reusing the v4l2_subdev_pad_config infrastructure. Signed-off-by: Laurent Pinchart

[RFC 01/22] media: Add request API

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart The request API allows bundling media device parameters with request objects and applying them atomically, either synchronously or asynchronously. Signed-off-by: Laurent Pinchart ---

[RFC 00/22] Media request API

2016-05-06 Thread Sakari Ailus
Hello all, Here's a set of patches to implement support for the request API that has been discussed many, many times over the past few years. Some of the patches are my own while some have been written by Laurent and Hans. I've made a few changes to these patches and added more, mainly: -

[RFC 10/22] v4l: Support the request API in format operations

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart Store the formats in per-entity request data. The get and set format operations are completely handled by the V4L2 core with help of the try format driver operation. Signed-off-by: Laurent Pinchart

[RFC 02/22] media: Add media device request state

2016-05-06 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- include/media/media-device.h | 8 1 file changed, 8 insertions(+) diff --git a/include/media/media-device.h b/include/media/media-device.h index 49c3367a..acb2481 100644 --- a/include/media/media-device.h +++

[RFC 14/22] media: Add MEDIA_IOC_DQEVENT

2016-05-06 Thread Sakari Ailus
Events on a media device tell about completion of requests. Blocking and non-blocking operation is supported. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 114 +-- include/media/media-device.h | 11 +

[RFC 13/22] vb2: Add helper function to check for request buffers

2016-05-06 Thread Sakari Ailus
From: Laurent Pinchart The vb2_queue_has_request() function will check whether a buffer has been prepared for the given request ID. Signed-off-by: Laurent Pinchart ---

[RFC 04/22] media: Only requests in IDLE state may be deleted

2016-05-06 Thread Sakari Ailus
Prevent deleting queued requests. Also mark deleted requests as such by adding a new state for them. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 14 -- include/media/media-device.h | 1 + 2 files changed, 13 insertions(+), 2

Re: Kernel docs: muddying the waters a bit

2016-05-06 Thread Markus Heiser
Hi Mauro, Am 04.05.2016 um 18:15 schrieb Mauro Carvalho Chehab : > Em Wed, 4 May 2016 11:34:08 +0200 > Markus Heiser escreveu: > >> Hi all, (hi Jonathan, please take note of my offer below) >> >> Am 03.05.2016 um 16:31 schrieb Daniel Vetter