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) ...@@ -1217,24 +1217,24 @@ static irqreturn_t mx6s_csi_irq_handler(int irq, void *data)
* PDM TKT230775 */ * PDM TKT230775 */
pr_debug("Skip two frames\n"); pr_debug("Skip two frames\n");
} else if (status & BIT_DMA_TSF_DONE_FB1) { } else if (status & BIT_DMA_TSF_DONE_FB1) {
if (csi_dev->nextfb == 0) { if (csi_dev->nextfb != 0) {
if (csi_dev->skipframe > 0) { dev_warn(csi_dev->dev, "frame in unexpected fb 0\n");
csi_dev->skipframe--; }
dev_warn(csi_dev->dev, "Skip frame on fb 0"); if (csi_dev->skipframe > 0) {
} else csi_dev->skipframe--;
mx6s_csi_frame_done(csi_dev, 0, false); dev_warn(csi_dev->dev, "Skip frame on fb 0");
} else } else
dev_err(csi_dev->dev, "frame in unexpected fb 0\n"); mx6s_csi_frame_done(csi_dev, 0, false);
} else if (status & BIT_DMA_TSF_DONE_FB2) { } else if (status & BIT_DMA_TSF_DONE_FB2) {
if (csi_dev->nextfb == 1) { if (csi_dev->nextfb != 1) {
if (csi_dev->skipframe > 0) { dev_warn(csi_dev->dev, "frame in unexpected fb 1\n");
csi_dev->skipframe--; }
dev_warn(csi_dev->dev, "Skip frame on fb 1"); if (csi_dev->skipframe > 0) {
} else csi_dev->skipframe--;
mx6s_csi_frame_done(csi_dev, 1, false); dev_warn(csi_dev->dev, "Skip frame on fb 1");
} else } else
dev_err(csi_dev->dev, "frame in unexpected fb 1\n"); mx6s_csi_frame_done(csi_dev, 1, false);
} else if (status & BIT_FIELD0_INT){ } else if (status & BIT_FIELD0_INT){
dev_dbg(csi_dev->dev, "FIELD0_INT\n"); dev_dbg(csi_dev->dev, "FIELD0_INT\n");
} else if (status & BIT_FIELD1_INT){ } 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