diff options
author | Dongwoo Lee <dwoo08.lee@samsung.com> | 2016-10-21 16:51:40 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:54:35 +0900 |
commit | 287de690cbe05fa894e510b9482f47943227f259 (patch) | |
tree | 465ec3007942aee541ae8e0c1a55fc7ff9a4c8a2 /ipc/kdbus/metadata.c | |
parent | 141d04287de37ac7f6827577db839bf7f34f0ec1 (diff) |
ASoC: max98090: fix interrupt handling problem
The max98090_interrupt handler currently will read the device status
register. After that, it will act only when the JDET bit is set.
However, when max98090_interrupt handler is triggered and jack status
register has really changed, the JDET bit of device status register
is not set as expected for unknown reason. Because of this, the jack status cannot be reported.
This patch adds a workaround solution for jack detection, by adding
the second chance to recognize the reason of interrupt generation.
If the interrupt is generated without setting any values on device
status register, jack status register is compared to the current jack
states. If the jack status is changed, the JDET bit is manually set.
Change-Id: I74f6fb54fb9cc47e292f1f8e116032faae89c063
Reported-by: Huang Chao <chao7.huang@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Diffstat (limited to 'ipc/kdbus/metadata.c')
0 files changed, 0 insertions, 0 deletions