GNOME Bugzilla – Bug 698827
v4l2: handle ENODATA return value for VIDIOC_ENUMSTD
Last modified: 2013-04-25 13:41:20 UTC
Created attachment 242401 [details] [review] patch In kernel v3.7-rc1, VIDIOC_ENUMSTD returns ENODATA if the current input does not support the STD API.
This again seems wrong to me, what was the reason for changing that from EINVAL and is it only in that single kernel release or also in later versions?
I'm pretty sure this is necessary. The ENODATA was introduced by this commit: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a5338190efc7cfa8c99a6856342a77d21c9a05cf
Ah, the ioctl() is handled but there's just no data available for it. Yes :) commit 305023fe9d5f8f3ffd5c49b1d1b743f569a9265d Author: Philipp Zabel <p.zabel@pengutronix.de> Date: Thu Oct 18 10:37:35 2012 +0200 v4l2: handle ENODATA return value for VIDIOC_ENUMSTD In kernel v3.7-rc1, VIDIOC_ENUMSTD returns ENODATA if the current input does not support the STD API. https://bugzilla.gnome.org/show_bug.cgi?id=698827