Commit 59c2dc16 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Take frame from whatever buffer is ready

parent c8bb88a1
Pipeline #63740 passed with stage
in 64 minutes and 47 seconds
......@@ -1217,24 +1217,24 @@ static irqreturn_t mx6s_csi_irq_handler(int irq, void *data)
* PDM TKT230775 */
pr_debug("Skip two frames\n");
} else if (status & BIT_DMA_TSF_DONE_FB1) {
if (csi_dev->nextfb == 0) {
if (csi_dev->nextfb != 0) {
dev_warn(csi_dev->dev, "frame in unexpected fb 0\n");
}
if (csi_dev->skipframe > 0) {
csi_dev->skipframe--;
dev_warn(csi_dev->dev, "Skip frame on fb 0");
} else
mx6s_csi_frame_done(csi_dev, 0, false);
} else
dev_err(csi_dev->dev, "frame in unexpected fb 0\n");
} else if (status & BIT_DMA_TSF_DONE_FB2) {
if (csi_dev->nextfb == 1) {
if (csi_dev->nextfb != 1) {
dev_warn(csi_dev->dev, "frame in unexpected fb 1\n");
}
if (csi_dev->skipframe > 0) {
csi_dev->skipframe--;
dev_warn(csi_dev->dev, "Skip frame on fb 1");
} else
mx6s_csi_frame_done(csi_dev, 1, false);
} else
dev_err(csi_dev->dev, "frame in unexpected fb 1\n");
} else if (status & BIT_FIELD0_INT){
dev_dbg(csi_dev->dev, "FIELD0_INT\n");
} else if (status & BIT_FIELD1_INT){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment