[media] radio-tea5764: add device_caps support
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 3 Feb 2013 11:36:42 +0000 (08:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 17 Jun 2013 12:28:16 +0000 (09:28 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Fabio Belavenuto <belavenuto@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-tea5764.c

index 5a609903d4c512fe0a817c17d820939d1188b545..077d9063cd4f7fb47da5f50e9ee732cc5a69600b 100644 (file)
@@ -294,7 +294,8 @@ static int vidioc_querycap(struct file *file, void  *priv,
        strlcpy(v->card, dev->name, sizeof(v->card));
        snprintf(v->bus_info, sizeof(v->bus_info),
                 "I2C:%s", dev_name(&dev->dev));
-       v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
+       v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
+       v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS;
        return 0;
 }