v4l2object: auto-detect dmabuf export for V4L2_IO_AUTO on capture side
authorEnrico Jorns <ejo@pengutronix.de>
Sat, 30 Sep 2017 02:19:42 +0000 (22:19 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 6 Oct 2017 01:20:19 +0000 (21:20 -0400)
commite9c00c083b6d139d529155425341ab7973481876
treef819b6c074f7e0421e867d7cae1aa0d2170ecba6
parent986f3e15b267ee9de517e7854c19d8ab6c25959b
v4l2object: auto-detect dmabuf export for V4L2_IO_AUTO on capture side

Issue an invalid VIDIOC_EXPBUF ioctl to the driver to check if the
driver supports dmabuf export. If the driver does not implement the
IOCTL, the error is ENOTTY. Any other error codes mean that the driver
implements VIDIOC_EXPBUF.

https://bugzilla.gnome.org/show_bug.cgi?id=779466
sys/v4l2/gstv4l2object.c