summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-02-03 13:44:14 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-17 14:32:18 +0200
commitf90842d62b16356a8316528c91d0757a17d3e9e3 (patch)
treec696b8f437d48e9cb3113e424c818bcbec2cd9c8 /drivers/media/radio
parent[media] radio-sf16fmi: remove audio/input ioctls (diff)
downloadlinux-f90842d62b16356a8316528c91d0757a17d3e9e3.tar.xz
linux-f90842d62b16356a8316528c91d0757a17d3e9e3.zip
[media] radio-sf16fmi: add device_caps support to querycap
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/radio-sf16fmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c
index c1d51ec72831..80beda7781bc 100644
--- a/drivers/media/radio/radio-sf16fmi.c
+++ b/drivers/media/radio/radio-sf16fmi.c
@@ -121,7 +121,8 @@ static int vidioc_querycap(struct file *file, void *priv,
strlcpy(v->driver, "radio-sf16fmi", sizeof(v->driver));
strlcpy(v->card, "SF16-FMI/FMP/FMD radio", sizeof(v->card));
strlcpy(v->bus_info, "ISA", sizeof(v->bus_info));
- 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;
}