From: Laurent Pinchart Date: Wed, 7 May 2014 15:34:34 +0000 (-0300) Subject: [media] mt9p031: Really disable Black Level Calibration in test pattern mode X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf54c4321dd6c57d4117f425890e5c6d49c103a;p=pandora-kernel.git [media] mt9p031: Really disable Black Level Calibration in test pattern mode The digital side of the Black Level Calibration (BLC) function must be disabled when generating a test pattern to avoid artifacts in the image. The driver disables BLC correctly at the hardware level, but the feature gets reenabled by v4l2_ctrl_handler_setup() the next time the device is powered on. Fix this by marking the BLC controls as inactive when generating a test pattern, and ignoring control set requests on inactive controls. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed