[media] tlg2300: fix radio querycap
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 31 Jan 2013 09:17:52 +0000 (06:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 12:35:05 +0000 (09:35 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/tlg2300/pd-radio.c

index 854ffa007c1f744a77ce03407ffe8141020513c2..80307d3857f52bb04b06f840de46cf3f4855cd43 100644 (file)
@@ -147,7 +147,12 @@ static int vidioc_querycap(struct file *file, void *priv,
        strlcpy(v->driver, "tele-radio", sizeof(v->driver));
        strlcpy(v->card, "Telegent Poseidon", sizeof(v->card));
        usb_make_path(p->udev, v->bus_info, sizeof(v->bus_info));
-       v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
+       v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
+       /* Report all capabilities of the USB device */
+       v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS |
+                       V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VBI_CAPTURE |
+                       V4L2_CAP_AUDIO | V4L2_CAP_STREAMING |
+                       V4L2_CAP_READWRITE;
        return 0;
 }