Commit cc9231f8 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] radio-tea5764: add device_caps support

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Cc: Fabio Belavenuto <belavenuto@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 827c7cf5
...@@ -294,7 +294,8 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -294,7 +294,8 @@ static int vidioc_querycap(struct file *file, void *priv,
strlcpy(v->card, dev->name, sizeof(v->card)); strlcpy(v->card, dev->name, sizeof(v->card));
snprintf(v->bus_info, sizeof(v->bus_info), snprintf(v->bus_info, sizeof(v->bus_info),
"I2C:%s", dev_name(&dev->dev)); "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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment