ov8830: HACK: allow driver to function even if AF detection fails
authorTuukka Toivonen <tuukka.toivonen@intel.com>
Mon, 16 Apr 2012 12:58:49 +0000 (15:58 +0300)
committerbuildbot <buildbot@intel.com>
Tue, 17 Apr 2012 17:32:39 +0000 (10:32 -0700)
commitde679aa8ec8ee7e7895ae2de30e72ed8a0283ee6
tree70d0680b4214cb61c531b7902f9b84a7030bf8a6
parent102ecfa9cd49f71d3c359c580517dc710ffe57c9
ov8830: HACK: allow driver to function even if AF detection fails

BZ: 27473

With some hardware, gpio pins are not properly configured to supply
power to the lens driver chip and consequently the chip will not
respond to i2c commands. This caused the drv201 detection function
to fail and whole ov8830 driver to fail functioning at all, even
from driving the sensor.

This patch allows ov8830 driver to drive sensor even if the lens driver
chip detection fails by ignoring the error code returned by the drv201
detection function. In this case only the focus functionality is disabled.

Change-Id: I552f638d8b7f84017feee62858094bc6b8d0726f
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/43578
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/ov8830.c
drivers/media/video/ov8830.h