Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7370332 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8fea5f65 9f495f6d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -905,11 +905,6 @@ static void wcd_correct_swch_plug(struct work_struct *work)
		goto exit;
	}

	if ((plug_type == MBHC_PLUG_TYPE_HEADSET ||
	    plug_type == MBHC_PLUG_TYPE_HEADPHONE))
		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);
@@ -932,6 +927,11 @@ static void wcd_correct_swch_plug(struct work_struct *work)
	else
		WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_DETECTION_DONE, 0);

	if ((plug_type == MBHC_PLUG_TYPE_HEADSET ||
	    plug_type == MBHC_PLUG_TYPE_HEADPHONE))
		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: