]> git.karo-electronics.de Git - karo-tx-linux.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)
commitda673e603bb78ea26beaef5720017827aa26dae3
tree73b7d7ca8678f8357da923e710f0f63102fb752a
parenta650bf1eff31d9719b51f33716617692a17b6794
[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