We see some case device with mic reported high
impedance, and reported as un-expected lineout.
Change-Id: Ic3b16a245b2ca411bcfe277f76ca86d3a680067f
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/
1355467
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
madera_set_headphone_imp(info, val);
/* Report high impedence cables as line outputs */
- if(val>= 500000)
+ if(!info->have_mic && val>= 500000)
madera_extcon_report(info, EXTCON_JACK_LINE_OUT, true);
- else
+ else
madera_extcon_report(info, EXTCON_JACK_HEADPHONE, true);
if (info->have_mic)