mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
65a110dfb8
commit
f90842d62b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue