Ver Fonte

Merge "asoc: adc: check the interrupt status bit for hs_ins"

qctecmdr há 2 anos atrás
pai
commit
f620388471
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      asoc/codecs/wcd-mbhc-adc.c

+ 5 - 0
asoc/codecs/wcd-mbhc-adc.c

@@ -1138,6 +1138,11 @@ static irqreturn_t wcd_mbhc_adc_hs_ins_irq(int irq, void *data)
 	} while (--clamp_retry);
 	} while (--clamp_retry);
 
 
 	WCD_MBHC_RSC_LOCK(mbhc);
 	WCD_MBHC_RSC_LOCK(mbhc);
+
+	if (!(test_bit(WCD_MBHC_ELEC_HS_INS, &mbhc->intr_status))) {
+		WCD_MBHC_RSC_UNLOCK(mbhc);
+		return IRQ_HANDLED;
+	}
 	/*
 	/*
 	 * If current plug is headphone then there is no chance to
 	 * If current plug is headphone then there is no chance to
 	 * get ADC complete interrupt, so connected cable should be
 	 * get ADC complete interrupt, so connected cable should be