aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tw9910.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tw9910.c')
-rw-r--r--drivers/media/video/tw9910.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/tw9910.c b/drivers/media/video/tw9910.c
index 341d0e035cbf..5e7672abe815 100644
--- a/drivers/media/video/tw9910.c
+++ b/drivers/media/video/tw9910.c
@@ -830,7 +830,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,
830 mf->height = priv->scale->height; 830 mf->height = priv->scale->height;
831 mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE; 831 mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
832 mf->colorspace = V4L2_COLORSPACE_JPEG; 832 mf->colorspace = V4L2_COLORSPACE_JPEG;
833 mf->field = V4L2_FIELD_INTERLACED; 833 mf->field = V4L2_FIELD_INTERLACED_BT;
834 834
835 return 0; 835 return 0;
836} 836}
@@ -852,7 +852,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
852 int ret; 852 int ret;
853 853
854 WARN_ON(mf->field != V4L2_FIELD_ANY && 854 WARN_ON(mf->field != V4L2_FIELD_ANY &&
855 mf->field != V4L2_FIELD_INTERLACED); 855 mf->field != V4L2_FIELD_INTERLACED_BT);
856 856
857 /* 857 /*
858 * check color format 858 * check color format
@@ -878,8 +878,8 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
878 const struct tw9910_scale_ctrl *scale; 878 const struct tw9910_scale_ctrl *scale;
879 879
880 if (V4L2_FIELD_ANY == mf->field) { 880 if (V4L2_FIELD_ANY == mf->field) {
881 mf->field = V4L2_FIELD_INTERLACED; 881 mf->field = V4L2_FIELD_INTERLACED_BT;
882 } else if (V4L2_FIELD_INTERLACED != mf->field) { 882 } else if (V4L2_FIELD_INTERLACED_BT != mf->field) {
883 dev_err(&client->dev, "Field type %d invalid.\n", mf->field); 883 dev_err(&client->dev, "Field type %d invalid.\n", mf->field);
884 return -EINVAL; 884 return -EINVAL;
885 } 885 }