Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176856
b: refs/heads/master
c: 34cae30
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 2151c61 commit b27d919
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 1edcc10d7f4fd4085fcdcdd68afec258c3427530
refs/heads/master: 34cae30b8457cf090f215e212ba019e7c303f8fd
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/tw9910.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,
mf->height = priv->scale->height;
mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
mf->colorspace = V4L2_COLORSPACE_JPEG;
mf->field = V4L2_FIELD_INTERLACED;
mf->field = V4L2_FIELD_INTERLACED_BT;

return 0;
}
Expand All @@ -852,7 +852,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
int ret;

WARN_ON(mf->field != V4L2_FIELD_ANY &&
mf->field != V4L2_FIELD_INTERLACED);
mf->field != V4L2_FIELD_INTERLACED_BT);

/*
* check color format
Expand All @@ -878,8 +878,8 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
const struct tw9910_scale_ctrl *scale;

if (V4L2_FIELD_ANY == mf->field) {
mf->field = V4L2_FIELD_INTERLACED;
} else if (V4L2_FIELD_INTERLACED != mf->field) {
mf->field = V4L2_FIELD_INTERLACED_BT;
} else if (V4L2_FIELD_INTERLACED_BT != mf->field) {
dev_err(&client->dev, "Field type %d invalid.\n", mf->field);
return -EINVAL;
}
Expand Down

0 comments on commit b27d919

Please sign in to comment.