From: Hans de Goede Date: Thu, 4 Sep 2008 19:22:56 +0000 (-0300) Subject: V4L/DVB (8870): gspca: Fix dark room problem with sonixb. X-Git-Tag: v2.6.27-rc6~37^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2a2202f75cda679303f09d150f9549f9835953;p=pandora-kernel.git V4L/DVB (8870): gspca: Fix dark room problem with sonixb. When using the sonixb driver in a dark room and given that the autoexposure algorithm starts with a setting most suitable for daylight, the picture produced by the cam may actually be 100% black leading to a avg_lum value of 0, so an avg_lum value of 0 does not always signal an exposure settings change (which it normally does). This patch adds a check for the really black image case and stops dropping all frames as invalid in this case. Signed-off-by: Hans de Goede Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed