diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2016-07-20 14:31:25 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 14:57:01 +0200 |
commit | 0d0abef8d457c96dbb388cac5d3aec81650d8036 (patch) | |
tree | 41f008cf82a16f499c1ec099f70144eb37256bf6 /Documentation/media/uapi | |
parent | [media] v4l2-subdev: rename cropcap to g_pixelaspect (diff) | |
download | linux-0d0abef8d457c96dbb388cac5d3aec81650d8036.tar.xz linux-0d0abef8d457c96dbb388cac5d3aec81650d8036.zip |
[media] vivid: return -ENODATA if the current input doesn't support g/s_selection
Returning -EINVAL indicates wrong arguments, but that's not the case
here.
Returning -ENOTTY is also no option, since the ioctl is implemented, but
it just is not valid for this input.
So use -ENODATA instead. This is also used elsewhere when an ioctl isn't
valid for a specific input.
In this case G/S_SELECTION returned -EINVAL for the webcam input. That
input doesn't support cropping, instead it uses ENUM_FRAMESIZES to
enumerate a list of discrete frame sizes.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi')
0 files changed, 0 insertions, 0 deletions