Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357045
b: refs/heads/master
c: 1c9f5bd
h: refs/heads/master
i:
  357043: 56effbe
v: v3
  • Loading branch information
Andrzej Hajda authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent 8c4c717 commit fada448
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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: 6319d6a002beb2644b4a9058a12a04b2bbf98502
refs/heads/master: 1c9f5bd7cb8a74965e7a19eead5d77c35bf30db7
6 changes: 4 additions & 2 deletions trunk/drivers/media/platform/s5p-fimc/fimc-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,14 +884,16 @@ static int fimc_get_sensor_frame_desc(struct v4l2_subdev *sensor,
{
struct v4l2_mbus_frame_desc fd;
int i, ret;
int pad;

for (i = 0; i < num_planes; i++)
fd.entry[i].length = plane_fmt[i].sizeimage;

pad = sensor->entity.num_pads - 1;
if (try)
ret = v4l2_subdev_call(sensor, pad, set_frame_desc, 0, &fd);
ret = v4l2_subdev_call(sensor, pad, set_frame_desc, pad, &fd);
else
ret = v4l2_subdev_call(sensor, pad, get_frame_desc, 0, &fd);
ret = v4l2_subdev_call(sensor, pad, get_frame_desc, pad, &fd);

if (ret < 0)
return ret;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/media/platform/s5p-fimc/fimc-mdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ static int fimc_md_create_links(struct fimc_md *fmd)
"but s5p-csis module is not loaded!\n"))
return -EINVAL;

ret = media_entity_create_link(&sensor->entity, 0,
pad = sensor->entity.num_pads - 1;
ret = media_entity_create_link(&sensor->entity, pad,
&csis->entity, CSIS_PAD_SINK,
MEDIA_LNK_FL_IMMUTABLE |
MEDIA_LNK_FL_ENABLED);
Expand Down

0 comments on commit fada448

Please sign in to comment.