Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367103
b: refs/heads/master
c: cbd5354
h: refs/heads/master
i:
  367101: 662aff1
  367099: eb1fc3e
  367095: f87f47e
  367087: 22daa6a
  367071: 85c7d30
  367039: d1fbb4e
  366975: 3d45607
  366847: bed8d79
  366591: 93d68ee
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Apr 25, 2013
1 parent 99d4b25 commit ca901e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: aceb59ed3438dcb2f5c90e2f62f0f9edde4091d2
refs/heads/master: cbd53542ca35842127c6f581fefbb0a7dd2b4a21
14 changes: 4 additions & 10 deletions trunk/drivers/media/platform/exynos4-is/mipi-csis.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ static struct csis_pix_format const *s5pcsis_try_format(

static struct v4l2_mbus_framefmt *__s5pcsis_get_format(
struct csis_state *state, struct v4l2_subdev_fh *fh,
u32 pad, enum v4l2_subdev_format_whence which)
enum v4l2_subdev_format_whence which)
{
if (which == V4L2_SUBDEV_FORMAT_TRY)
return fh ? v4l2_subdev_get_try_format(fh, pad) : NULL;
return fh ? v4l2_subdev_get_try_format(fh, 0) : NULL;

return &state->format;
}
Expand All @@ -564,10 +564,7 @@ static int s5pcsis_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
struct csis_pix_format const *csis_fmt;
struct v4l2_mbus_framefmt *mf;

if (fmt->pad != CSIS_PAD_SOURCE && fmt->pad != CSIS_PAD_SINK)
return -EINVAL;

mf = __s5pcsis_get_format(state, fh, fmt->pad, fmt->which);
mf = __s5pcsis_get_format(state, fh, fmt->which);

if (fmt->pad == CSIS_PAD_SOURCE) {
if (mf) {
Expand All @@ -594,10 +591,7 @@ static int s5pcsis_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
struct csis_state *state = sd_to_csis_state(sd);
struct v4l2_mbus_framefmt *mf;

if (fmt->pad != CSIS_PAD_SOURCE && fmt->pad != CSIS_PAD_SINK)
return -EINVAL;

mf = __s5pcsis_get_format(state, fh, fmt->pad, fmt->which);
mf = __s5pcsis_get_format(state, fh, fmt->which);
if (!mf)
return -EINVAL;

Expand Down

0 comments on commit ca901e4

Please sign in to comment.