diff options
| author | Ezequiel Garcia <[email protected]> | 2020-03-25 22:34:32 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-04-14 11:21:49 +0200 |
| commit | e1e213b1b0e4c785bac8bfa52130996105bffb62 (patch) | |
| tree | 7df9e1fc0d760de474e08baca790a6530a23f45b /tools/perf/scripts/python | |
| parent | 85f7cd3a2aadd3be9652ce105370f561ff755a26 (diff) | |
media: v4l2-mem2mem: return CAPTURE buffer first
When the request API is used, typically an OUTPUT (src) buffer
will be part of a request. A userspace process will be typically
blocked, waiting on the request file descriptor.
Returning the OUTPUT (src) buffer will wake-up such processes,
who will immediately attempt to dequeue the CAPTURE buffer,
only to find it's still unavailable.
Therefore, change v4l2_m2m_buf_done_and_job_finish returning
the CAPTURE (dst) buffer first, to avoid signalling the request
file descriptor prematurely, i.e. before the CAPTURE buffer is done.
When the request API is not used, this change should have
no impact.
Tested-by: Nicolas Dufresne <[email protected]>
Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions