]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mt9m111: properly implement .s_crop and .s_fmt(), reset on STREAMON
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 4 Nov 2011 18:13:18 +0000 (15:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 13:00:40 +0000 (11:00 -0200)
commit4ded9399294efef29388e7663ecc3ec553885d65
tree73b7d7ca8678f8357da923e710f0f63102fb752a
parent6bf49900cc7ce9487324d164356c39840ec117d6
[media] mt9m111: properly implement .s_crop and .s_fmt(), reset on STREAMON

mt9m111 camera sensors support cropping and scaling. The current
implementation is broken. For example, .s_crop() sets output frame sizes
instead of the input cropping window. This patch adds a proper implementation
of these methods. Besides it adds a sensor-disable and -enable operations
on first open() and last close() respectively, to save power while closed and
to return the camera to the default power-on state.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9m111.c