[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)
commitfb51cbdd3ec868b903bd706aa7db065c8c36bcd4
treebf747879b2c7bf6a0b4926f3f89b432c9f3deb0d
parentc6a41e3271c61f6f5aec1a91b4458330d4266e5f
[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