mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
Asoc: wcd: mbhc: Force lineout event report only for headphone
Correct plug type to lineout only if headphone is detected and impedance of left and right is above 5000 ohm. This avoids reporting lineout for valid headset devices like tty. CRs-Fixed: 899726 Change-Id: I048c5e63e8cdd526fecf20211f061ed61db39522 Signed-off-by: Walter Yang <yandongy@codeaurora.org>
This commit is contained in:
parent
5684bd6c5d
commit
e08e0edd97
1 changed files with 2 additions and 1 deletions
|
@ -631,7 +631,8 @@ static void wcd_mbhc_report_plug(struct wcd_mbhc *mbhc, int insertion,
|
|||
mbhc->mbhc_cb->compute_impedance(mbhc,
|
||||
&mbhc->zl, &mbhc->zr);
|
||||
if ((mbhc->zl > mbhc->mbhc_cfg->linein_th) &&
|
||||
(mbhc->zr > mbhc->mbhc_cfg->linein_th)) {
|
||||
(mbhc->zr > mbhc->mbhc_cfg->linein_th) &&
|
||||
(jack_type == SND_JACK_HEADPHONE)) {
|
||||
jack_type = SND_JACK_LINEOUT;
|
||||
mbhc->current_plug = MBHC_PLUG_TYPE_HIGH_HPH;
|
||||
if (mbhc->hph_status) {
|
||||
|
|
Loading…
Reference in a new issue