linux/drivers/media
Hans Verkuil 0d0abef8d4 [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>
2016-08-24 09:57:01 -03:00
..
common [media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix 2016-08-24 08:36:11 -03:00
dvb-core [media] doc-rst: add some needed escape codes 2016-07-23 08:05:02 -03:00
dvb-frontends [media] media: dvb-frontends: rtl2832_sdr: don't print error when allocating urb fails 2016-08-24 08:46:41 -03:00
firewire
i2c [media] v4l2-subdev: rename cropcap to g_pixelaspect 2016-08-24 09:55:15 -03:00
mmc
pci [media] zoran: convert g/s_crop to g/s_selection 2016-08-24 09:51:15 -03:00
platform [media] vivid: return -ENODATA if the current input doesn't support g/s_selection 2016-08-24 09:57:01 -03:00
radio [media] media: radio: si470x: radio-si470x-usb: don't print error when allocating urb fails 2016-08-24 08:46:58 -03:00
rc [media] media: rc: redrat3: don't print error when allocating urb fails 2016-08-24 08:47:41 -03:00
tuners [media] it913x: do not allow driver unbind 2016-07-08 17:01:23 -03:00
usb [media] pvrusb2: convert g/s_crop to g/s_selection 2016-08-24 09:54:30 -03:00
v4l2-core [media] v4l2-common: Delete an unnecessary check before the function call "spi_unregister_device" 2016-08-24 09:41:37 -03:00
cec-edid.c [media] cec-edid: add module for EDID CEC helper functions 2016-06-28 09:45:51 -03:00
Kconfig [media] cec: fix Kconfig dependency problems 2016-07-08 18:34:00 -03:00
Makefile [media] cec: fix Kconfig dependency problems 2016-07-08 18:34:00 -03:00
media-device.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] v4l2-core: Add support for touch devices 2016-08-23 16:28:04 -03:00