mbox series

[0/2] media: synopsys: hdmirx: Report frame drops

Message ID 20250410-rk3588-hdmirx-sequence-v1-0-aad3f216d351@collabora.com
Headers show
Series media: synopsys: hdmirx: Report frame drops | expand

Message

Nicolas Dufresne April 10, 2025, 8:43 p.m. UTC
Frame drops are common problem with live captures. This is most of
the time due to buffer starvation introduced by userspace. The
v4l2_buffer.sequence allows detecting gaps (drops), which allows
userspace to report it. The new HDMI receiver driver on RK3588
did not report these properly.

With this in place, drops will be warned by GStreamer notably, with a
trace similar to:

WARN [...]:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:03.063493047

A QoS message is also sent to the application, which can be used to
gather statistics.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
---
Nicolas Dufresne (2):
      media: synopsys: hdmirx: Renamed frame_idx to sequence
      media: synopsys: hdmirx: Count dropped frames

 drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
base-commit: 9ddc3d6c16ea2587898a315f20f7b8fbd791dc1b
change-id: 20250410-rk3588-hdmirx-sequence-a470b604d176

Best regards,