Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242062
b: refs/heads/master
c: 4ecbf5d
h: refs/heads/master
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent 9f39a6b commit 6342b49
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 115 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: a0f8caefaf3295721ef00415c7d63ec10af253ab
refs/heads/master: 4ecbf5d1d2bb7d1e3882de79e512c1a0a2816581
9 changes: 2 additions & 7 deletions trunk/drivers/media/video/s5p-fimc/fimc-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,9 @@ static int stop_streaming(struct vb2_queue *q)
{
struct fimc_ctx *ctx = q->drv_priv;
struct fimc_dev *fimc = ctx->fimc_dev;
unsigned long flags;

spin_lock_irqsave(&fimc->slock, flags);
if (!fimc_capture_running(fimc) && !fimc_capture_pending(fimc)) {
spin_unlock_irqrestore(&fimc->slock, flags);
if (!fimc_capture_active(fimc))
return -EINVAL;
}
spin_unlock_irqrestore(&fimc->slock, flags);

return fimc_stop_capture(fimc);
}
Expand Down Expand Up @@ -773,7 +768,7 @@ static int fimc_cap_s_crop(struct file *file, void *fh,
ctx->d_frame.width, ctx->d_frame.height,
ctx->rotation);
if (ret) {
v4l2_err(&fimc->vid_cap.v4l2_dev, "Out of the scaler range");
v4l2_err(&fimc->vid_cap.v4l2_dev, "Out of the scaler range\n");
return ret;
}

Expand Down
Loading

0 comments on commit 6342b49

Please sign in to comment.