ASoC: wcd9xxx: Enhance OCP reporting logic

CODEC has over current protection(OCP) finite state
machine for both left and right headphone while CODEC
driver tries to delay reporting of OCP event after
CODEC reporting OCP two times. Current CODEC driver
implementation results in unlocking one of headphone
power amplifier when OCP reported on both headphone.
Change the behavior to report OCP event for a give
headphone immediately if OCP already occurs on opposite
headphone.

Change-Id: Icd819737db289a688a993ba5e5f47967ae14a0d8
Signed-off-by: Patrick Lai <plai@codeaurora.org>
1 file changed