summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-04-23 07:18:12 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 07:51:40 -0300
commit200e0841ee4a05d06041fb25a8931a5dfb15c767 (patch)
tree65d023b07a7f945c00c4044808f5dd0cb1c88ee0 /drivers/media/pci
parent1af2ddd8b3fab054c908d24e00cb41f6b2b7d719 (diff)
downloadblackbird-obmc-linux-200e0841ee4a05d06041fb25a8931a5dfb15c767.tar.gz
blackbird-obmc-linux-200e0841ee4a05d06041fb25a8931a5dfb15c767.zip
[media] cx23885: map invalid fields to a valid field
If field format is not valid, map it as V4L2_FIELD_INTERLACED, instead of pretending to support an invalid format. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/cx23885/cx23885-video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c
index ad02912e9ac3..9bb19fdfac02 100644
--- a/drivers/media/pci/cx23885/cx23885-video.c
+++ b/drivers/media/pci/cx23885/cx23885-video.c
@@ -948,7 +948,8 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
case V4L2_FIELD_INTERLACED:
break;
default:
- return -EINVAL;
+ field = V4L2_FIELD_INTERLACED;
+ break;
}
f->fmt.pix.field = field;
OpenPOWER on IntegriCloud