/* This is part of Video 4 Linux API. The procedure handles ioctl() calls.  */
static int vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *vc)
/* This is part of Video 4 Linux API. The procedure handles ioctl() calls.  */
static int vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *vc)
{
	struct usb_usbvision *usbvision = video_drvdata(file);
	strlcpy(vc->driver, "USBVision", sizeof(vc->driver));
	strlcpy(vc->card,
		usbvision_device_data[usbvision->DevModel].ModelString,
		sizeof(vc->card));
	usb_make_path(usbvision->dev, vc->bus_info, sizeof(vc->bus_info));
	vc->version = USBVISION_DRIVER_VERSION;
	vc->capabilities = V4L2_CAP_VIDEO_CAPTURE |
		V4L2_CAP_AUDIO |
		V4L2_CAP_READWRITE |
		V4L2_CAP_STREAMING |
		(usbvision->have_tuner ? V4L2_CAP_TUNER : 0);
	return 0;
}