]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: dvb-core: dmxdevfilter must always flush bufs
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 5 Jun 2025 06:57:35 +0000 (08:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 18 Dec 2025 10:14:56 +0000 (11:14 +0100)
commitc4e620eccbef76aa5564ebb295e23d6540e27215
tree3f6191e20fd23649ed1e91622195fd1d8567e9e2
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
media: dvb-core: dmxdevfilter must always flush bufs

Currently the buffers are being filled until full, which works fine
for the transport stream, but not when reading sections, those have
to be returned to userspace immediately, otherwise dvbv5-scan will
just wait forever.

Add a 'flush' argument to dvb_vb2_fill_buffer to indicate whether
the buffer must be flushed or wait until it is full.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-core/dmxdev.c
drivers/media/dvb-core/dvb_vb2.c
include/media/dvb_vb2.h