linux/drivers/media
Hans Verkuil 73f35418a1 [media] v4l2-ioctl: check if an ioctl is valid
Just checking if the op exists isn't correct, you should check if the ioctl
is valid (which implies that the op exists as well).
One exception is g_std: if current_norm is non-zero, then the g_std op may be
absent. This sort of weird behavior is one of the reasons why I am trying to
get rid of current_norm.
This patch fixes the case where the g/s_std op is set, but these ioctls are
disabled. This can happen in drivers supporting multiple models, some that
have TV input (and support the STD API) and some that have a sensor (and do
not support the STD API). In the latter case qv4l2 would still show the
Standards combobox.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-03-24 12:01:26 -03:00
..
common [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
dvb-core [media] dvb-core: don't clear stats at DTV_CLEAR 2013-03-21 10:27:35 -03:00
dvb-frontends [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
firewire [media] remove include/linux/dvb/dmx.h 2012-10-19 07:29:17 -03:00
i2c [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
pci [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
platform [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
radio [media] v4l2: add const to argument of write-only s_tuner ioctl 2013-03-24 06:31:23 -03:00
rc [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
tuners [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
usb [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
v4l2-core [media] v4l2-ioctl: check if an ioctl is valid 2013-03-24 12:01:26 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: implement 32-on-64 bit compat IOCTL handling 2013-03-18 20:45:14 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00