]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: Add AUTO option for the V4L2_CID_POWER_LINE_FREQUENCY control
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sun, 4 Sep 2011 22:08:54 +0000 (19:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:29:09 +0000 (18:29 -0200)
commit170a2dc3c223e5e16e9847f2ed5fcdfcd8081fd2
tree2f5a40c24c58a456bf6882b372f8d7620cb9d9b0
parentafef8921c724837ba98d33ee2d140a9a6494ebbc
[media] v4l: Add AUTO option for the V4L2_CID_POWER_LINE_FREQUENCY control

V4L2_CID_POWER_LINE_FREQUENCY control allows applications to instruct
a driver what is the power line frequency so an appropriate filter
can be used by the device to cancel flicker by compensating the light
intensity ripple. Currently in the menu we have entries for 50 Hz and
60 Hz and for entirely disabling the anti-flicker filter.
However some devices are capable of automatically detecting the
frequency, so add V4L2_CID_POWER_LINE_FREQUENCY_AUTO entry for them.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/DocBook/media/v4l/controls.xml
drivers/media/video/v4l2-ctrls.c
include/linux/videodev2.h