diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-24 04:37:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-02 08:30:34 -0500 |
commit | 2eb3b1adcb9309245785ebbddf8022ec57746bc9 (patch) | |
tree | ae578118461ea85d5a37acff39131e7b70c77abb /drivers/media/pci | |
parent | 57e774cc916efa293471bf12d1177574e121378e (diff) |
[media] media/usb,pci: fix querycap
Querycap shouldn't set the version field (the core does that for you),
but it should set the device_caps field.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/meye/meye.c | 3 | ||||
-rw-r--r-- | drivers/media/pci/zoran/zoran_driver.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/pci/meye/meye.c b/drivers/media/pci/meye/meye.c index aeae54708811..9d9f90cb7740 100644 --- a/drivers/media/pci/meye/meye.c +++ b/drivers/media/pci/meye/meye.c | |||
@@ -1031,9 +1031,6 @@ static int vidioc_querycap(struct file *file, void *fh, | |||
1031 | strcpy(cap->card, "meye"); | 1031 | strcpy(cap->card, "meye"); |
1032 | sprintf(cap->bus_info, "PCI:%s", pci_name(meye.mchip_dev)); | 1032 | sprintf(cap->bus_info, "PCI:%s", pci_name(meye.mchip_dev)); |
1033 | 1033 | ||
1034 | cap->version = (MEYE_DRIVER_MAJORVERSION << 8) + | ||
1035 | MEYE_DRIVER_MINORVERSION; | ||
1036 | |||
1037 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | | 1034 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | |
1038 | V4L2_CAP_STREAMING; | 1035 | V4L2_CAP_STREAMING; |
1039 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; | 1036 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; |
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index 099d5fbebb7c..2b25d31c46f6 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c | |||
@@ -1528,8 +1528,9 @@ static int zoran_querycap(struct file *file, void *__fh, struct v4l2_capability | |||
1528 | strncpy(cap->driver, "zoran", sizeof(cap->driver)-1); | 1528 | strncpy(cap->driver, "zoran", sizeof(cap->driver)-1); |
1529 | snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", | 1529 | snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", |
1530 | pci_name(zr->pci_dev)); | 1530 | pci_name(zr->pci_dev)); |
1531 | cap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE | | 1531 | cap->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE | |
1532 | V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_VIDEO_OVERLAY; | 1532 | V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_VIDEO_OVERLAY; |
1533 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; | ||
1533 | return 0; | 1534 | return 0; |
1534 | } | 1535 | } |
1535 | 1536 | ||