diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-04-14 06:14:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-16 17:10:35 -0400 |
commit | 0df13d99f7c90e3f96408c0ba425e9fb1e48bbd3 (patch) | |
tree | bbcbc94b6c6511ece2152ad973ca4dc1d9bace6d /drivers/media/pci | |
parent | 4c1d0f73021393dda4a226b5c4c86b2d730d656c (diff) |
[media] cx25821: prepare querycap for output support
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-video.c b/drivers/media/pci/cx25821/cx25821-video.c index d3cf259f19f9..dca339183672 100644 --- a/drivers/media/pci/cx25821/cx25821-video.c +++ b/drivers/media/pci/cx25821/cx25821-video.c | |||
@@ -719,7 +719,7 @@ static int cx25821_vidioc_querycap(struct file *file, void *priv, | |||
719 | struct cx25821_dev *dev = chan->dev; | 719 | struct cx25821_dev *dev = chan->dev; |
720 | const u32 cap_input = V4L2_CAP_VIDEO_CAPTURE | | 720 | const u32 cap_input = V4L2_CAP_VIDEO_CAPTURE | |
721 | V4L2_CAP_READWRITE | V4L2_CAP_STREAMING; | 721 | V4L2_CAP_READWRITE | V4L2_CAP_STREAMING; |
722 | const u32 cap_output = V4L2_CAP_VIDEO_OUTPUT; | 722 | const u32 cap_output = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_READWRITE; |
723 | 723 | ||
724 | strcpy(cap->driver, "cx25821"); | 724 | strcpy(cap->driver, "cx25821"); |
725 | strlcpy(cap->card, cx25821_boards[dev->board].name, sizeof(cap->card)); | 725 | strlcpy(cap->card, cx25821_boards[dev->board].name, sizeof(cap->card)); |
@@ -728,7 +728,7 @@ static int cx25821_vidioc_querycap(struct file *file, void *priv, | |||
728 | cap->device_caps = cap_output; | 728 | cap->device_caps = cap_output; |
729 | else | 729 | else |
730 | cap->device_caps = cap_input; | 730 | cap->device_caps = cap_input; |
731 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; | 731 | cap->capabilities = cap_input | cap_output | V4L2_CAP_DEVICE_CAPS; |
732 | return 0; | 732 | return 0; |
733 | } | 733 | } |
734 | 734 | ||