RFC: media: Add media_request_{pin,unpin} API
authorEzequiel Garcia <ezequiel@collabora.com>
Sun, 21 Mar 2021 19:38:54 +0000 (16:38 -0300)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:58 +0000 (11:32 +0000)
commit7668f88ea6b340315368e41c8ef4f24d9d937e3d
tree334a37af0e1fd377f3128def20e8359d7d8c6375
parente94cfbdd866a9ee8ff7a1886aedbfac093c51276
RFC: media: Add media_request_{pin,unpin} API

This is probably not the API we will want to add, but it
should show what semantics are needed by drivers.

The goal is to allow the OUTPUT (aka source) buffer and the
controls associated to a request to be released from the request,
and in particular return the OUTPUT buffer back to userspace,
without signalling the media request fd.

This is useful for devices that are able to pre-process
the OUTPUT buffer, therefore able to release it before
the decoding is finished. These drivers should signal
the media request fd only after the CAPTURE buffer is done.

Tested-by: John Cox <jc@kynesim.co.uk>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
drivers/media/mc/mc-request.c
include/media/media-request.h