kernel-hacking-2024-linux-s.../drivers/media
Hans Verkuil 227690df75 [media] v4l2-ioctl.c: prefill tuner type for g_frequency and g/s_tuner
The subdevs are supposed to receive a valid tuner type for the g_frequency
and g/s_tuner subdev ops. Some drivers do this, others don't. So prefill
this in v4l2-ioctl.c based on whether the device node from which this is
called is a radio node or not.

The spec does not require applications to fill in the type, and if they
leave it at 0 then the 'check_mode' call in tuner-core.c will return
an error and the ioctl does nothing.

Cc: stable@kernel.org
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-07 15:02:07 -03:00
..
common [media] DVB: mxl5005s: handle new bandwidths by returning -EINVAL 2011-05-20 19:04:59 -03:00
dvb [media] anysee: return EOPNOTSUPP for unsupported I2C messages 2011-06-01 08:34:45 -03:00
radio Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2011-05-27 10:14:22 -07:00
rc [media] rc: call input_sync after scancode reports 2011-07-01 16:34:45 -03:00
video [media] v4l2-ioctl.c: prefill tuner type for g_frequency and g/s_tuner 2011-07-07 15:02:07 -03:00
Kconfig
Makefile
media-device.c
media-devnode.c [media] media: Fix media device minor registration 2011-06-01 13:24:23 -03:00
media-entity.c