diff options
author | Tyler Luu <tluu@ti.com> | 2011-10-06 13:17:48 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-10-07 12:29:22 -0700 |
commit | d6525598477cbfacf893ad569ee50c3a2e905ac1 (patch) | |
tree | 4596ad0487080d7a8837cd121f6995af7f25952f /camera/OMXCameraAdapter | |
parent | 5458bdc45048501d1919b14d22456de91f7e8950 (diff) | |
download | hardware_ti_omap4xxx-d6525598477cbfacf893ad569ee50c3a2e905ac1.zip hardware_ti_omap4xxx-d6525598477cbfacf893ad569ee50c3a2e905ac1.tar.gz hardware_ti_omap4xxx-d6525598477cbfacf893ad569ee50c3a2e905ac1.tar.bz2 |
omap4xxx: camera: set GLBCE/GBCE only if changed
Partial fix for b/5371242
When GLBCE/GBCE was not set, we were always calling SetConfig for
the default value for every SetParameters. Add some logic to only set
them if they have changed.
Change-Id: I30229556b55260f572bee56054422f7edb07df42
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'camera/OMXCameraAdapter')
-rw-r--r-- | camera/OMXCameraAdapter/OMXAlgo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/OMXCameraAdapter/OMXAlgo.cpp b/camera/OMXCameraAdapter/OMXAlgo.cpp index a3b793f..5266427 100644 --- a/camera/OMXCameraAdapter/OMXAlgo.cpp +++ b/camera/OMXCameraAdapter/OMXAlgo.cpp @@ -144,7 +144,7 @@ status_t OMXCameraAdapter::setParametersAlgo(const CameraParameters ¶ms, } } } - else + else if(mParams.get(TICameraParameters::KEY_GBCE) || mFirstTimeInit) { //Disable GBCE by default setGBCE(OMXCameraAdapter::BRIGHTNESS_OFF); @@ -182,7 +182,7 @@ status_t OMXCameraAdapter::setParametersAlgo(const CameraParameters ¶ms, } } } - else + else if(mParams.get(TICameraParameters::KEY_GLBCE) || mFirstTimeInit) { //Disable GLBCE by default setGLBCE(OMXCameraAdapter::BRIGHTNESS_OFF); |