[media] cx25821: prepare querycap for output support
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 14 Apr 2013 10:14:42 +0000 (07:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Apr 2013 21:10:35 +0000 (18:10 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/cx25821/cx25821-video.c

index d3cf259f19f91038cff9e845eeeb627dceba6797..dca339183672dad56d9c9f547f546cb3c4325a17 100644 (file)
@@ -719,7 +719,7 @@ static int cx25821_vidioc_querycap(struct file *file, void *priv,
        struct cx25821_dev *dev = chan->dev;
        const u32 cap_input = V4L2_CAP_VIDEO_CAPTURE |
                        V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
-       const u32 cap_output = V4L2_CAP_VIDEO_OUTPUT;
+       const u32 cap_output = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_READWRITE;
 
        strcpy(cap->driver, "cx25821");
        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,
                cap->device_caps = cap_output;
        else
                cap->device_caps = cap_input;
-       cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
+       cap->capabilities = cap_input | cap_output | V4L2_CAP_DEVICE_CAPS;
        return 0;
 }