summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/tlg2300/pd-radio.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-01-31 10:17:52 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 13:35:05 +0100
commit42e509c6d3090fc890d2b30fc3c0be02300256a3 (patch)
tree5cd32aaf6dca0681819dce36a9e4ae885b75197d /drivers/media/usb/tlg2300/pd-radio.c
parent[media] tlg2300: switch to v4l2_fh (diff)
downloadlinux-42e509c6d3090fc890d2b30fc3c0be02300256a3.tar.xz
linux-42e509c6d3090fc890d2b30fc3c0be02300256a3.zip
[media] tlg2300: fix radio querycap
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>
Diffstat (limited to 'drivers/media/usb/tlg2300/pd-radio.c')
-rw-r--r--drivers/media/usb/tlg2300/pd-radio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/usb/tlg2300/pd-radio.c b/drivers/media/usb/tlg2300/pd-radio.c
index 854ffa007c1f..80307d3857f5 100644
--- a/drivers/media/usb/tlg2300/pd-radio.c
+++ b/drivers/media/usb/tlg2300/pd-radio.c
@@ -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;
}