mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 1b61bce3ec65be520e45cf29431650d23a7b5d33 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Tue, 30 Nov 2021 10:39:41 +0000
|
|
Subject: [PATCH] drivers: bcm2835_unicam: Add logging message when a
|
|
frame is dropped.
|
|
|
|
If a dummy buffer is still active on a frame start, it indicates that this frame
|
|
will be dropped. The explicit logging helps users identify performance issues.
|
|
|
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
|
---
|
|
drivers/media/platform/bcm2835/bcm2835-unicam.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
|
|
+++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
|
|
@@ -952,6 +952,9 @@ static irqreturn_t unicam_isr(int irq, v
|
|
if (unicam->node[i].cur_frm)
|
|
unicam->node[i].cur_frm->vb.vb2_buf.timestamp =
|
|
ts;
|
|
+ else
|
|
+ unicam_dbg(2, unicam, "ISR: [%d] Dropping frame, buffer not available at FS\n",
|
|
+ i);
|
|
/*
|
|
* Set the next frame output to go to a dummy frame
|
|
* if we have not managed to obtain another frame
|