Skip to content

Commit 30bb919

Browse files
naushirpelwell
authored andcommitted
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 <[email protected]>
1 parent b84bb5d commit 30bb919

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/media/platform/bcm2835/bcm2835-unicam.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,9 @@ static irqreturn_t unicam_isr(int irq, void *dev)
951951
if (unicam->node[i].cur_frm)
952952
unicam->node[i].cur_frm->vb.vb2_buf.timestamp =
953953
ts;
954+
else
955+
unicam_dbg(2, unicam, "ISR: [%d] Dropping frame, buffer not available at FS\n",
956+
i);
954957
/*
955958
* Set the next frame output to go to a dummy frame
956959
* if we have not managed to obtain another frame

0 commit comments

Comments
 (0)