ASoC: wcd9310: address over current condition due to headset removal
During headphone/headset removal, there is a short moment that
headphone left and right are shorted to ground. This is a universal
problem due to nature of jack design. Undesirable over current
condition can happen if user removes headphone/headset slowly
while audio is going through headphone path. CODEC will make
sure headphone PAs are locked upon detecting over current
condition and notify codec driver. However, this condition
is temporary and should not be reported to application.
Change OCP detection run and wait cycles to maximum and
only propagate OCP event when number of attempts exceeds
pre-defined threshold.
CRs-fixed: 318980
Change-Id: I629a5d5f88fd40a48deba9f0fb3efcb6ae91d7b3
Signed-off-by: Patrick Lai <plai@codeaurora.org>
1 file changed