Merge "ASoC: mbhc-adc: Resolve bcs not enabled for us headset"

This commit is contained in:
qctecmdr
2021-08-06 20:56:50 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -870,9 +870,6 @@ correct_plug_type:
wrk_complete = false;
}
}
if (mbhc->mbhc_cb->bcs_enable)
mbhc->mbhc_cb->bcs_enable(mbhc, true);
if (!wrk_complete) {
/*
* If plug_tye is headset, we might have already reported either
@@ -906,6 +903,9 @@ 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);