]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cafe_ccic: fix colorspace corruption on resume
authorDaniel Drake <dsd@laptop.org>
Wed, 27 Oct 2010 13:55:00 +0000 (10:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:29 +0000 (08:16 -0200)
commita70f3bf4c630ac4495ba6098574c5a0311f077c4
treedd0b410bce7108d91ab530a41a484d5ff3586472
parent64efcf44087984ac373d36ff969c3c6a55ec042d
[media] cafe_ccic: fix colorspace corruption on resume

If you suspend and resume during video capture, the video colours
are corrupted on resume. This is because the sensor is being unconditionally
powered off during the resume path.

Only power down during resume if the camera is not in use, and correctly
reconfigure the sensor during resume.
Fixes http://dev.laptop.org/ticket/10190

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cafe_ccic.c