mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
ASoC: mbhc-adc: Enable BCS if plug type already reported
BCS is not enabled sometimes after inserting headset if plug is already reported and we dont report it again. Enable BCS if plug type already reported. Change-Id: I8c9f15ced66a21bda169d3479da96168ebec26a7 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
e3766898f3
commit
9f495f6dd4
1 changed files with 5 additions and 5 deletions
|
|
@ -905,11 +905,6 @@ report:
|
|||
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 @@ enable_supply:
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue