VIDIOC_QUERYCTRL ioctl( ) failing with errno 5 (EIO, Input/output error)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When making a VIDIOC_QUERYCTRL ioctl( ) call on a UVC video capture
device (USB camera), occasionally I get an Input/Output error
(errno=5, EIO). However, it is not defined as a possible returned
error either in the VIDIOC_QUERYCTRL docs here

https://linuxtv.org/downloads/v4l-dvb-apis/uapi/v4l/vidioc-queryctrl.html

, nor as a generic error for ioctl( ) calls or for v4l2 calls. After
digging in the code, it looks that this ioctl( ) eventually makes a
USB request and calls usb_start_wait_urb( ), which, I guess, is what
ends up returning EIO if something goes wrong.

So my question is, shouldn't this be documented in the link above? At
least for the UVC case?

Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux