[media] marvell-cam: ensure that the camera stops when requested
authorJonathan Corbet <corbet@lwn.net>
Fri, 16 Mar 2012 22:14:50 +0000 (19:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:15:12 +0000 (22:15 -0300)
commit49df19ebcc60fd46f2587774cd6e224007af1116
tree22091196fc706c8d2e2d4d557f63ad5d41b9632c
parent7e4964fa167709befde3ba3a7044080d7ca391d0
[media] marvell-cam: ensure that the camera stops when requested

The controller stop/restart logic could possibly restart DMA after the
driver things things have stopped, with suitably ugly results.  Make sure
that we only restart the hardware if we're supposed to be streaming.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/marvell-ccic/mcam-core.c