linux-stable/drivers/media
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
..
common [media] flexcop: Show the item to enable debug after the driver 2012-08-21 08:05:33 -03:00
dvb-core [media] dvb_frontend: add multistream support 2012-09-23 20:59:32 -03:00
dvb-frontends [media] stv090x: add support for multistream 2012-09-23 21:27:19 -03:00
firewire [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00
i2c [media] v4l2: remove experimental tag from a number of old drivers 2012-09-26 09:44:42 -03:00
mmc [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00
parport [media] Add missing help for some menuconfig items 2012-08-21 08:17:37 -03:00
pci [media] v4l2: remove experimental tag from a number of old drivers 2012-09-26 09:44:42 -03:00
platform [media] vivi/mem2mem_testdev: update to latest bus_info specification 2012-09-26 09:32:41 -03:00
radio [media] shark,shark2: declare resume/suspend functions as static 2012-09-13 17:42:13 -03:00
rc [media] winbond-cir: asynchronous tx 2012-09-25 14:08:46 -03:00
tuners [media] v4l2: remove experimental tag from a number of old drivers 2012-09-26 09:44:42 -03:00
usb [media] v4l2: remove experimental tag from a number of old drivers 2012-09-26 09:44:42 -03:00
v4l2-core [media] v4l2-core: tvnorms may be 0 for a given input, handle that case 2012-09-26 09:48:59 -03:00
Kconfig [media] Kconfig: merge all customise options into just one 2012-08-21 08:05:06 -03:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: fix MEDIA_IOC_DEVICE_INFO return code 2012-08-12 07:57:57 -03:00
media-devnode.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07: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