ASoC: mbhc-adc: Resolve bcs not enabled for us headset
BCS is not enabled for us headset as after 3sec loop we directly switch to report headset and bcs is still disabled. Enable bcs only after reporting valid plug to resolve issue. Change-Id: I69bb71d20583fd2e2be921e9b657d9c44c047708 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
a40c1bebd9
commit
8b5bcc5a56
@@ -870,9 +870,6 @@ correct_plug_type:
|
|||||||
wrk_complete = false;
|
wrk_complete = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mbhc->mbhc_cb->bcs_enable)
|
|
||||||
mbhc->mbhc_cb->bcs_enable(mbhc, true);
|
|
||||||
|
|
||||||
if (!wrk_complete) {
|
if (!wrk_complete) {
|
||||||
/*
|
/*
|
||||||
* If plug_tye is headset, we might have already reported either
|
* If plug_tye is headset, we might have already reported either
|
||||||
@@ -906,6 +903,9 @@ report:
|
|||||||
goto exit;
|
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",
|
pr_debug("%s: Valid plug found, plug type %d wrk_cmpt %d btn_intr %d\n",
|
||||||
__func__, plug_type, wrk_complete,
|
__func__, plug_type, wrk_complete,
|
||||||
mbhc->btn_press_intr);
|
mbhc->btn_press_intr);
|
||||||
|
Reference in New Issue
Block a user