ASoC: wcd9310: Sync headphone/headset PA state
Upon headphone/headset removal, CODEC driver goes ahead disable
PA and RDAC to avoid fake insertion detection.
If userspace receives headphone/headset removal event followed
by insertion event quickly, user can miss earlier removal event so
it thinks later insertion event is also meaningless.
As a result PA and DAC are never turned on by user again.
Fixes to catch if previous removal event was handled by userspace to
enable PA and DAC from kernel if it wasn't.
CRs-Fixed: 318567
Change-Id: I8101bf18b4d42ebeee00b85be061083af2abbb04
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
1 file changed