public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] media: synopsys: hdmirx: Report frame drops
@ 2025-04-10 20:43 Nicolas Dufresne
  2025-04-10 20:43 ` [PATCH 1/2] media: synopsys: hdmirx: Renamed frame_idx to sequence Nicolas Dufresne
  2025-04-10 20:43 ` [PATCH 2/2] media: synopsys: hdmirx: Count dropped frames Nicolas Dufresne
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Dufresne @ 2025-04-10 20:43 UTC (permalink / raw)
  To: Shreeya Patel, Mauro Carvalho Chehab, Dmitry Osipenko,
	Hans Verkuil, Dingxian Wen
  Cc: linux-media, kernel, linux-kernel, Nicolas Dufresne

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,
-- 
Nicolas Dufresne <nicolas.dufresne@collabora.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-11  1:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10 20:43 [PATCH 0/2] media: synopsys: hdmirx: Report frame drops Nicolas Dufresne
2025-04-10 20:43 ` [PATCH 1/2] media: synopsys: hdmirx: Renamed frame_idx to sequence Nicolas Dufresne
2025-04-11  1:13   ` Dmitry Osipenko
2025-04-10 20:43 ` [PATCH 2/2] media: synopsys: hdmirx: Count dropped frames Nicolas Dufresne
2025-04-11  1:13   ` Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox