OSDN Git Service

vb2/au0828: move the v4l_vb2q_enable_media_source to the au0828 driver
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 22 Jun 2022 09:31:45 +0000 (11:31 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 18 Nov 2022 14:48:17 +0000 (15:48 +0100)
commitc4a7df49d8cb9e1e912aa15293a0e6aa1655d3cc
treef758fb46af19a697735a70bf3ac8c9e85ea07735
parent36c6f1fb2ef769c36c417c8c1106439704eeb8c0
vb2/au0828: move the v4l_vb2q_enable_media_source to the au0828 driver

With the new prepare_streaming op it is possible to move the ugly
v4l_vb2q_enable_media_source() call in vb2_core_streamon to the
driver. It was called incorrectly in vb2 as well: it was only
called if sufficient buffers were queued at STREAMON time, but not
if more buffers were queued later. This was not an issue with the
au0828 driver since it never set min_buffers_needed.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/common/videobuf2/videobuf2-core.c
drivers/media/usb/au0828/au0828-vbi.c
drivers/media/usb/au0828/au0828-video.c