diff options
| author | Hans de Goede <[email protected]> | 2022-10-08 16:08:08 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2022-11-25 08:12:24 +0000 |
| commit | 89f9829c4163bc0e4c5f7e74142fd791fc747696 (patch) | |
| tree | 1c9c6237911a21f9cb3fe5cf44f0a087994413d2 /tools/perf/scripts/python | |
| parent | b895be29a416ee4292978801fdbca2c038af1110 (diff) | |
media: atomisp: Also track buffers in a list when submitted to the ISP
Instead of using an integer to keep count of how many buffers have
been handed over to the ISP (buffers_in_css) move buffers handed
over to the ISP to a new buffers_in_css list_head so that we can
easily loop over them.
This removes the need for atomisp_flush_video_pipe() to loop over
all buffers and then (ab)use the state to figure out if they
were handed over to the ISP.
Since the buffers are now always on a list when owned by the driver
this also allows the buffer_done path on flush vs normal completion
to be unified (both now need a list_del()) and this common code can
now be factored out into a new atomisp_buffer_done() helper.
This is a preparation patch for moving the driver over to
the videobuf2 framework.
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions