Commit c7cae889 authored by Patrick Lai's avatar Patrick Lai Committed by Joonwoo Park
Browse files

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: default avatarPatrick Lai <plai@codeaurora.org>
parent a9444454
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment