Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254619
b: refs/heads/master
c: a629f86
h: refs/heads/master
i:
  254617: 4b926b1
  254615: a431ad5
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Jun 11, 2011
1 parent 918c5b0 commit 649a62b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 3495dcefeb3b5ab825788206d5b696be14f4de19
refs/heads/master: a629f86b4aa1669ddf2afaa3ded66d5a59d60b77
12 changes: 4 additions & 8 deletions trunk/drivers/media/video/s5p-fimc/fimc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,22 +704,18 @@ static int fimc_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers,
f = ctx_get_frame(ctx, vq->type);
if (IS_ERR(f))
return PTR_ERR(f);

/*
* Return number of non-contigous planes (plane buffers)
* depending on the configured color format.
*/
if (f->fmt)
*num_planes = f->fmt->memplanes;
if (!f->fmt)
return -EINVAL;

*num_planes = f->fmt->memplanes;
for (i = 0; i < f->fmt->memplanes; i++) {
sizes[i] = (f->width * f->height * f->fmt->depth[i]) >> 3;
sizes[i] = (f->f_width * f->f_height * f->fmt->depth[i]) / 8;
allocators[i] = ctx->fimc_dev->alloc_ctx;
}

if (*num_buffers == 0)
*num_buffers = 1;

return 0;
}

Expand Down

0 comments on commit 649a62b

Please sign in to comment.