Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8046ee0 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] sh-vou: fix querycap support



Fix v4l2-compliance errors due to empty driver and bus_info fields.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4690271c
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -396,6 +396,8 @@ static int sh_vou_querycap(struct file *file, void *priv,
	dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__);
	dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__);


	strlcpy(cap->card, "SuperH VOU", sizeof(cap->card));
	strlcpy(cap->card, "SuperH VOU", sizeof(cap->card));
	strlcpy(cap->driver, "sh-vou", sizeof(cap->driver));
	strlcpy(cap->bus_info, "platform:sh-vou", sizeof(cap->bus_info));
	cap->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
	cap->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
	cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
	cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
	return 0;
	return 0;