[media] V4L: add .g_std() core V4L2 subdevice operation
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 9 Sep 2011 16:10:02 +0000 (13:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:29:02 +0000 (18:29 -0200)
commit1a99b972a86ba9c3984c042f7f641458ad4812d0
tree9df50bc45b66553be10aa9843b2467427c038676
parent3e0ec41c5c5ee14e27f65e28d4a616de34f59a97
[media] V4L: add .g_std() core V4L2 subdevice operation

VIDIOC_G_STD can return the current TV-norm to the user in one of two ways:
if an .vidioc_g_std() ioctl operation is provided by the driver, it is
called, otherwise the value ot the .current_norm field of struct
video_device is returned. Since subdevice drivers currently have no access
to struct video_device objects, the only way to provide this information to
the user is by implementing a .g_std() method.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/v4l2-subdev.h