linux/drivers/media
Hans Verkuil 95dd7b7e30 [media] v4l2-ioctl.c: improve cropcap compatibility code
- Add a check for the case that both the cropcap and g_selection ops
  are NULL. This shouldn't happen, but I feel happier if the code
  guards against this.

- If g_selection exists, then ignore ENOTTY and ENOIOCTLCMD error
  codes from cropcap. Just assume square pixelaspect ratio in that
  case. This situation can happen if the bridge driver's cropcap op
  calls the corresponding subdev's op. So the cropcap ioctl is set,
  but it might return ENOIOCTLCMD anyway. In the past this would
  just return an error which is wrong.

- Call cropcap first and let g_selection overwrite the bounds and
  defrect. This safeguards against subdev cropcap implementations
  that set those rectangles as well. What g_selection returns has
  priority over what such cropcap implementations return.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2016-05-06 15:43:45 -03:00
..
common [media] tpg: Export the tpg code from vivid as a module 2016-04-20 16:14:39 -03:00
dvb-core [media] dw2102: move USB IDs to dvb-usb-ids.h 2016-05-06 10:19:03 -03:00
dvb-frontends [media] zl10353: use div_u64 instead of do_div 2016-05-06 08:44:17 -03:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] smiapp: provide g_skip_top_lines method in sensor ops 2016-05-06 15:40:04 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] tw686x: avoid going past array 2016-04-26 06:38:53 -03:00
platform [media] tpg: Export the tpg code from vivid as a module 2016-04-20 16:14:39 -03:00
radio [media] tea575x: convert to library 2016-02-10 09:34:28 -02:00
rc [media] mceusb: use %*ph for small buffer dumps 2016-03-10 13:37:44 -03:00
tuners [media] si2157: detect if firmware is running 2016-05-06 10:07:45 -03:00
usb [media] dw2102: move USB IDs to dvb-usb-ids.h 2016-05-06 10:19:03 -03:00
v4l2-core [media] v4l2-ioctl.c: improve cropcap compatibility code 2016-05-06 15:43:45 -03:00
Kconfig [media] Kconfig: Re-enable Media controller support for DVB 2016-01-11 12:18:40 -02:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media-device: get rid of the spinlock 2016-04-20 13:12:02 -03:00
media-devnode.c [media] media-devnode: add missing mutex lock in error handler 2016-04-06 05:39:56 -07:00
media-entity.c [media] media: change pipeline validation return error 2016-04-29 08:07:17 -03:00