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, 21 Mar 2022 16:04:15 +0000 (16:04 +0000)
commitba5173607ccfc36b178aa14951ebcbadd282365d
tree28dd856508bb2f1e6e7100e74c4a5efdebc9c1c9
parent288be32243ac75847c49303df2afef97fcb1f452
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