Jelajahi Sumber

Merge "ASoC: mbhc-adc: Enable BCS if plug type already reported"

qctecmdr 3 tahun lalu
induk
melakukan
509134e708
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      asoc/codecs/wcd-mbhc-adc.c

+ 3 - 3
asoc/codecs/wcd-mbhc-adc.c

@@ -903,9 +903,6 @@ report:
 		goto exit;
 	}
 
-	if (mbhc->mbhc_cb->bcs_enable)
-		mbhc->mbhc_cb->bcs_enable(mbhc, true);
-
 	pr_debug("%s: Valid plug found, plug type %d wrk_cmpt %d btn_intr %d\n",
 			__func__, plug_type, wrk_complete,
 			mbhc->btn_press_intr);
@@ -928,6 +925,9 @@ enable_supply:
 	else
 		WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_DETECTION_DONE, 0);
 
+	if (mbhc->mbhc_cb->bcs_enable)
+		mbhc->mbhc_cb->bcs_enable(mbhc, true);
+
 	if (mbhc->mbhc_cb->mbhc_micbias_control)
 		wcd_mbhc_adc_update_fsm_source(mbhc, plug_type);
 exit: