diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2024-10-17 18:09:23 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2024-10-28 11:19:47 +0300 |
commit | 1d8aaa86a32a76021f6c37fff9f7c3a26f48dae7 (patch) | |
tree | a96fed3b3b6b3a5ebbe29cb676f83d9881324654 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c9ec6f1736363b2b2bb4e266997389740f628441 (diff) | |
download | linux-1d8aaa86a32a76021f6c37fff9f7c3a26f48dae7.tar.xz |
media: videobuf2-core: update vb2_thread if wait_finish/prepare are NULL
The vb2_thread is used for DVB support. This will queue and dequeue buffers
automatically.
It calls wait_finish/prepare around vb2_core_dqbuf() and vb2_core_qbuf(),
but that assumes all drivers have these ops set. But that will change
due to commit 88785982a19d ("media: vb2: use lock if wait_prepare/finish
are NULL").
So instead just check if the callback is available, and if not, use
q->lock, just as __vb2_wait_for_done_vb() does.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions