]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media i.MX27 camera: add start_stream and stop_stream callbacks
authorJavier Martin <javier.martin@vista-silicon.com>
Mon, 30 Jan 2012 12:14:11 +0000 (09:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Mar 2012 12:40:45 +0000 (09:40 -0300)
commitbe127d37146b7f23f272cd3bed41ff643543a083
treebf747879b2c7bf6a0b4926f3f89b432c9f3deb0d
parent0ee0d065744a5bd14718ec4f05cebfe9dc7a1e7e
[media] media i.MX27 camera: add start_stream and stop_stream callbacks

Add "start_stream" and "stop_stream" callback in order to enable
and disable the eMMa-PrP properly and save CPU usage avoiding
IRQs when the device is not streaming. This also makes the driver
return 0 as the sequence number of the first frame.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
[g.liakhovetski@gmx.de: remove the mx27_camera_emma() macro]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx2_camera.c