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>