ASoC: wcd-mbhc: update electrical removal detection logic
when moisture is in jack, removing of the plug result in electrical removal interrupt. So, update electrical interrupt handler to handle mechanical removal based on moisture status. CRs-Fixed: 2058106 Change-Id: I9cfbfbaf04783f0edcadb14d7828759020745289 Signed-off-by: Meng Wang <mwang@codeaurora.org>
This commit is contained in:
@@ -650,6 +650,12 @@ static struct wcd_mbhc_register
|
||||
0, 0, 0, 0),
|
||||
WCD_MBHC_REGISTER("WCD_MBHC_MUX_CTL",
|
||||
WCD9335_MBHC_CTL_2, 0x70, 4, 0),
|
||||
WCD_MBHC_REGISTER("WCD_MBHC_MOISTURE_STATUS",
|
||||
WCD9335_MBHC_FSM_STATUS, 0X20, 5, 0),
|
||||
WCD_MBHC_REGISTER("WCD_MBHC_HPHR_GND",
|
||||
WCD9335_HPH_PA_CTL2, 0x40, 6, 0),
|
||||
WCD_MBHC_REGISTER("WCD_MBHC_HPHL_GND",
|
||||
WCD9335_HPH_PA_CTL2, 0x10, 4, 0),
|
||||
};
|
||||
|
||||
static const struct wcd_mbhc_intr intr_ids = {
|
||||
|
Reference in New Issue
Block a user