asoc: cdc: mbhc: Return from hs_rem_irq, when hs is already removed

add check to return from the hs_rem_irq( ) if the headset
removal is already reported.

Change-Id: If9ffc1a471b80f8c9d01875b531748327032926a
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
此提交包含在:
Ganapathiraju Sarath Varma
2023-08-03 14:56:41 +05:30
父節點 0a93a99156
當前提交 ffa772dcc9

查看文件

@@ -1039,6 +1039,11 @@ static irqreturn_t wcd_mbhc_adc_hs_rem_irq(int irq, void *data)
goto exit;
}
if (!(test_bit(WCD_MBHC_ELEC_HS_REM, &mbhc->intr_status))) {
pr_debug("%s: plug removal already reported.\n", __func__);
goto exit;
}
if (mbhc->mbhc_cfg->moisture_en ||
mbhc->mbhc_cfg->moisture_duty_cycle_en) {
if (mbhc->mbhc_cb->hph_pa_on_status)