[PORT FROM R2] atomisp: make delay in focus_status function variable
authorRobert Jong-A-Lock <robert.jong-a-lock@intel.com>
Tue, 1 Nov 2011 13:58:43 +0000 (14:58 +0100)
committerbuildbot <buildbot@intel.com>
Mon, 19 Dec 2011 13:27:42 +0000 (05:27 -0800)
commit530c3ce2dae16254c9c2477cc82ed89fee3db0f6
tree86be8c645b5a9ac85527c5bf0fa6e17339c5cd4f
parent1e691b71e028c10661de813534a719ec56134895
[PORT FROM R2] atomisp: make delay in focus_status function variable

BZ: 17272

this change assumes that one step needs 1ms of delay.The ammount
of steps changed times 1ms, maximised to 40ms, is then used to
wait before the focus_status function returns
ATOMISP_FOCUS_HP_COMPLETE again. This way the delay is no longer
fixed to 60ms after each call to t_focus.

Change-Id: Ie8ce0ecffff8933d1b91341741f6ff7e934a2a1d
Orig-Change-Id: Ia0419de7d14418dc63da8b1ab61988e36edaffa2
Reviewed-on: http://android.intel.com:8080/22864
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Samurov, Vitali <vitali.samurov@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27991
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
drivers/media/video/mt9e013.c
drivers/media/video/mt9e013.h