linux/drivers/media/v4l2-core
Hans Verkuil a5338190ef [media] v4l2-core: tvnorms may be 0 for a given input, handle that case
Currently the core code looks at tvnorms to see whether ENUMSTD
or G_PARM should be enabled. This is not a good check for drivers
that support the STD API on one input and the DV Timings API on another.
In that case tvnorms may be 0.
Instead check whether s_std is present (for ENUMSTD) or whether g_std or
current_norm is present for g_parm.
Also, in the enumstd core function return ENODATA if tvnorms is 0,
because in that case the current input does not support the STD API
and ENUMSTD should return ENODATA for that.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-09-26 09:48:59 -03:00
..
Kconfig
Makefile
tuner-core.c
v4l2-common.c [media] v4l2-common: add CVT and GTF detection functions 2012-09-13 16:09:59 -03:00
v4l2-compat-ioctl32.c [media] v4l2-core: deprecate V4L2_BUF_TYPE_PRIVATE 2012-09-26 09:38:15 -03:00
v4l2-ctrls.c [media] v4l2-ctrls: Add v4l2_ctrl_[gs]_ctrl_int64() 2012-09-13 16:23:36 -03:00
v4l2-dev.c [media] v4l2-core: tvnorms may be 0 for a given input, handle that case 2012-09-26 09:48:59 -03:00
v4l2-device.c
v4l2-event.c
v4l2-fh.c
v4l2-int-device.c
v4l2-ioctl.c [media] v4l2-core: tvnorms may be 0 for a given input, handle that case 2012-09-26 09:48:59 -03:00
v4l2-mem2mem.c [media] media v4l2-mem2mem: Use list_first_entry 2012-09-18 12:14:05 -03:00
v4l2-subdev.c
videobuf2-core.c
videobuf2-dma-contig.c
videobuf2-dma-sg.c
videobuf2-memops.c
videobuf2-vmalloc.c
videobuf-core.c
videobuf-dma-contig.c
videobuf-dma-sg.c
videobuf-dvb.c
videobuf-vmalloc.c