summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-09-29 17:16:28 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-10-24 16:36:59 -0700
commit7d1d130a1b18f4356d5c3b1aea8d4383293ae2e0 (patch)
treefd0025c531beaf5351e66fb68ef45fa19f36bfe7 /lib/mpi/mpi-inline.h
parentdf035333ce87722f083771a20761759b5f9cf51b (diff)
leds: qpnp-wled: Improve auto calibration algorithm
If CABC is enabled and auto calibration is attempted, then OVP fault can be seen even with a valid sink configuration and a brightness level greater than or equal to 0.4 % dimming. This is because of the modulation done through CABC pin which if low enough can cause the brightness level to still go further down. Fix this by disabling CABC on all sinks before running auto calibration and re-enable it if the feature is enabled. Also, modify the auto calibration brightness level to 200 so that the load increase on WLED_VOUT can bring the voltage below OVP threshold quick enough on a valid sink configuration. Finally, disable WLED module before switching the sink configuration and enable it after configuring sinks. CRs-Fixed: 2125217 Change-Id: I570dc9eba540cd96328afd7c68f4643a112c4962 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions