diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-04-23 12:18:12 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 12:51:40 +0200 |
commit | 200e0841ee4a05d06041fb25a8931a5dfb15c767 (patch) | |
tree | 65d023b07a7f945c00c4044808f5dd0cb1c88ee0 /drivers/media/pci/cx23885/cx23885-video.c | |
parent | [media] cx23885: fix format colorspace compliance error (diff) | |
download | linux-200e0841ee4a05d06041fb25a8931a5dfb15c767.tar.xz 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/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-video.c | 3 |
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; |