[media] radio-tea5764: add device_caps support
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Fabio Belavenuto <belavenuto@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
827c7cf513
commit
cc9231f88e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue