]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-ioctl.c: prefill tuner type for g_frequency and g/s_tuner
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 12 Jun 2011 09:36:41 +0000 (06:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 18:02:07 +0000 (15:02 -0300)
commitee3a047d2dbf4b19014416bf4d6bbc5cb6e0720f
tree414d4dcad844523a0cfb9457be5ad966d2414bf5
parent2050ea86733be70245191afb6458852963a35f22
[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>
drivers/media/video/v4l2-ioctl.c