OV8830: Change in the nearest resolution index calculation logic
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Tue, 24 Apr 2012 18:48:10 +0000 (21:48 +0300)
committerbuildbot <buildbot@intel.com>
Thu, 3 May 2012 20:12:10 +0000 (13:12 -0700)
commitb9639ddbcdea2f11c0b15c3a9a8cd99dbe39d181
tree2cdfbeb4b2c97774dd74bf233e7e372a96ba39d1
parent1428b87c861f5e007fa1becd137f5a72d83badd0
OV8830: Change in the nearest resolution index calculation logic

BZ: 30047

16:9 resolutions are failing to get a correct matching resolution
index from the OV8830 preview resolution table. The threshold to
the minimum allowed ratio mismatch is changed to accommodate some
slight deviations from the standard aspect ratio so that the
function returns most appropriate index.

Change-Id: I7922b366cd5773f15d2d384d736fb14ca3a6b8ae
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-on: http://android.intel.com:8080/45962
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/ov8830.c