diff --git a/asoc/codecs/wcd-mbhc-adc.c b/asoc/codecs/wcd-mbhc-adc.c index a87a8a0a1a..3299336abb 100644 --- a/asoc/codecs/wcd-mbhc-adc.c +++ b/asoc/codecs/wcd-mbhc-adc.c @@ -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);