ASoC: wcd9310: 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.

CRs-fixed: 339620
Change-Id: Iebdef7cd1cca648659c9ccc41b8a6fa309c77b0e
Signed-off-by: Patrick Lai <plai@codeaurora.org>
1 file changed