[PORT FROM R2] atomisp: mt9e013: fix the apparent different FOV for 720p
authorYoshio Wada <yoshio.wada@intel.com>
Tue, 13 Dec 2011 08:37:47 +0000 (09:37 +0100)
committerbuildbot <buildbot@intel.com>
Thu, 22 Dec 2011 08:02:26 +0000 (00:02 -0800)
BZ: 18089

sensor settings for 720p was wrong.
output size is smaller than reqiurement.

This is a quick and dirty hack that adds special case for
this particular problem in the resolution selection function.

Change-Id: I540f965e5b0301ed809fbcb0a5e334bad8472c6e
Orig-Change-Id: Icfc7061585a02fbf77f4be92c3a77a0f9d64c3ba
Signed-off-by: Lasse Kantola <lasse.kantola@intel.com>
Reviewed-on: http://android.intel.com:8080/27151
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Von Oerthel, Jurgen <jurgen.von.oerthel@intel.com>
Reviewed-by: Kaikumaa, Timo <timo.kaikumaa@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-on: http://android.intel.com:8080/29597
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/mt9e013.c

index 4781e53..c3b8459 100644 (file)
@@ -1502,6 +1502,10 @@ static int nearest_resolution_index(int w, int h)
        struct mt9e013_resolution *tmp_res = NULL;
        s32 m = LARGEST_ALLOWED_RATIO_MISMATCH;
 
+       /* Quick-and-dirty hack related 720p FOV bug. */
+       if (w == 1552 && h == 880)
+               return 4; /* 720p_strong_dvs_30fps */
+
        for (j = 0; j < 2; ++j) {
                for (i = 0; i < N_RES; i++) {
                        tmp_res = &mt9e013_res[i];