[PORT FROM R2] atomisp: Disable selction of advanced binary when MACC is used
authorLokesh Gupta <lokesh.gupta@intel.com>
Tue, 10 Jan 2012 13:48:50 +0000 (14:48 +0100)
committerbuildbot <buildbot@intel.com>
Thu, 19 Jan 2012 11:59:04 +0000 (03:59 -0800)
BZ: 20531

MACC was not available in the primary binary, and hence when MACC
was selected by the user, advanced binary was chosen by default. With
this patch, primary binary will be selected when MACC is set by the user.

Change-Id: I45a64a5ebc1f61f2bb2555fef79c5bdedb86bb44
Orig-Change-Id: I11a030aba0d750390990a4dcdf93ccdc82e6ecc6
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/31406
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/32450
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
drivers/media/video/atomisp/atomisp_cmd.c

index 77cfc7c..2b307fc 100644 (file)
@@ -1277,7 +1277,7 @@ static void atomisp_update_capture_mode(struct atomisp_device *isp)
 {
        if (isp->params.low_light) {
                sh_css_capture_set_mode(SH_CSS_CAPTURE_MODE_LOW_LIGHT);
-       } else if (isp->params.gdc_cac_en || isp->params.macc_en) {
+       } else if (isp->params.gdc_cac_en ) {
                sh_css_capture_set_mode(SH_CSS_CAPTURE_MODE_ADVANCED);
        } else {
                sh_css_capture_set_mode(SH_CSS_CAPTURE_MODE_PRIMARY);