]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 17:35:37 +0000 (10:35 -0700)
commit4776b9777d9575cae6ff9220b13e02029f724c74
tree0c771fb2692dc6fd66dd6343ced7286454be0f0c
parent404f0f8fd6b5f3e2b2cf509778a8121cf684717a
v4l2-ioctl.c: prefill tuner type for g_frequency and g/s_tuner

commit 227690df75382e46a4f6ea1bbc5df855a674b47f upstream.

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.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/v4l2-ioctl.c