On 24/03/2023 11:37, Hans Verkuil wrote: > Hi all, > > I finished the vb2 conversion and tested what I could test. I am missing > 'full featured' hardware, so I could not test the analog video capture part > of that. It's not clear to me if VBI capture is also supported on those > cards, if so, then that needs to be tested as well. > > Note that there is one userspace-facing change: the VBI output settings > are kept, even if the vbi device is closed by the application. > > Before you had to open the vbi device, format the slice VBI output, and > write sliced VBI data to it. Closing the device would reset how VBI output > behaves. That is not in spec with the V4L2 API. The format is kept after > the device is closed. > > Any application that uses VBI output and that wants to keep the same > behavior would have to call VIDIOC_S_FMT with a struct v4l2_sliced_vbi_format > with a service_set field set to 0 to indicate that you don't want to > output any VBI anymore. > > If this is a problem, then I can make a module option that selects the old > behavior. > > BTW, if anyone has a spare full-featured card (i.e. with analog video capture > as well), then I would love to take it off your hands so that I can test that > myself! > > This series has been tested on the two Hexium boards, the mxb board, and two > av7710 boards (DVB-C and DVB-T). It does help if I point to the patches :-) The patch series is here: https://patchwork.linuxtv.org/project/linux-media/list/?series=10140 It's also in my git tree: https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=saa7146-clean Regards, Hans