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

media: mx2_emmaprp: set device_caps in struct video_device

Instead of filling in the struct v4l2_capability device_caps
field, fill in the struct video_device device_caps field.

That way the V4L2 core knows what the capabilities of the
video device are.
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent f456ccc4
...@@ -380,8 +380,6 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -380,8 +380,6 @@ static int vidioc_querycap(struct file *file, void *priv,
{ {
strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver)); strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver));
strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card));
cap->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
return 0; return 0;
} }
...@@ -862,6 +860,7 @@ static const struct video_device emmaprp_videodev = { ...@@ -862,6 +860,7 @@ static const struct video_device emmaprp_videodev = {
.minor = -1, .minor = -1,
.release = video_device_release, .release = video_device_release,
.vfl_dir = VFL_DIR_M2M, .vfl_dir = VFL_DIR_M2M,
.device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING,
}; };
static const struct v4l2_m2m_ops m2m_ops = { static const struct v4l2_m2m_ops m2m_ops = {
......
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