Skip to content

Commit ab5ae4d

Browse files
naushirpopcornmix
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 fdbdda1 commit ab5ae4d

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
@@ -940,6 +940,9 @@ static irqreturn_t unicam_isr(int irq, void *dev)
940940
if (unicam->node[i].cur_frm)
941941
unicam->node[i].cur_frm->vb.vb2_buf.timestamp =
942942
ts;
943+
else
944+
unicam_dbg(2, unicam, "ISR: [%d] Dropping frame, buffer not available at FS\n",
945+
i);
943946
/*
944947
* Set the next frame output to go to a dummy frame
945948
* if we have not managed to obtain another frame

0 commit comments

Comments
 (0)