Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366922
b: refs/heads/master
c: 76323e5
h: refs/heads/master
v: v3
  • Loading branch information
Andrzej Hajda authored and Mauro Carvalho Chehab committed Mar 31, 2013
1 parent a50dc4f commit 3287c22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc39f46b54b600f053bf9bab757023344e97925e
refs/heads/master: 76323e5016e2f923e87efbee715a7ccf16b942b0
15 changes: 10 additions & 5 deletions trunk/drivers/media/platform/s5p-fimc/fimc-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ static int start_streaming(struct vb2_queue *q, unsigned int count)
fimc_activate_capture(ctx);

if (!test_and_set_bit(ST_CAPT_ISP_STREAM, &fimc->state))
fimc_pipeline_call(fimc, set_stream,
&fimc->pipeline, 1);
return fimc_pipeline_call(fimc, set_stream,
&fimc->pipeline, 1);
}

return 0;
Expand Down Expand Up @@ -443,12 +443,17 @@ static void buffer_queue(struct vb2_buffer *vb)
if (vb2_is_streaming(&vid_cap->vbq) &&
vid_cap->active_buf_cnt >= min_bufs &&
!test_and_set_bit(ST_CAPT_STREAM, &fimc->state)) {
int ret;

fimc_activate_capture(ctx);
spin_unlock_irqrestore(&fimc->slock, flags);

if (!test_and_set_bit(ST_CAPT_ISP_STREAM, &fimc->state))
fimc_pipeline_call(fimc, set_stream,
&fimc->pipeline, 1);
if (test_and_set_bit(ST_CAPT_ISP_STREAM, &fimc->state))
return;

ret = fimc_pipeline_call(fimc, set_stream, &fimc->pipeline, 1);
if (ret < 0)
v4l2_err(&vid_cap->vfd, "stream on failed: %d\n", ret);
return;
}
spin_unlock_irqrestore(&fimc->slock, flags);
Expand Down

0 comments on commit 3287c22

Please sign in to comment.